-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
.add_systems DONT WORK #17130
Comments
Interesting. Curious to know if adding the |
I was wrong sorry. |
If that's the case, then the example in the documentation is wrong. |
Actually I retract what I said earlier, this should work. Also, It does actually work, at least on Linux. Try checking if there is some antivirus software breaking things? I've at least seen that happen before. |
if add |
i dont have any) I have completely removed the antivirus from my Windows system and I don’t use any third-party ones. Also, I can run the example project and add the default plugin. All it works. I used a clean installation and tried running i use 23H2 Windows ver. OS 22631, 4602 build |
Just a note that I can't repro the crash with the example code on Mac. |
Are your GPU drivers up to date? I would also try to reinstall the GPU driver. |
Try disabling dynamic linking, maybe? (Just a guess) |
Can you please post your Cargo.toml? |
@KeiMuriKoe From the screenshot I can see you depend on |
@KeiMuriKoe There is an issue with wgpu on Windows where you get this error. In my case my laptop has both a dedicated and an iGPU and I had to specify to always use the dedicated GPU in the Nvidia driver settings (by default it just "picks the best" for the process / power saving scheme). I recall there is a similar setting for AMD GPUs as well (the Windows setting didn't work for me), perhaps you can try to look for that. edit: this is the ticket I pinged but couldn't yet follow up: gfx-rs/wgpu#5879 |
no problem
edited : As I mentioned earlier, I didn’t add anything that wasn’t already in Bevy’s quick start guide. I only included everything suggested for optimizing the program's compilation time. |
Sounds very interesting! What do I need to do to test this hypothesis? |
Oh. THX YOU! REally helpful information |
Is it ok? If not - waiting room for someone reproduce it |
Okay, could you give some info on your installed rust toolchain? |
I’m not entirely sure what you mean by "toolchain." Perhaps you mean this: I installed the latest MSVC, the latest Windows SDK, and the C++ CMake tools for the Windows component. |
What I mean is the info you are given by running |
|
try running |
It didn't help. |
Try running |
The example code doesn't add any plugins, and thus doesn't interact with the GPU. |
Yes, I used dynamic_linking and the other features in your Cargo.toml. |
TL;DR: My next comment has a minimally reproducible example showing that the issue persists with
|
I set up a new project with the following [package]
name = "bevy_test"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = { version = "0.15", default-features = false, features = ["dynamic_linking"] } The rust code did not change: use bevy::prelude::*;
fn main() {
App::new().add_systems(Update, setup).run();
}
fn setup() {
println!("Setup");
} Results:
Next I tried adding the following to [profile.release]
lto = "thin" And ran into the error where the program runs but does not print "Setup". (I'm using the default linker.) After switching back to LLD:
SummaryDynamic linking does not work (with either LLD or the default linker) if What does this bug indicate? Why do the two linkers behave slightly differently? Should we report this elsewhere, or is it a bug with bevy? EDIT: I can reproduce this on a Windows 10 PC.
|
I have created a repository with an Action that reproduces this error: Here is a log of the job that failed, though it's not super insightful: My Rust debug skills are not up to digging any further into this. I'm not even able to get a backtrace. The following may be relevant: #11446, rust-lang/rust#111480, rust-lang/rust#122790 |
Bevy version
current main version - 0.15
What you did
I wanted to try out a new engine (Bevy) and started following the "Get Started" documentation. Things went off track when I tried to use
app.add_systems
It seemed like such a basic and straightforward function that should definitely work, so I feel like I must be missing something. But for some reason, it just doesn't work—the simplest example code doesn't run for me. Everything else I've tested so far works perfectly fine for me. Fot example connecting plugins. When installing rust and bevy, I strictly followed the provided instructions. Also example was working for me.Windows 11.
What went wrong
INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 6700 XT", vendor: 4098, device: 29663, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "24.4.1 (AMD proprietary shader compiler)", backend: Vulkan }
error: process didn't exit successfully:
target\debug\my_bevy_game.exe
(exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)Additional information
The text was updated successfully, but these errors were encountered: