-
Notifications
You must be signed in to change notification settings - Fork 14
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
StackOverflow exceptions/crashes not reported by Raygun #82
Comments
@rs146 Is it only StackOverflowErrors you're missing? Would you have a reproducible case that triggers this? |
Hi @TheRealAgentK - yes it's only StackOverflow Errors that we are missing. I can confirm we are receiving all other crash logs. The StackOverflow case in the above example occurs in this scenario/use-case - when a user presses the Back button on the device. (The following code snippet has been shortened for clarity). In an Activity, override the
Although the logic is much more complex in our codebase - however, this is the core issue of the StackOverflow error that we have seen; but not reported in our Raygun logs. If this appears in Raygun, another option would be to do the following:
|
The core issue here seems to be that when a StackOverflowError occurs, we're essentially dealing with a VirtualMachineError that almost instantly crashes the virtual machine on the device before our hook into the unhandled exception tracker can even kick in - exaggerated by a lack of stack frames because of the StackOverflowError. Anecdotally some people had some success in catching this by re-throwing any VirtualMachineError as a more specialized exception, but that avenue will require some further exploration and it's currently unclear if that's a generally applicable solution. This will be addressed in work for a new release. |
Some more observations: The process simply dies before the payload is put into the posting services to be processed. Some directions to investigate:
|
Hi,
We have noticed that Raygun doesn't seem to pick up any crashes caused by StackOverflow errors. For example, we have the following stack trace in our Play Console:
However, these stack traces are not reported in Raygun. I can confirm we have set up/initialised the
RaygunClient
correctly using the following code in our Activity'sonCreate()
method:Is there anything that could be preventing Raygun from reporting these StackOverflow crashes?
Version ussed: 4.0.1
Thank you for your support.
The text was updated successfully, but these errors were encountered: