Replies: 1 comment 2 replies
-
Interesting. Even with default features disabled, I'm getting the following: thread 'main' panicked at crates/bevy_ecs/src/error/handler.rs:141:1:
Encountered an error in system `hello_world::update`: No entities fit the query bevy_ecs::system::query::Query<&hello_world::A>
5: hello_world::update
at ./examples/hello_world.rs:21:13 // <-- Where the error originated
// ... backtrace ... //
Encountered a panic in system `hello_world::update`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
Process finished with exit code 101 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note
Update: This discussion is no longer valid, because it could be solved by enabling the short backtrace by the solution from @MrGVSV.
In 0.16, Bevy has made the Unified ECS Error Handling. It looks fascinating, so I tried the 0.16 and compared the error log between the new and old error handling paradigm:
Old:
New:
I did not spawn any
A
component, and there is their error log:Old:
New:
In the old error log, we can quickly locate the error in position
src\main.rs:7:28
:However in the new paradigm, the information we got is only
C:\Users\pc\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\error\handler.rs:141:1:
, it's does not provide any useful information to the user.In other words, instead,
.unwrap()
seems more user-friendly for the developers (as least for now).I'm not sure if this is an issue with my usage. I have enabled the
track_location
feature, and the result did not make any difference.Beta Was this translation helpful? Give feedback.
All reactions