bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.24k stars 3.58k forks source link

Crash on Android on 0.14 #14146

Closed Litttlefish closed 4 months ago

Litttlefish commented 4 months ago

Bevy version

0.14

What you did

I updated bevy version to 0.14

What went wrong

Android game will crash, which didn't on 0.13

Additional information

Here is the crash dump org.bevyengine.roundyproduction_2024-07-05T1359.log

mockersf commented 4 months ago

Could you also share the console log?

Litttlefish commented 4 months ago

Could you also share the console log?

https://discord.com/channels/691052431525675048/757316314845937785/1258474648333455400 I'm not at my computer right now, this message has the same issue provided with some console log

mockersf commented 4 months ago

Those are not usable for me, I'll wait for something in text form rather than screenshots of logs when you can

Litttlefish commented 4 months ago

Those are not usable for me, I'll wait for something in text form rather than screenshots of logs when you can

Xiaomi-2206122SC-Android-14_2024-07-05_174638.log I grabbed some console information from logcat It was logcat format, but github doesn't support it

BaituLime commented 4 months ago

@mockersf It's mine. mine.log

extrawurst commented 4 months ago

I think the key is:

07-05 20:33:31.467 21914 18555 E event /home/bunny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.3/src/pCannot get the native window, it's null and will always be null before Event::Resumed and after Event::Suspended. Make sure you only call this function between those events.
mockersf commented 4 months ago

This seems to be https://github.com/bevyengine/bevy/issues/13038 but on more GPUs that we identified at the time it's fixed for Adreno 6xx, but you are on Adreno 730. Those GPUs lie about supporting compute shader 🤷

Litttlefish commented 4 months ago

I'll try disabling gpu processing on adreno 7 as #13323 did, let's see if it's really caused by that

Litttlefish commented 4 months ago

Yup, it's caused by this, changing it from 6 to 7 fixed my game, but should we expand this filter to all Adreno GPUs?