ModelViewer init Crash only in release build #7367
-
I am trying to show a 3d view in my app. It works completely well in debug build. But crashed with the release version. After surface created, I did The call stack is like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It's probably due to ProGuard/R8 and a missing rule. It'll be easy to fix. In the meantime turning off minification in your build file should fix the issue. |
Beta Was this translation helpful? Give feedback.
-
Hm our code properly preserves the field: @UsedByNative("MaterialKey.cpp") Do you compile Filament yourself? If so make sure to use our Proguard rules or to tell Proguard to preserve all Filament APIs. |
Beta Was this translation helpful? Give feedback.
-
I didn't compile Filament. I used verion 1.31.0. |
Beta Was this translation helpful? Give feedback.
It's probably due to ProGuard/R8 and a missing rule. It'll be easy to fix. In the meantime turning off minification in your build file should fix the issue.