Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash using react-native-blur [Android] Fatal Exception #190

Closed
Titozzz opened this issue Nov 3, 2022 · 3 comments
Closed

Crash using react-native-blur [Android] Fatal Exception #190

Titozzz opened this issue Nov 3, 2022 · 3 comments

Comments

@Titozzz
Copy link

Titozzz commented Nov 3, 2022

Hello, react-native-blur maintainer here 馃憢馃徎
We are having a crash in the native android code so I thought I'd ask for help!
If you have any advice regarding the current implementation, that will also be lovely
Many thanks

  1. Library version - 2.0.2

  2. Device and OS version - >= API 31

  3. Detailed steps to reproduce the issue
    Sometime the views are not hardware accelerated and the app crashes while trying to use the new implementation (>= API 31), do you know:
    a) How to detect if HW accel is enabled to fallback to old implem
    b) Maybe make blurview safer to directly fallback by itself ?

  4. XML layout and code for BlurView setup
    Not relevant

  5. Stacktrace in case of a crash
    See [Android] Fatal Exception: java.lang.IllegalArgumentException聽Kureev/react-native-blur#489, there are plenty

@Dimezis
Copy link
Owner

Dimezis commented Nov 4, 2022

Yeah, I didn't account for that.
I'll make a fix to fallback to a different blur algorithm for such cases

@Titozzz
Copy link
Author

Titozzz commented Nov 9, 2022

Thank you so much, let me know when we can update

@Dimezis
Copy link
Owner

Dimezis commented Nov 24, 2022

Should be fixed in 2.0.3

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

No branches or pull requests

2 participants