-
Notifications
You must be signed in to change notification settings - Fork 558
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
Android crash #405
Comments
Hi @elan, Can you provide more information on the topic? For example, a repro would be quite helpful |
Unfortunately I don't have a specific one, except that I've only seen it at launch. Would seem to be a race of some kind. |
My app is also crashing in some parts or slowing down when using BlurView on Android when setting the position style to absolute. I have a HOC for a loader when saving changes on my app, the blur is showed up on the entire screen, most of the times it works well but I have two specific pages in which the blur causes problems, either slowing down the app or crashing it |
Have anyone resolved it? |
i am facing too. It works for some seconds then crash |
This is a pretty common issue. Apparently Android limits the number of BlurViews per activity to 1, this is a limitation of the eightbitlab.com.blurview.BlurView library. So if you have multiple My advice, don't render BlurViews for Android, limit it to an iOS only feature. See the current list of Android issues EDIT: Is this react-native library re-using the EDIT 2: Maybe the library author might be able to help if someone creates a quick (non-react-native) repro for him (see Dimezis/BlurView#110 (comment)) |
@mrousavy you are right, I am rendering a list of images in Flatlist and using |
Look like a fix was made on the library: Dimezis/BlurView#110 (comment) |
Images have a property called blurRadius that you can use. This library is needed to get Views to be blurred so maybe you dont need it . |
I've the same issue
|
Fix: #411 |
I am getting the NullPointerException as well. I'm only ever rendering one BlurView. It is positioned absolutely. |
we also are getting this error in our project. But still exists |
it is solved by with the version "@react-native-community/blur": "https://github.com/Kureev/react-native-blur/archive/refs/tags/v3.6.1.tar.gz", |
@Kureev any ideas when 3.6.1 will be published on npm? Thank you! |
Any timeline for when we're going to release/publish 3.6.1 to fix this issue? |
Facing Same Issue on Android 11 |
yep. Crashing on Android 11 for me too... Fatal Exception: java.lang.NullPointerException: |
Hi guys, this just came up on my crashlytics too. Anything close to a solution in the works? Exception java.lang.NullPointerException: |
Same I just started seeing this error after upgrading to the latest version |
When this will be resolved? I'm having v4.3.0 of the package. Still crashes rising up... |
Same here. v4.3.0 |
Same here. v4.2.0 |
Same here, latest 4.3.2. Any way I can help (provide logs, other informations)? |
Same here. v4.3.0 |
I created a patch for v4.3.2 based on this PR and it worked like magic. We have applied the patch almost a month ago, and no issues reported since then. Here is my patch file: @react-native-community+blur+4.3.2.patch |
Cool, thanks! 🫶🏻 |
@antseburova @dualism98 Can you explain to me how I can make the patch? plz |
Hey, @sebas21. You need use this package for patches - https://www.npmjs.com/package/patch-package |
@sebas21. It looks like he doesn't delete the methods, but changes the create View Instance method, adding a null check so that there is no crash |
Still having this problem, it only happens on prod for some devices, receive the following tracktrace on crashlytics:
Using:
|
Same as @elgambet, I have this problem too, only happens on prod for some devices.
Using:
|
same issue |
We see a fair number of these show up in our bug reporting system:
The text was updated successfully, but these errors were encountered: