You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
use bevy::prelude::*;fnmain(){App::new().add_system(|| println!("Hello world")).run();}
The text was updated successfully, but these errors were encountered:
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
When adding
bevy_pixel_camera
as a dependency and using bevy'sdynamic
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 usingcargo run
and everything works fine.Cargo.toml
src/main.rs
The text was updated successfully, but these errors were encountered: