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

Fix panic in bevy_ui layout #12838

Closed
wants to merge 1 commit into from
Closed

Conversation

msvbg
Copy link
Contributor

@msvbg msvbg commented Apr 1, 2024

Objective

I encountered a panic in bevy_ui on this line, which calls unwrap. It happened while I was despawning UI nodes, but I only saw it once and have been unable to reproduce it.

Related to #12660.

Solution

Remove unwrap and replace with let ... else and a warning.

@msvbg msvbg added C-Bug An unexpected or incorrect behavior A-UI Graphical user interfaces, styles, layouts, and widgets labels Apr 1, 2024
@msvbg
Copy link
Contributor Author

msvbg commented Apr 1, 2024

@msvbg
Copy link
Contributor Author

msvbg commented Apr 2, 2024

Closing in favor of #12805

@msvbg msvbg closed this Apr 2, 2024
@msvbg msvbg deleted the bevy_ui_layout_panic branch April 2, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants