Closed Anas-7 closed 3 months ago
@Anas-7 can you provide a reproduce example as you mentioned?
@Anas-7 I did a quick test. Is this the correct step to reproduce the crash?
https://github.com/user-attachments/assets/6371d7cd-46d5-428a-9608-e2d29a82049f
Hey @duguyihou ours is very similar to how you have implemented it but our app crashes as soon as we click on the menu. Can you share the kotlin version that you used for this test app from your android/build.gradle
?
Our file currently looks like this:
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
kotlinVersion = "1.8.0"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath("com.google.gms:google-services:4.3.15")
classpath('com.google.firebase:firebase-crashlytics-gradle:3.0.0')
}
}
My guess is that kotlin version may cause issue. In any case, I will try and create a reproducible example this weekend. Thanks for getting back quickly!
Alright so we found the cause of the issue. We were using Blurview inside the drawer and removing that works. This issue in Blurview is documented here. I should have caught this earlier as I saw the logs and it had the following:
at eightbitlab.com.blurview.PreDrawBlurController.updateBlur(PreDrawBlurController.java:119) at eightbitlab.com.blurview.PreDrawBlurController$1.onPreDraw(PreDrawBlurController.java:50)
To replicate this, can you try wrapping the two options inside your drawer in a BlurView and then open it?
@Anas-7 Is it an issue for TurboImage or BlurView?
Update: I created a new release 1.9.0. With this version, you can disable hardware bitmaps.
https://github.com/user-attachments/assets/1bbb5fb8-e701-41b2-a5f2-a6adb542241d
It was the issue with BlurView and not TurboImage, as another library I mentioned in the thread above had the same issue and the logs point to an error in BlurView files, i.e., something related to eightbitlabs. I have created another issue in BlurView repo. Thanks a lot for the option of disabling hardware!
Thanks @Anas-7 , I will close this issue.
Describe the bug App shuts down when trying to navigate to hamburger menu made with @react-navigation/drawer. Currently, we show a feed where images are displayed with TurboImage. The images load and cache correctly, but on clicking the menu the app closes.
We tried a different library, but faced a similar error. Our crashlytics log point to an error related to Coil and is attached below.
To Reproduce I don't have an example set up yet but I'll add it over the weekend. This occurs on Android 14 and 13 too, having tested the former with a physical device and the latter as a virtual device.
Expected behavior App shouldn't crash due to
coil.drawable.CrossfadeDrawable.draw
Screenshots
Smartphone (please complete the following information):
Additional context This seems to be triggered due to hardware acceleration. I tried testing it with
android:hardwareAcceleration="false"
and while the code didn't crash, the performance suffered way more than acceptable for us. The last working version of this library seems to be 0.14.0 for sure, and it crashes on 0.16.0. We can't use the 0.14.0 version as that is giving us a lot of errors.