-
Notifications
You must be signed in to change notification settings - Fork 543
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
E/CustomActivityOnCrash: App has crashed, executing CustomActivityOnCrash's UncaughtExceptionHandler #44
Comments
Hi @utkarshGithub, sorry for taking a while to reply. Did you manage to solve the problem? Your code appears to be fine (however, if you set the errorActivity via CaocConfig, the intent-filter is not really needed). Could you provide a minimal project so I can check if there is any other issue that causes this? Thanks! |
The same issue. Some details: Tested on OnePlus 5 with 7.1 android and HTC One S on 4.1.
Config in application class:
CrashActivity.class is my custom activity which works absolutely 100%. The issue takes part if I call throw new RuntimeException(); at the end of activitie's onCreate method - there will be nothing. If I call it from onDestroy/onResume etc. it will work right. Also, if I use throw with some delay it will work!
It seems as if it does not have time to start. If I call any exception after some delay from initialization - it will work fine. Also, it will work fine in any onCreate methods in future activities. |
Hi @DominuS-RU, can you provide a minimal project with all the code so I can reproduce the issue? I'm assuming that the problem doesn't happen on the sample project, can you check? Thanks!! |
@Ereza Hello! Hope, my current details will help you. |
Thanks, I'll take a look into it! |
@Ereza, I've found the mistake.
An exception for MainActivity Then, start you application and see nothing. |
Anything new about this issue? |
Hi, sorry for the ultralate reply. With the examples you provided, I saw that there was an issue when the background mode is "silent" and the app is being launched. The background/foreground detection mechanism relies on started activities, and obviously a new activity that crashes in I solved this by recording the last time an activity was created ( This will be available in the next release of the library. |
I am using custom error activity , below is my manifest file
and this my application file
i cannot see the custom crash activity
The text was updated successfully, but these errors were encountered: