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

Repetitive crashes, unsets itself as default launcher #6

Open
Cwpute opened this issue Jan 9, 2024 · 4 comments
Open

Repetitive crashes, unsets itself as default launcher #6

Cwpute opened this issue Jan 9, 2024 · 4 comments
Labels
bug Something is not working

Comments

@Cwpute
Copy link

Cwpute commented Jan 9, 2024

Checklist

    • I can reproduce the bug with the latest version.
    • I made sure that there are no existing issues - open or closed - to which I could contribute my information to.
    • I have read the FAQ and my problem isn't listed.
    • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
    • This issue contains only one bug.

Describe the bug
Launcher crashes in unexpected places. In my own case i think it happens when the device is overloaded with open apps and processes, but some people have reported it crash right on startup, some when setting a new shorcut or a new widget.
When it does crash, it unsets itself as default launcher and the device asks again for a default app. In my case, this will always lead to repetitive crashes, only triggered by trivial actions like opening the app drawer.
Rebooting the phone seems to stop theqrepetitive crashes.
At the same time, the preinstalled launcher works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Unknown actions… maybe open lots of heavy apps, perform quick actions in the launcher itself ?…
  2. Launcher crashes
  3. Device asks for a new default launcher
  4. Set Launcher as new default
  5. Launcher will then repetedly crash on minor actions

Expected behavior
Should-not crash, and should also retain its default app status.

Device info (please complete the following information):

  • Model: Nokia TA-1157
  • OS: Android 11
  • App version SMT 5.1.1

Additional context
Related issuet i found in the original SMT repository:

@Cwpute Cwpute added bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Jan 9, 2024
@Aga-C Aga-C removed the needs triage Issue is not yet ready for PR authors to take up label Jan 9, 2024
@naveensingh
Copy link
Member

I have been using it as my go to launcher for the last few weeks and I haven't observed any crashes so far. Do you have any more tips on how to reproduce this?

@Cwpute
Copy link
Author

Cwpute commented Aug 16, 2024 via email

@FliegendeWurst
Copy link

I found a stacktrace in logcat:

Widget host dead: HostId{user:0, app:10192, hostId:2131296295, pkg:com.benny.openlauncher}
android.os.DeadObjectException
  at android.os.BinderProxy.transactNative(Native Method)
  at android.os.BinderProxy.transact(BinderProxy.java:571)
  at com.android.internal.appwidget.IAppWidgetHost$Stub$Proxy.providersChanged(IAppWidgetHost.java:237)
  at com.android.server.appwidget.AppWidgetServiceImpl.handleNotifyProvidersChanged(AppWidgetServiceImpl.java:2083)
  at com.android.server.appwidget.AppWidgetServiceImpl.access$1800(AppWidgetServiceImpl.java:146)
  at com.android.server.appwidget.AppWidgetServiceImpl$CallbackHandler.handleMessage(AppWidgetServiceImpl.java:3687)
  at android.os.Handler.dispatchMessage(Handler.java:106)

@FliegendeWurst
Copy link

And another:

FATAL EXCEPTION: main
Process: org.fossify.home, PID: 15602
java.lang.RuntimeException: Unable to stop activity {org.fossify.home/org.fossify.home.activities.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'com.android.server.appwidget.AppWidgetServiceImpl$ProviderId com.android.server.appwidget.AppWidgetServiceImpl$Provider.id' on a null object reference in method 'android.util.SparseArray com.android.server.appwidget.AppWidgetServiceImpl$Host.getWidgetUids()'
	at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5157)
	at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5129)
	at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5194)
	at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43)
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
	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:2211)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7880)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009)
Caused by: java.lang.NullPointerException: Attempt to read from field 'com.android.server.appwidget.AppWidgetServiceImpl$ProviderId com.android.server.appwidget.AppWidgetServiceImpl$Provider.id' on a null object reference in method 'android.util.SparseArray com.android.server.appwidget.AppWidgetServiceImpl$Host.getWidgetUids()'
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2432)
	at android.os.Parcel.createException(Parcel.java:2410)
	at android.os.Parcel.readException(Parcel.java:2393)
	at android.os.Parcel.readException(Parcel.java:2335)
	at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.stopListening(IAppWidgetService.java:792)
	at android.appwidget.AppWidgetHost.stopListening(AppWidgetHost.java:258)
	at org.fossify.home.activities.MainActivity.onStop(Unknown Source:17)
	at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1497)
	at android.app.Activity.performStop(Activity.java:8280)
	at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5149)
	at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5129) 
	at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5194) 
	at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43) 
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) 
	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:2211) 
	at android.os.Handler.dispatchMessage(Handler.java:106) 
	at android.os.Looper.loopOnce(Looper.java:201) 
	at android.os.Looper.loop(Looper.java:288) 
	at android.app.ActivityThread.main(ActivityThread.java:7880) 
	at java.lang.reflect.Method.invoke(Native Method) 
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009) 
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.appwidget.AppWidgetServiceImpl$Host.getWidgetUids(AppWidgetServiceImpl.java:4171)
	at com.android.server.appwidget.AppWidgetServiceImpl.stopListening(AppWidgetServiceImpl.java:794)
	at com.android.internal.appwidget.IAppWidgetService$Stub.onTransact(IAppWidgetService.java:311)
	at android.os.Binder.execTransactInternal(Binder.java:1179)
	at android.os.Binder.execTransact(Binder.java:1143)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

4 participants