-
Notifications
You must be signed in to change notification settings - Fork 27
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
Blank Dark Screen After force crashing #86
Comments
Hi! That's very interesting, I would assume that, to be able to crash for a second time, you'd have to completely kill the app from recents - in which case any previous state should no longer matter. Maybe some corrupted files that the bug report screen tries to read are causing an instant crash? Few questions / ideas: 1 - Can you reproduce this issue after cleaning the app storage? Knowing exactly what exception is thrown (unless it's an infinite loop of the process starting and crashing) would be a good first step. |
Sounds like we're in different time zones, I'll let you know if I find something while you're asleep. If not, here's one idea: UncaughtExceptionHandler is the thing opening the BugReport screen (after writing the crash to a file). Unfortunately, if the bug report screen itself throws an exception, that might explain the black screen you see (main thread trying and failing to open the screen over and over again). I had some safeguards against this but obviously they don't work. But you should be able to see the crash log! In Android Studio open the Device File Explorer and navigate to There, if we're lucky, you should be able to see files called If you open the most recent one, we should see what crashes exactly. |
I found something interesting. I had so many log files in the provided folder. Because that's how my logging engine works in my app. So, I have deleted all files in the directory. Now it's working fine after clearing everything. Do you think it's getting stuck after a certain amount of files in the beagle logs directory? As long as you reply back it motivates me to stay up and fix this thing :) I'll take my word back. Sounds like I'm wrong.. So it worked fine magically and later I had about 150 files.. I tried deleting them in file explorer and gave it a try to see whether this is the issue.. Sounds like it's getting stuck again.. I need to force close the app after getting stuck and reopen it --> Then it's working normally.. |
The normal logs are fine but I'd be curious to see the contents of one of those |
{"id":"f6RANDOM-easdas-2312-8sdadsadsa-sdas39ac0e","exception":"An operation is not implemented: App is crashed to test debug drawer tool","stacktrace":"kotlin.NotImplementedError: An operation is not implemented: App is crashed to test debug drawer tool\n\tat com.test.mobile.testpackage.ui.TestActivity$setViews$3.invoke(AppChooserActivity.kt:146)\n\tat com.test.mobile.testpackage.ui.TestActivity$setViews$3.invoke(AppChooserActivity.kt:143)\n\tat com.test.mobile.lib.extensions.ViewExtensionsKt$setSafeOnClickListener$1.invoke(ViewExtensions.kt:31)\n\tat com.test.mobile.lib.extensions.ViewExtensionsKt$setSafeOnClickListener$1.invoke(ViewExtensions.kt:30)\n\tat com.paycom.mobile.lib.view.listener.SafeClickListener.onClick(SafeClickListener.kt:11)\n\tat android.view.View.performClick(View.java:7448)\n\tat android.view.View.performClickInternal(View.java:7425)\n\tat android.view.View.access$3600(View.java:810)\n\tat android.view.View$PerformClick.run(View.java:28305)\n\tat android.os.Handler.handleCallback(Handler.java:938)\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\n\tat android.os.Looper.loop(Looper.java:223)\n\tat android.app.ActivityThread.main(ActivityThread.java:7660)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)\n","timestamp":23213213123213} One of the crashlog_* data file.. |
Oh okay, so it's your test crash, not something from the library :( I'll investigate more, thanks for all the info! |
I believe some operation looping all the persisted files is the root cause of this lag. |
I tried to test force crash by throwing a forced exception.
It logs fine first time and shows bug report menu.
But when I try to repeat the same step for second time, it is giving me blank screen after crash and in my activitylifecyclelogger I'm able to see that it is in BugActivity screen onCreate().
I have tried disabling leakcanary and it's the same case.
Is there anyway I can debug this more so that I can get more info to report the bug?
The text was updated successfully, but these errors were encountered: