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

Stack overflow or linker error when using bevy's dynamic feature #17

Closed
holly-hacker opened this issue Oct 29, 2022 · 1 comment
Closed

Comments

@holly-hacker
Copy link
Contributor

When adding bevy_pixel_camera as a dependency and using bevy's dynamic feature, your project will either fail to build or crash on startup (presumably during dynamic linking).

This seems to be related to bevyengine/bevy#1110 but they seem to mention fairly specific setups, while the repro below crashes on stable rust with no custom configuration.

I understand this is likely not a bug in bevy_pixel_camera but rather in bevy_dylib, but I figured I'd open an issue to notify you of the problem. I won't mind if you choose to close this :)

Minimal repro

Create a project with the files listed below, run using cargo run --features bevy/dynamic and observe a linker error mentioning "library limit of 65535 objects exceeded". Run using cargo run and everything works fine.

Cargo.toml

[package]
name = "bevy_pixel_camera_crash"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = { version = "0.8.1", default-features = false }
bevy_pixel_camera = "0.2.0"

src/main.rs

use bevy::prelude::*;

fn main() {
    App::new().add_system(|| println!("Hello world")).run();
}
@holly-hacker holly-hacker changed the title Stack overflow or linker error when sing bevy's dynamic feature Stack overflow or linker error when using bevy's dynamic feature Oct 29, 2022
@drakmaniso
Copy link
Owner

Closing, as I think the problem is no longer there (the relevant issue in Bevy has been closed for several months).

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

2 participants