Closed matejdro closed 2 years ago
Thanks for reporting the issue. I'll try to investigate it over the weekend and get back to you.
I tried to reproduce this issue locally by simulating a stack-overflow exception. I can confirm that such an error overrides the original exception, but I couldn't reproduce the library crashing. Can you give me a bit more info on when/how the library itself crashes due to large stack traces?
As for handling extremely large stack traces, I think the issue is the limit on the size of IPC messages in Android. If it's too large, the IPC communication throws an error.
Would it be an acceptable solution to you if we log every exception caught by WhatTheStack?
Sorry, I was unclear. WhatTheStack still works normally and displays the exception, just the crash that happens inside WhatTheStack replaces the original exception.
Would it be an acceptable solution to you if we log every exception caught by WhatTheStack?
Ideally, misleading WhatTheStack window with the parcel error would be replaced by something else, but since the issues is so rare, I think this compromise is okay.
Fix available in 1.0.0-alpha04
When app crashes with a really large exception (such as stack overflow error with a really long stack trace), WhatTheStack will crash:
Even worse, this exception will override original exception, making it unaccessible unless I disable WhatTheStack.
Maybe in this rare case, WhatTheStack could try catch this error, print original exception to the logcat and just display the message (without the stacktrace)?