-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Crash: android.os.TransactionTooLargeException #9685
Comments
30-day impact: ~40 times a day
cc @koke to get input on priority since it was mentioned as possibly related to Gutenberg Mobile and also because it is currently the most common crash. |
I'm not super familiar with Android, but I looked at the logs for a bunch of crashes and the pattern I'm seeing is that it happens when the application is closing and it's trying to save its state. For instance:
|
30-day impact: ~41 per day (5c93a36df8b88c2963f28894-fabric-android) Note: in 12.3 we switched to using Sentry and this issue is showing up there but is far more common in older versions of Android so far (or we do not have enough data for 12.3 yet to compare). |
This crash is indeed related to #5456 and it's happening because we're saving too much stuff into the
I think this means that any place in the app could cause this issue (or any place where we store a lot of stuff into the |
A mobile request for help which came in over Apr and May may be a candidate for this crash and the user reported the following example steps to reproduce the issue they are facing:
I think the large number of images are the culprit in their case. (internal references: p4a5px-2om-p2/#comment-9755 and 1953510-zen) |
Copying over steps to reproduce from a similar crash report at #5456 (comment). Steps to reproduce:
|
As mentioned in #5456 (comment) , if you can identify specific places where you put too much stuff in a |
30-day impact: ~37 per day https://sentry.io/share/issue/ed6aca84b5d74e40b016c9472defe828/ |
Reopening the issue since there are still occurrences in the latest release Pasting the stack trace:
|
Sentry events analysisI couldn't find any pattern after reviewing different Sentry events and sessions. However, I did notice that all of them are Atomic sites. This might be a clue although I couldn't reproduce the crash when testing an Atomic site. As shared internally by @antonis (pcdRpT-4n3-p2#comment-7328), this crash has experienced a dramatic increase in version Debugging stack traceThe only area of the app that can be associated with the crash is the editor, as the stack trace points to the function Steps:
For the above scenario, I found that the saved state can easily reach between 200 - 300 KB. I identified two main actors for the unexpected size: Theme dataTheme data is included as arguments for the two Gutenberg fragments** ( I tried to increase the data size by customizing a theme but this didn't end up incurring an extra size. I thought this might be a theme-specific issue. However, after testing the same themes used by users who experienced the issue, none of them have led to the crash. NOTE: The key used to hold the data in the bundle is State of views used within the editorDepending on the content of the post, I noticed that the instance state can be incremented.
This data is in the state of I'm unaware if we really need to keep the state of Aztec views, so might be interesting to explore how to remove this in the spirit to reduce the state size.
|
Thank you for the detailed investigation and report @fluiddot 🙇
Same. I wasn't able to reproduce a crash.
Good idea 👍 Since we cannot predict the size of the data on each site I think our best bet would be to replace the current mechanism that passes the data in the Bundle with an implementation that saves everything (or at least the large data) in the database. |
I totally agree. A comment in this issue (#9685 (comment)) also pointed out a similar solution by using the library https://github.com/livefront/bridge. |
Reopening since this is not covered yet |
I haven't managed to reproduce this issue on my device but there are reports (Chromium issue) that the
A fix like the above would require extensive testing since it would affect the Considering the above and that I haven't managed to reproduce the crash to validate this as a fix I haven't proceeded with a PR with this approach yet. Another (maybe safer) hacky alternative would be to remove the |
Sentry issue: JETPACK-ANDROID-7Y4 |
Sentry issue: JETPACK-ANDROID-8HV |
Sentry issue: WORDPRESS-ANDROID-2V8H |
With
I'll keep monitoring the issue and iterate with additional fixes if needed. |
Sentry Issue: WORDPRESS-ANDROID-2QCB |
Sentry Issue: JETPACK-ANDROID-E9W |
Sentry Issue: WORDPRESS-ANDROID-2TD8 |
I've linked a few more occurrences of |
Sentry Issue: JETPACK-ANDROID-MKP |
Thanks for reporting! 👍 |
Sentry Issue: WORDPRESS-ANDROID-2W93 |
Sentry Issue: JETPACK-ANDROID-P5N |
I'm marking this as resolved as there are no occurrences in the latest version. I'll keep an eye for regressions. |
Opened a separate issue for the |
This one started in 11.8 and has been becoming more prominent in 12.0 and 12.1.
It's currently the most common crash in Fabric.
Unluckily, the crash logs doesn't say much about where it occurs, but Fabric suggests that it is often seen when transferring bitmaps between Activities, or when saving a large amount of state between Activity configuration changes.
We had other occurrences of it in the past: #5456.
Also, this thread facebook/react-native#19458 suggests that it may be related to React-Native. The trend we see in Fabric (started in 11.8, growth a bit in 11.9, growth a lot in 12.0 and 12.1) seems to be compatible with mobile Gutenberg deployment in the app.
5c93a36df8b88c2963f28894-fabric
The text was updated successfully, but these errors were encountered: