bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Mesh not showing(or updating) in alter_mesh example

Open serephus opened this issue 1 year ago • 8 comments

Bevy version

release-0.16.0

[Optional] Relevant system information

SystemInfo { os: "Linux (NixOS 25.05)", kernel: "6.12.24", cpu: "Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz", core_count: "6", memory: "15.3 GiB" }
AdapterInfo { name: "Intel(R) UHD Graphics (CML GT2)", vendor: 32902, device: 39882, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 25.0.4", backend: Vulkan }

What you did

cargo r -r --features wayland --example alter_mesh

What went wrong

This example should have 2 mesh, the right one should alternate between a sphere and a cube when press spacebar, however the sphere won't show.

Additional information

I have created a repo to test this issue, added bevy-inspector-egui to check entities. It seems that the mesh shows up when I checks the mesh3d component(keep this unfolded also works) in inspector ui, so probably it didn't get updated or something(or lazy loading)?

A screenshot shows the sphere shows up after I click the mesh3d component.

20250428_19h19m12s_grim.png

serephus avatar Apr 28 '25 10:04 serephus

Possibly related to: #18904 Could you try the minimal reproduction sample listed in the linked issue and/or testing if disabling GPU preprocessing fixes the issue ?

Henauxg avatar Apr 28 '25 12:04 Henauxg

Possibly related to: #18904 Could you try the minimal reproduction sample listed in the linked issue and/or testing if disabling GPU preprocessing fixes the issue ?

Indeed, disabling GPU preprocessing fixes this issue. (Although the color seems incorrect, I guess this is expected?)

serephus avatar Apr 28 '25 13:04 serephus

Possibly related to: #18904 Could you try the minimal reproduction sample listed in the linked issue and/or testing if disabling GPU preprocessing fixes the issue ?

I can't reproduce your minimal reproduction sample though, even with manual triggering.

serephus avatar Apr 28 '25 13:04 serephus

Possibly related to: #18904 Could you try the minimal reproduction sample listed in the linked issue and/or testing if disabling GPU preprocessing fixes the issue ?

I can't reproduce this issue either.

serephus avatar Apr 28 '25 13:04 serephus

I guess we can conclude that it's preprocessing related, but not exactly in the same way

EDIT: Does this example work in 0.15.3 on your machine ?

Henauxg avatar Apr 28 '25 13:04 Henauxg

I guess we can conclude that it's preprocessing related, but not exactly in the same way

EDIT: Does this example work in 0.15.3 on your machine ?

0.15.3 does not have this issue, I'll try to bisect later.

serephus avatar Apr 28 '25 13:04 serephus

I suspect you would end up around https://github.com/bevyengine/bevy/pull/17413

Henauxg avatar Apr 28 '25 14:04 Henauxg

I suspect you would end up around #17413

If I'm bisecting it correctly, the pr causing this issue should be: #17211

Edit: I'm only bisecting against this example

serephus avatar Apr 28 '25 17:04 serephus