Skip to content
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

specialized_mesh_pipeline example panics when hovering over mesh #15891

Open
rparrett opened this issue Oct 13, 2024 · 2 comments
Open

specialized_mesh_pipeline example panics when hovering over mesh #15891

rparrett opened this issue Oct 13, 2024 · 2 comments
Labels
A-Picking Pointing at and selecting objects of all sorts A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash
Milestone

Comments

@rparrett
Copy link
Contributor

rparrett commented Oct 13, 2024

Bevy version

main
bisected to #15800.

Relevant system information

SystemInfo { os: "MacOS 14.5 ", kernel: "23.5.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }
AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

  • cargo run --example specialized_mesh_pipeline
  • hover over over the triangles

What went wrong

thread 'Compute Task Pool (3)' panicked at crates/bevy_picking/src/mesh_picking/ray_cast/intersections.rs:145:29:
index out of bounds: the len is 3 but the index is 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_picking::mesh_picking::update_hits`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
@rparrett rparrett added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Oct 13, 2024
@rparrett rparrett changed the title ` specialized_mesh_pipeline example panics when hovering over mesh Oct 13, 2024
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-Picking Pointing at and selecting objects of all sorts and removed S-Needs-Triage This issue needs to be labelled labels Oct 14, 2024
@alice-i-cecile alice-i-cecile added this to the 0.15 milestone Oct 14, 2024
@alice-i-cecile alice-i-cecile added the P-Crash A sudden unexpected crash label Oct 14, 2024
@alice-i-cecile
Copy link
Member

I'm pretty sure something is malformed in the mesh. This looks like the exact issue spotted by @tbillington and called out as not a problem in #15800 (comment) by @Jondolf.

@rparrett
Copy link
Contributor Author

rparrett commented Oct 14, 2024

It looks like it is because the mesh doesn't have normals. Don't feel like we should be packing there, but it seems like there's a pretty nasty perf hit to write non-packing code based on the discussion linked above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Picking Pointing at and selecting objects of all sorts A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash
Projects
None yet
Development

No branches or pull requests

2 participants