Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending and crash when installing / updating extensions #1716

Open
6 tasks done
sht2017 opened this issue Feb 12, 2025 · 0 comments
Open
6 tasks done

Pending and crash when installing / updating extensions #1716

sht2017 opened this issue Feb 12, 2025 · 0 comments
Labels
Bug Something isn't working

Comments

@sht2017
Copy link

sht2017 commented Feb 12, 2025

Steps to reproduce

  1. Go to extensions.
  2. Update / install extension.
  3. Extensions will never install but pending.
  4. After few minutes, Mihon will crash. Crash report attached to this issue.

Expected behavior

Extensions are successfully installed.

Actual behavior

Pending, then crash.

Crash logs

App version: 0.17.1 (standard, 3a100c7, 9, 2024-12-06T17:14:05Z)
Android version: 15 (SDK 35; build AP4A.250105.002)
Device brand: google
Device manufacturer: Google
Device name: husky (husky)
Device model: Pixel 8 Pro
WebView: Android System WebView 132.0.6834.163

java.lang.Throwable: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.DOWNLOAD_COMPLETE flg=0x10 pkg=app.mihon (has extras) } in eu.kanade.tachiyomi.extension.util.ExtensionInstaller$DownloadCompletionReceiver@7eb25be
	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1822)
	at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$mcNAAl1SQ4MyJPyDg8TJ2x2h0Rk(Unknown Source:0)
	at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at android.os.Handler.handleCallback(Handler.java:991)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8787)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service app.mihon/eu.kanade.tachiyomi.extension.util.ExtensionInstallService
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
	at android.os.Parcel.readParcelableInternal(Parcel.java:5064)
	at android.os.Parcel.readParcelable(Parcel.java:5046)
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3226)
	at android.os.Parcel.createException(Parcel.java:3215)
	at android.os.Parcel.readException(Parcel.java:3198)
	at android.os.Parcel.readException(Parcel.java:3140)
	at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6393)
	at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2012)
	at android.app.ContextImpl.startForegroundService(ContextImpl.java:1987)
	at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:853)
	at eu.kanade.tachiyomi.extension.util.ExtensionInstaller.installApk(Unknown Source:72)
	at eu.kanade.tachiyomi.extension.util.ExtensionInstaller$DownloadCompletionReceiver.onReceive(Unknown Source:136)
	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1814)
	... 10 more


--------- beginning of crash
02-12 11:27:31.128 23279 23279 E AndroidRuntime: FATAL EXCEPTION: main
02-12 11:27:31.128 23279 23279 E AndroidRuntime: Process: app.mihon, PID: 23279
02-12 11:27:31.128 23279 23279 E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.DOWNLOAD_COMPLETE flg=0x10 pkg=app.mihon (has extras) } in eu.kanade.tachiyomi.extension.util.ExtensionInstaller$DownloadCompletionReceiver@7eb25be
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1822)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$mcNAAl1SQ4MyJPyDg8TJ2x2h0Rk(Unknown Source:0)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:991)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:232)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:317)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8787)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service app.mihon/eu.kanade.tachiyomi.extension.util.ExtensionInstallService
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Parcel.readParcelableInternal(Parcel.java:5064)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Parcel.readParcelable(Parcel.java:5046)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Parcel.createExceptionOrNull(Parcel.java:3226)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Parcel.createException(Parcel.java:3215)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:3198)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:3140)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6393)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2012)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.ContextImpl.startForegroundService(ContextImpl.java:1987)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:853)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at eu.kanade.tachiyomi.extension.util.ExtensionInstaller.installApk(Unknown Source:72)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at eu.kanade.tachiyomi.extension.util.ExtensionInstaller$DownloadCompletionReceiver.onReceive(Unknown Source:136)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1814)
02-12 11:27:31.128 23279 23279 E AndroidRuntime: 	... 10 more
--------- beginning of main
02-12 11:29:04.508  2786  2786 E n:error_handler: Not starting debugger since process cannot load the jdwp agent.
02-12 11:29:04.688  2786  2862 E n:error_handler: No package ID 76 found for resource ID 0x760b000f.
02-12 11:29:04.689  2786  2862 E n:error_handler: No package ID 76 found for resource ID 0x760b000f.

Mihon version

0.17.1

Android version

Android 15

Device

Pixel 8 Pro (Build AP4A.250105.002)

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • I have gone through the FAQ and troubleshooting guide.
  • I have updated the app to version 0.17.1.
  • I have updated all installed extensions.
  • I will fill out all of the requested information in this form.

Using legacy installer to install extensions are okay. I believe it is a PackageInstaller related issue. Please investigate this.
For anyone who also has the same issue, please go "More - Settings - Advanced - Extensions - Installer", change it to "legacy" then restart Mihon.

@sht2017 sht2017 added the Bug Something isn't working label Feb 12, 2025
@sht2017 sht2017 changed the title Pending forever when installing / updating extensions Pending and crash when installing / updating extensions Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant