Gramophone icon indicating copy to clipboard operation
Gramophone copied to clipboard

[BUG] Foreground exception

Open lschierer opened this issue 1 year ago • 3 comments

Describe the bug Crash report waking the app in the morning

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Gramophone should wake and come to the foreground normally

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information): -Gramophone version: 1.0.8.04a37e

Brand: samsung Model: SM-T860 SDK Level: 32

Additional context

Thread: main

Time: 2024-06-10 08:28:23 --------- beginning of crash android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{f5d3f57 u0 org.akanework.gramophone/.logic.GramophonePlaybackService} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2206) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2177) at android.app.ActivityThread.access$3000(ActivityThread.java:324) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2435) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8855) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

lschierer avatar Jun 10 '24 12:06 lschierer

did this ever happen again?

nift4 avatar Oct 06 '24 16:10 nift4

I've had a few more crashes, but not frequently.

lschierer avatar Oct 10 '24 05:10 lschierer

This unfortunately appears to be something we can't really fix because it seems to happen on Android 12 only, sorry.

nift4 avatar Feb 27 '25 16:02 nift4

From Google's side there have been a few more bug fixes, did you ever have this again? If you did, I can add a workaround that just skips the crash reporter for these.

nift4 avatar Jun 07 '25 11:06 nift4

Lately I haven't seen it crash. Several times I have needed to force stop it and clean the cache because it hangs on this blank black screen bringing it to the fore, but I don't see a pattern for when or why. It isn't frequent.

lschierer avatar Jun 07 '25 12:06 lschierer

that blank screen bug is already fixed in the dev version and I'm pushing out a release soon, that was quite the blunder that led to this bug. closing this issue as crash wasn't observed.

nift4 avatar Jun 07 '25 12:06 nift4