-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Query fails to find existing entity #10329
Comments
Are you using main branch? 0.11.3 doesn't have a |
Yes, latest main (I put a commit hash at the top) |
Hmm. The PrepareFlush should be run after PrepareBindGroups and before Render. |
bevy/crates/bevy_render/src/lib.rs Line 169 in d67fbd5
|
The bug has been flaky for me locally but I got it again this morning. After fiddling a lot with I changed the render world's One of my ambiguities was between my At first I didn't see how that could be but then it dawned on me: // before
app.add_systems(Render, map_read.after(RenderSet::Render))
// after
app.add_systems(Render, map_read.after(RenderSet::Render).before(RenderSet::Cleanup)) I haven't seen the problem since, and the ambiguity detection for I'd love for someone to comment on whether my interpretation is correct: Does ^-- If so it makes sense that in some cases the render world entities are gone by the time |
As far as I know it allows scheduling it anytime in the schedule (so in the |
So since both |
I think we can close this out as not directly actionable, although I really want this experience to improve in several ways. |
Bevy version
Latest main: d67fbd5
What you did
I have two systems added to
render_app
:The summarized systems are as follows:
What went wrong
I run my Bevy app and the query is populated (see Working logs below).
I stop my app and and I run it again (no code changes!), and the query is forever empty (see Not working logs) even though
prepare_bind_groups
finds the correct entity.The working situation and the non-working situation happens about 50% of the time, but if it works it keeps working (until the app quits), and if it does not work it never works (i.e. then the query is always empty in
map_read
butprepare_bind_groups
is ok).I don't see a way for the query to be empty when
prepare_bind_groups
clearly finds the entity.I even made all extra components (except the
ActiveFrameSender
marker) optional in order to debug the query, but still empty.Working logs
Not working logs
The text was updated successfully, but these errors were encountered: