Skip to content

Add warn_once to wgpu backend once case and add regression test#24976

Merged
alice-i-cecile merged 2 commits into
bevyengine:mainfrom
rewin123:fix-wgpu-backend-none-crash
Jul 14, 2026
Merged

Add warn_once to wgpu backend once case and add regression test#24976
alice-i-cecile merged 2 commits into
bevyengine:mainfrom
rewin123:fix-wgpu-backend-none-crash

Conversation

@rewin123

Copy link
Copy Markdown
Contributor

Objective

Fixes #24927

Solution

Just add conditional check for PendingSyncEntity resource, when do remove component with registered SyncComponentPlugin.

Testing

I added one regression test. It fails on main branch and pass on my PR.

@rewin123 rewin123 added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jul 13, 2026

@robojeb robojeb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in #24420 make it a little hard to verify in isolation that the resource PendingSyncEntity is sufficient to check for the non-existence of the RenderWorld.
As it makes it appear that SyncComponent is more generic than it actually is at this point in the implementation.

Having reviewed the surrounding code this seems good and should work well to ensure this is tested properly as the SyncComponent evolves in #24423

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Triage This issue needs to be labelled labels Jul 14, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Jul 14, 2026
@alice-i-cecile
alice-i-cecile added this pull request to the merge queue Jul 14, 2026
Merged via the queue into bevyengine:main with commit 2219583 Jul 14, 2026
42 checks passed
@github-project-automation github-project-automation Bot moved this from Needs SME Triage to Done in Rendering Jul 14, 2026
@natepiano

Copy link
Copy Markdown
Contributor

will this be part of 0.19.1? I've encountered this bug in the wild and would appreciate the fix - merci beaucoup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Headless app (WgpuSettings { backends: None }) panics on despawn of any render-synced entity: PendingSyncEntity does not exist

4 participants