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

Met with service failure and crashed #501

Open
Kobayashi-996 opened this issue Jan 2, 2023 · 1 comment
Open

Met with service failure and crashed #501

Kobayashi-996 opened this issue Jan 2, 2023 · 1 comment
Labels

Comments

@Kobayashi-996
Copy link

Describe the bug

I have met with this several times.
I tried to reproduce but failed.
The only thing I have is the logcat, hope the info could help.

Environment

Android: Android 9.0
App Version: 3.11.00 with the latest commit

Logcat

01-01 13:24:51.609 27187 27187 E AndroidRuntime: FATAL EXCEPTION: main
01-01 13:24:51.609 27187 27187 E AndroidRuntime: Process: com.better.alarm.debug, PID: 27187
01-01 13:24:51.609 27187 27187 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.better.alarm.background.AlertServiceWrapper@a3edc9 with Intent { act=com.better.alarm.debug.ALARM_DISMISS cmp=com.better.alarm.debug/com.better.alarm.background.AlertServiceWrapper (has extras) }: java.lang.IllegalStateException: First event must be AlarmEvent or PrealarmEvent, but was DismissEvent(id=3, actions=com.better.alarm.debug.ALARM_DISMISS)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3686)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:199)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6669)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: Caused by: java.lang.IllegalStateException: First event must be AlarmEvent or PrealarmEvent, but was DismissEvent(id=3, actions=com.better.alarm.debug.ALARM_DISMISS)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at com.better.alarm.background.AlertService.stateValid(AlertService.kt:146)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at com.better.alarm.background.AlertService.onStartCommand(AlertService.kt:121)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at com.better.alarm.background.AlertServiceWrapper.onStartCommand(AlertServiceWrapper.kt:203)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3667)
01-01 13:24:51.609 27187 27187 E AndroidRuntime: ... 8 more

@yuriykulikov
Copy link
Owner

Yeah, I am observing there too, sometimes. This only happens in debug builds though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants