google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.63k stars 1.86k forks source link

sample run on android crash #1088

Closed jaccen closed 5 years ago

jaccen commented 5 years ago

2019-04-10 16:21:07.745 6373-6373/com.google.android.filament.hellotriangle E/Filament: Panic in void filament::details::FEngine::init():171 reason: Post-process material version mismatch. Expected 3 but received 2. 2019-04-10 16:21:07.746 6373-6373/com.google.android.filament.hellotriangle E/Filament: --------- beginning of crash 2019-04-10 16:21:07.746 6373-6373/com.google.android.filament.hellotriangle A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 6373 (t.hellotriangle)

romainguy commented 5 years ago

It looks like you are building Filament for Android with an older version of matc. Try a clean build to fix this issue.

agGitHub commented 4 years ago

Similar crash here after update of the SceneForm library from 1.9.0 to 1.13.0 :

2019-12-06 14:53:31.963 26871-26871/com.mycompany.myappname E/Filament: Panic
    in filament::Material *filament::Material::Builder::build(filament::Engine &):86
    reason: Material version mismatch. Expected 4 but received 2.
2019-12-06 14:53:31.963 26871-26871/com.mycompany.myappname E/Filament: --------- beginning of crash
2019-12-06 14:53:31.963 26871-26871/com.mycompany.myappname A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 26871 (c.myappname), pid 26871 (c.myappname)

Cleaning the build didn't fix the issue.

Thanks for your help.