You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 RUST_BACKTRACE=1 so we get a stack trace to the error
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.
I will post the report when I get it.
…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
* Closesemilk#4178
* Closesemilk#4179
There is also a way to add log if necessary.
```
log::debug!("Anti-panic behavior occurs");
```
---------
Co-authored-by: Emil Ernerfeldt <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
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: