bevyengine / bevy

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

iOS example crashes in 0.15-rc.3 and in main #16363

Open ferama opened 4 days ago

ferama commented 4 days ago

Bevy version

I attempted to run the iOS example using 0.15-rc.3 and from the latest commit in main (4225848b0aa08519e2715070b9e617813e3ac6ad)

Relevant system information

I'm using Rust v1.82.0 on MacOS Sonoma

What you did

Attempting to run the iOS example crashes with:

fatal runtime error: Rust cannot catch foreign exceptions
Can't show file for stack frame : <DBGLLDBStackFrame: 0x3396a8160> - stackNumber:3 - name:std::sys::pal::unix::abort_internal::hffa17df7d2f273a1. The file path does not exist on the file system: /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/pal/unix/mod.rs

It works in bevy 0.14.2

I also attemped to reduce the example removing almost everything. This one crashes too:

//! A 3d Scene with a button and playing sound.

use bevy::prelude::*;

// the `bevy_main` proc_macro generates the required boilerplate for iOS and Android
#[bevy_main]
fn main() {
    let mut app = App::new();
    app.add_plugins(DefaultPlugins).run();
}
alice-i-cecile commented 4 days ago

Can you please check 0.15.rc-2? There's a wgpu upgrade between them that is a very plausible candidate.

ferama commented 4 days ago

It works in 0.15.rc-2! It seems you probably caught it

ferama commented 4 days ago

Confirming that reverting the wgpu upgrade commit (4b05d2f4d8a627b9cc74ac77954e3e4cc9e672ed) makes the iOS example run again

alice-i-cecile commented 4 days ago

Thanks a ton for checking that. I've brought it to the awareness of the relevant experts.

Wumpf commented 4 days ago

There's not a whole lot of changes in that wgpu version on Metal/Mac/Apple specific things. But the linked upgrade commit also does changes to xcode projects, could those be relevant? https://github.com/bevyengine/bevy/commit/4b05d2f4d8a627b9cc74ac77954e3e4cc9e672ed#diff-10e1daed39805d49f29b77cec041a235e4c8a8795169b84bdb28df24af5d6c0c Otherwise I'd suspect it's third party crate updates that may have caused this.

tychedelia commented 4 days ago

But the linked upgrade commit also does changes to xcode projects, could those be relevant? 4b05d2f#diff-10e1daed39805d49f29b77cec041a235e4c8a8795169b84bdb28df24af5d6c0c

That was due to changes in https://github.com/gfx-rs/wgpu/pull/6107.

mockersf commented 3 days ago

fixed by https://github.com/gfx-rs/wgpu/pull/6535 on wgpu side