-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
App crashing on Android (com.horcrux.svg.SvgView.onDraw) #1394
Comments
Hi @msand, could you please take a look on this? |
This happens when I try to set something like: <Svg style={{ width: deviceWidth * 3, height: deviceHeight * 3 }} ... /> |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open. |
@3luyka did you get any solution on this? I am also facing the same issue. |
+1 same |
Possible explanation from similar experience: your image gets too darn big, even as vector, especially on hi-res larger-screen devices. We had a simple SVG resized to several times the device width/height for an animation and encountered this fatal error (in prod 🤦 ); we had been diligent about testing on older devices but less so newer flagships. Trimming down the SVG to only the parts viewable -> decreasing the dimension multiples required from 2x,4x to 1x,2.2x & adding a subtle transform so the animation effect stayed the same -> no more crashes. Hope that helps someone! |
Hello @3luyka, |
hey guys, I'm getting this crash too in Android. Here are some details. The app is crashing when rendering Home Screen which use react-content-loader. I also tried to remove all this loader component but the crash was still there. Very few times I got in Sentry the very same stack trace as the original post here.
|
Hey there!
I've got several crash reports.
This is happens only on Android 10. (Pixel 3 XL / Pixel 2 XL / Pixel 4 XL).
Environment info
Library version: 12.1.0
Crash stack info
The text was updated successfully, but these errors were encountered: