StarlightLauncher icon indicating copy to clipboard operation
StarlightLauncher copied to clipboard

Launcher crashes when clicking home button.

Open OmegaSunkey opened this issue 2 years ago • 12 comments

Device: Samsung J7 2016 ROM: Klaxosaur V1 Based on: One Ui Core 2.0, Android 10 App Version: 1.0.0-beta.5, downloaded from Google Play.

Issue:

  • Launcher crashes at the moment of going home. • Steps to reproduce:
    • Click home

Stacktrace:

FATAL EXCEPTION: main
Process: kenneth.app.starlightlauncher, PID: 17504
java.lang.RuntimeException: Unable to destroy activity {kenneth.app.starlightlauncher/kenneth.app.starlightlauncher.MainActivity}: java.lang.IllegalArgumentException: Receiver not registered: l4.g$b@8cdc5ca
	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5326)
	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5360)
	at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:237)
	at android.app.ActivityThread.main(ActivityThread.java:7948)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
Caused by: java.lang.IllegalArgumentException: Receiver not registered: l4.g$b@8cdc5ca
	at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1499)
	at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1604)
	at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:678)
	at l4.g.c(SourceFile:3)
	at kenneth.app.starlightlauncher.MainActivity.onDestroy(SourceFile:6)
	at android.app.Activity.performDestroy(Activity.java:8217)
	at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1342)
	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5311)
	... 11 more

OmegaSunkey avatar Aug 12 '22 23:08 OmegaSunkey

I know why this is happening (thanks for the stack trace!), will fix.

kennethnym avatar Aug 13 '22 08:08 kennethnym

Beta-6 20220827_144640 These 3 errors happen now.

OmegaSunkey avatar Aug 27 '22 19:08 OmegaSunkey

This is strange - I cannot reproduce this issue on my part. Are you pressing the home button when you are already on the home screen?

kennethnym avatar Aug 27 '22 19:08 kennethnym

as the launcher crashes, im on the default home screen, so to spawn the selected launcher you have to click home again, but those errors happen when you do it

OmegaSunkey avatar Aug 27 '22 19:08 OmegaSunkey

also happens if you are in an app

OmegaSunkey avatar Aug 27 '22 19:08 OmegaSunkey

So when you are in an app, and you press home to go back to Starlight, it crashes right away?

kennethnym avatar Aug 27 '22 19:08 kennethnym

yop

OmegaSunkey avatar Aug 27 '22 19:08 OmegaSunkey

Would you mind reinstalling the app to see if it will happen again?

kennethnym avatar Aug 27 '22 20:08 kennethnym

it is normal that stock launcher is visible for 3 seconds then starlight appears again

OmegaSunkey avatar Aug 27 '22 20:08 OmegaSunkey

Might be related to #35

kennethnym avatar Aug 28 '22 17:08 kennethnym

I know this is an old issue, but I can reproduce this consistently on a stock S9+. Might be related to OneUI

meisme-dev avatar Jul 05 '23 21:07 meisme-dev

This is weird, because I am using Starlight daily on my S20+, and I haven't encountered this issue. I will try to investigate.

kennethnym avatar Jul 05 '23 21:07 kennethnym