mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
84b38e291a
The whole crash call stack was appended to the bug report description, and the bug report server copies that description verbatim into the GitHub issue it opens. GitHub refuses an issue body over 65536 characters, so the server's save step failed and answered "Could not save report". The stored crash data is only cleared after a successful send, so every retry failed the same way. Truncate the description before sending it. The user's own text and the GitHub issue link come first, so only the tail of the crash stack is dropped. The uncaught exception handler already writes the full stack through Timber, so it stays available in the attached log files. The 40 KB budget leaves room for the other reported fields, mainly the list of omitted log file names, which is not otherwise bounded.