-
Notifications
You must be signed in to change notification settings - Fork 1.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
There is on very rare occasions a case where a panic occurred at line 152 of layers.rs #4179
Labels
bug
Something is broken
Comments
This was referenced Mar 16, 2024
rustbasic
changed the title
There is on very rare occasions a case where a panic occurred at line 152 of layers.rs when a Viewport exit.
There is on very rare occasions a case where a panic occurred at line 152 of layers.rs
Mar 20, 2024
Please run with |
On monitors with different pixels_per_point, this symptom sometimes appears when request_repaint() is continuously called and the Viewport is continuously moved, so it does not appear easily. |
hacknus
pushed a commit
to hacknus/egui
that referenced
this issue
Oct 30, 2024
…per_point (emilk#4868) Fix: panic when dragging window between monitors of different pixels_per_point This will continue to help us as we develop `egui`. I hope you agree with my defense of `panic`. * Relate emilk#3959 * Relate emilk#4088 * Closes emilk#4178 * Closes emilk#4179 There is also a way to add log if necessary. ``` log::debug!("Anti-panic behavior occurs"); ``` --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is on very rare occasions a case where a panic occurred at line 152 of layers.rs when a Viewport exit.
( At this time, self.0.len() == 0 )
( On screens with different pixels_per_point. )
thread 'main' panicked at C:\prog\egui\crates\egui\src\layers.rs:152:15:
index out of bounds: the len is 0 but the index is 0
The text was updated successfully, but these errors were encountered: