Kureev / react-native-blur

React Native Blur component
MIT License
3.75k stars 556 forks source link

[Android] Fatal Exception: java.lang.IllegalArgumentException #489

Closed jineshmistry1312 closed 1 year ago

jineshmistry1312 commented 2 years ago

I am using @react-native-community/blur": "^4.2.0"

Getting below crash issue in Firebase Crashlytics.

image

Fatal Exception: java.lang.IllegalArgumentException: Software rendering doesn't support drawRenderNode
       at android.graphics.Canvas.drawRenderNode(Canvas.java:2317)
       at eightbitlab.com.blurview.RenderEffectBlur.render(RenderEffectBlur.java:2)
       at eightbitlab.com.blurview.PreDrawBlurController.draw(PreDrawBlurController.java:56)
       at eightbitlab.com.blurview.BlurView.draw(BlurView.java:2)
       at android.view.View.draw(View.java:23770)
       at android.view.ViewGroup.drawChild(ViewGroup.java:5355)
       at com.facebook.react.views.view.ReactViewGroup.drawChild(ReactViewGroup.java:23)
       at android.view.ViewGroup.dispatchDraw(ViewGroup.java:5112)
       at com.facebook.react.views.view.ReactViewGroup.dispatchDraw(ReactViewGroup.java:3)
Gregoirevda commented 1 year ago

You should see it in Logcat by filtering on the 1st parameter which is a tag ("use hardware")

Bayramito commented 1 year ago
Ekran Resmi 2022-11-24 23 09 11

this is the setup...

filtering use hardware, and dont see anything

Gregoirevda commented 1 year ago

Changing the Java file in your node_modules and running npm run android should work

Bayramito commented 1 year ago

D/use hardware: false @Gregoirevda

herbertvuijk commented 1 year ago

confirming that the patch works https://github.com/Kureev/react-native-blur/pull/512/files

gregoryalary commented 1 year ago

Hey, do you guys have any idea of when will this patch be published on npm?

Tanmay000009 commented 1 year ago

This issue still persists with TouchableOpacity. Doesn't throw any error with View. But when the primary component is TouchableOpacity, and has used BlurView within it, throws an exception.

Titozzz commented 1 year ago

Should be fixed on latest