-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bevy App with DefaultPlugins Segfaults on M1 Mac #10524
Comments
If it helps, I'm also running this in a nix environment. `flake.nix` for reference {
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rustToolchain
rustPlatform.bindgenHook
darwin.libobjc
];
buildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin
(with pkgs.darwin.apple_sdk.frameworks; [
AudioToolbox
AudioUnit
CoreAudio
OpenAL
AppKit
Metal
MetalKit
]);
};
} |
Works for me without nix. Can you check? |
Is the I am unable to compile the app when I try without Nix. I get an
|
Hmm, tried on a fresh user profile without nix, seems to work. Will try to isolate the issue on the nix end. |
I have the same problem without nix. The problem only appears when I have [profile.dev.package."*"]
opt-level = 3
|
Also got a segfault on startup, M2 Max. @sergeypdev's suggestion worked, but also switching from nightly to stable worked (while having opt-level = 3). Also, not using nix, and on Sonoma 14.1. sccache. |
Same here (I'm also using Nix, but not in this particular project - there's just Nix installed on my system, but no flake.nix etc. in the project's directory). In my case it reliably crashes when dropping a vector, though:
edit: works in debug mode, though! |
Seems to have been reported at rust-lang/rust#117902 - the recent working toolchain is Edit: it looks like disabling cross-crate inlining "solves" the issue, i.e.:
|
Running into this with dexterous_developer as well - for now lowering the optimizations on bevy, but looking forward to a resolution. |
Just updated nightly: rustc 1.76.0-nightly (a96d57bdb 2023-12-15) (from rustc 1.76.0-nightly (a57770440 2023-11-16)) .. and the segfault went away when using Looks like the related issue is fixed: rust-lang/rust#117902 (comment) |
@alice-i-cecile should probably close this as stale, unable to reproduce, an upstream/rustc problem, solved, or some combination thereof. :) |
Bevy version
bevy = "0.12.0"
Relevant system information
What you did
Tried running code from the tutiorial. I think this is the minimum version of the code that fails for me. I am not very familiar with the ecosystem but happy to help isolate the issue further.
What went wrong
Bevy app segfaults after printing a single line of tracing log.
Running with
lldb
seems to be helpful in isolating the issue towgpu_core
The text was updated successfully, but these errors were encountered: