This PR fixes the issue where very large stacktraces override the original exception in WhatTheStack.
WhatTheStack uses a multi-process setup to show the exception screen after a crash
The thrown exception is parsed in the host application's process, and then sent across to a different process that runs WhatTheStackService.
Android places a limit on the size of IPC messages. Some exceptions lead to very large stack traces (such as StackOverflowException), which cause this limit to be exceeded.
In such cases, the process of transferring the parsed exception data to another process causes another exception to be thrown, which then overwrites the original exception.
It's not easy to workaround the IPC message size limitation. This PR adds code to log the original exception to make it's information is available through the logcat.
This PR fixes the issue where very large stacktraces override the original exception in WhatTheStack.
WhatTheStackService
.StackOverflowException
), which cause this limit to be exceeded.It's not easy to workaround the IPC message size limitation. This PR adds code to log the original exception to make it's information is available through the logcat.
Fixes #31