8000 Workaround for RSInvalidStateException Calling RS with no Context active. by Kaszmir · Pull Request #1 · flip-shop/BlurView · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Workaround for RSInvalidStateException Calling RS with no Context active. #1

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

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

Kaszmir
Copy link
Collaborator
@Kaszmir Kaszmir commented Feb 21, 2025

Workaround for crash on android 10 and 11 using RenderScriptBlur combined with react-native-fast-image-library where we're using p.wasabeef.glide.transformations.BlurTransformation which also uses RenderScript and calls the method RenderScript.releaseAllContexts(); after applying the blur.

FIX:
creating new instance of RenderScript when exception will be caught

GooglePlay related issue:
https://play.google.com/console/developers/7028705804118587859/app/4972548598184891699/vitals/crashes/711205223851c75ae10c8673ec3d7250/details?days=28&isUserPerceived=true

…ined with react-native-fast-image-library where we're using p.wasabeef.glide.transformations.BlurTransformation which also uses RenderScript and calls the method RenderScript.releaseAllContexts(); after applying the blur.

FIX:
creating new instance of RenderScript when exception will be caught

GooglePlay related issue:
https://play.google.com/console/developers/7028705804118587859/app/4972548598184891699/vitals/crashes/711205223851c75ae10c8673ec3d7250/details?days=28&isUserPerceived=true
@Kaszmir Kaszmir merged commit ee07c38 into master Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0