-
Notifications
You must be signed in to change notification settings - Fork 51
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: RadialGradient using radius of 0 #47
Comments
Many thanks for the report. I had some crashes when the distance is 0, maybe this is what caused them (the shadowRadius = radius + distance). I will investigate this asap. I had planned to fix this on 7.0.0, but I will release a hotfix for it as a patch to v6. |
Hi! I had the time to test the patch today. Just released it in 6.0.5 via ce32eea. I would appreciate if you also test it and give me your feedback about it! Thanks! |
Just tested it, setting distance and radius explicitly to 0 doesn't result in a crash anymore |
I found that the
radialGradient
function crashes when passed with ashadowRadius
of 0Error
This is the component that makes it crash
I cleaned up my code to not having to encounter this case but I am still raising this issue because I think the package could handle it more gracefully, even if it's a warning or error log and fallback to sensible values.
The text was updated successfully, but these errors were encountered: