-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
App crashes on launch on Android 13 #110
Comments
I looked at the logcat and got some potentially-useful info.
Also, there's a call to aw-server-rust when the app starts, and judging by logcat that call appears to succeed. Maybe that can help rule out a potential error? The server call:
EDIT: I have a guess for why the workaround works at least, even if I haven't been able to figure out the cause for the crash. One guess - could there be a non-UI process that gets launched but is then killed, which causes ActivityWatch to immediately close? That would explain why "Show Background ANRs" works - it'd stop the process from getting silently killed. The crash happens in AsyncTask (presumably a non-UI process). That doesn't explain why there's no ANR popup for the background task. I can try taking another look in the logcat to see if I can figure that out. |
I've also just started encountering this, after finding no data has been recorded for the last week or so, and toggling the Usage access permission in an attempt to get it going again. Here's a log of the startup leading to the crash: 📎 20_05-23-32-16_835.log Enabling Show background ANRs also doesn't help for me. |
Possibly related issue: ActivityWatch/activitywatch#1003 |
I thought I posted an update here a while ago but I guess I didn't press Send. Anyway, the workaround stopped working for me shortly after I posted it. I tried to debug it and I got the same results as in the issue @derkrasseleo posted. I also tried to figure out where the problem is in the APK, and I'm almost certain it's in the Rust kernel. I tried disassembling that to see what method causes the crash, and if I remember correctly there were actually multiple methods. I'm pretty sure I saved my results somewhere, but I'm not at my work PC now. I'll check it and update once I'm home. EDIT: Alas I did not save my work, but I'll try to figure out my results again. |
I had the same issue as you @nathanmp but today randomly tried switching off "Pause app activity if unused" and suddenly Activity Watch runs as expected. I'm on a Google Pixel 7a with Android 14. |
Can't confirm that fixes it for me on Pixel 4a with Graphene OS (Android 13) Edit: I cleared storage and force restarted the app, not it works! |
I'm able to install the app and grant permissions just fine. However, when I launch the app, the app closes just after starting. A dialog saying "ActivityWatch keeps stopping" appears, but that disappears faster than I can click on it. I managed to screen record a gif of it, see below.
I've tested using all 6 combinations of the below, and the same thing occurs:
Hardware info if relevant:
At least for the Play Store release, the same issue is not happening on my old phone (Moto One 5G UW Ace, Android 12, kernel 4.19.157), nor does it happen on my tablet (Samsung Galaxy A7 Lite, Android 13, kernel 4.19.191). IIRC, the issue did happen when my old phone was using Verizon.
If you want me to get more info, let me know! Thanks!
The text was updated successfully, but these errors were encountered: