Skip to content
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

PRIORITY - Segmentation fault on release build #80

Open
BUGO07 opened this issue Oct 1, 2024 · 5 comments
Open

PRIORITY - Segmentation fault on release build #80

BUGO07 opened this issue Oct 1, 2024 · 5 comments

Comments

@BUGO07
Copy link
Contributor

BUGO07 commented Oct 1, 2024

how to replicate:
run this code with a release build

use bevy::prelude::*;
use bevy_lunex::prelude::*;

fn main() {
    App::new()
        .add_plugins((
            DefaultPlugins,
            UiDefaultPlugins,
        ))
        .run();
}

result:
error: process didn't exit successfully: target\release\game_name.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Segmentation fault

@BUGO07
Copy link
Contributor Author

BUGO07 commented Oct 1, 2024

this only affects release builds, on debug builds it runs as expected

@BUGO07
Copy link
Contributor Author

BUGO07 commented Oct 1, 2024

BTW i'm using nightly rust

@BUGO07
Copy link
Contributor Author

BUGO07 commented Oct 1, 2024

tried stable as well, it's fair to say this is definitely coming from lunex

cargo +stable --version
cargo 1.81.0 (2dbb1af80 2024-08-20)

@BUGO07
Copy link
Contributor Author

BUGO07 commented Oct 1, 2024

i'm using windows 11 pro Version 10.0.22631 Build 22631,
cargo 1.81.0 (2dbb1af80 2024-08-20)
i could not yet replicate this in a clean compilation,

@BUGO07
Copy link
Contributor Author

BUGO07 commented Oct 1, 2024

turn's out it was somehow the fault of my fork of bevy_asset_loader that i used as a dylib (i didn't use any code from that crate in the test, the code above is all i used, but having it in dependencies was enough to segfault), after removing crate-type = "dylib" from it i no longer get a segfault, although i still have no clue how it interferes with lunex :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant