-
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 on many versions: RuntimeException: Canvas: trying to draw too large bitmap #5701
Comments
Looking at the various logs, this appears to be an editor issue rather than a media one. I'm seeing a lot of instances of |
Yes, |
It's still happening in 7.6. From the log (filtering on 7.6 only) I see the |
Dear developers, Hope I can help improve WordPress. |
Thanks for your feedback @struggggle! Right. This is going to be changed soon. Anyway I will add a patch asap for those who already use Aztec in betas and alphas. This should not be a problem, since Right, this should not load the full size picture. |
I my case, moving the (hi-res) splash bitmap from drawable to drawable-xxhdpi was the solution. I had the same problem. I didn't suspect my splash screen to be the problem, since it is displayed when the app is started, but it turned out the splash screen is the problem. The splash screen in my case has xxhdpi resolution, and it was mistakenly placed in the drawable folder, instead of drawable-xxhdpi. This made Android assume the splash screen had mdpi resolution and scale the image to 3*3 times it's required size and trying to create a bitmap. |
@hypest did you solved the problem i am facing the same problem Fatal Exception: java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@6d43381 |
👋 @mushtaq99 , I think |
30-day impact: ~7 per day https://sentry.io/share/issue/06479f2a38234c8abad668f173724b9f/ |
90-day impact: ~6 per day https://sentry.io/share/issue/06479f2a38234c8abad668f173724b9f/ |
90-day impact: ~7 per day https://sentry.io/share/issue/06479f2a38234c8abad668f173724b9f/ |
I checked logs today, filtering for 13.5, and in 8 out of 13 of them it looked like a problem trying to display very large images for updated posts in the Reader. @daniloercoli I could use a gut check on that interpretation though. 🙂 |
Users affected in the last 90 days: 139 I tried these steps to trigger a crash:
Result: no crash. Can you suggest other testing scenarios to potentially try? |
Users affected in the last 90 days: 154 |
So based on my investigation and reading several Glide issues especially this one, I think the devices are operating in an environment with memory constraints and they are crashing when attempting to load a large image in the Reader Photo View. Currently, we are using the device's viewport to calculate the image size that should be loaded and then passing the Photon URL generated from that size to Glide. To solve this we could
I haven't been able to reproduce this as yet, but I will keep on doing so. let me know if anyone has any thoughts on this so I can know if I should attempt any of the ideas I have shared. |
Users affected in the last 90 days: 164 |
An update. So I looked into this again. There's a crash I noticed that occurred because almost 15 images are present in a blog post and a user attempts to view them in the image preview. This causes 15 instances of the A solution for this case would be to limit the number of fragments that are loaded on-screen so that all instances don't have to be created especially because the user won't be viewing all the images at the same time. |
10 events have been tracked for this crash in 14.6.1 since it was released 9d ago on Apr 22. [UPDATE: total events counted in 14.6.1 increased to 25 as of May 19.] Number of users affected in the last 90d: 149 |
29 events have been tracked for this crash in 14.7 since it was released 15d ago on May 4. Number of users affected in the last 90d: 126 |
Events in the last 90d: 1300 [UPDATE: added 90d graph.] |
seems to the problem |
https://www.fabric.io/automattic/android/apps/org.wordpress.android/issues/584116ea0aeb16625b8423b7
Seems possibly related to trying to display very large images. Added the "Media" label for that reason. Feel free to remove if not relevant.
The text was updated successfully, but these errors were encountered: