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

Thread panicked: Time shouldn't move backwards #26

Open
nathanleiby opened this issue Nov 7, 2024 · 0 comments
Open

Thread panicked: Time shouldn't move backwards #26

nathanleiby opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nathanleiby
Copy link
Owner

I see this issue periodically.

It seems like it might occur when you exit / re-enter the app, close the laptop lid, something like that? But I don't have a solid repro case.

It may potentially be an issue related to my hackily in vendored egui, seeing as it stems from emath, which is an egui math library.

thread 'main' panicked at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/emath-0.28.1/src/history.rs:129:13:
Time shouldn't move backwards
stack backtrace:
   0: rust_begin_unwind
             at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:652:5
   1: core::panicking::panic_fmt
             at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/panicking.rs:72:14
   2: emath::history::History<T>::add
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/emath-0.28.1/src/history.rs:129:13
   3: egui::input_state::PointerState::begin_frame
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/input_state.rs:938:13
   4: egui::input_state::InputState::begin_frame
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/input_state.rs:221:23
   5: egui::context::ContextImpl::begin_frame_mut
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/context.rs:449:26
   6: egui::context::Context::begin_frame::{{closure}}
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/context.rs:777:26
   7: egui::context::Context::write
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/context.rs:723:9
   8: egui::context::Context::begin_frame
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/context.rs:777:9
   9: egui::context::Context::run
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/egui-0.28.1/src/context.rs:752:9
  10: egui_miniquad::EguiMq::run
             at ./egui_miniquad/src/lib.rs:185:27
  11: egui_macroquad::Egui::ui
             at ./egui_macroquad/src/lib.rs:87:9
  12: egui_macroquad::ui
             at ./egui_macroquad/src/lib.rs:100:5
  13: macroix::ui::UI::render
             at ./src/ui.rs:23:9
  14: macroix::amain::{{closure}}
             at ./src/main.rs:118:9
  15: macroix::main::{{closure}}
             at ./src/main.rs:49:1
  16: macroquad::exec::resume
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-0.4.12/src/exec.rs:72:11
  17: <macroquad::Stage as miniquad::event::EventHandler>::draw::{{closure}}
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-0.4.12/src/lib.rs:721:24
  18: <macroquad::Stage as miniquad::event::EventHandler>::draw::maybe_unwind
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-0.4.12/src/lib.rs:712:21
  19: <macroquad::Stage as miniquad::event::EventHandler>::draw
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-0.4.12/src/lib.rs:717:26
  20: miniquad::native::macos::define_opengl_view_class::draw_rect
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/miniquad-0.4.5/src/native/macos.rs:663:13
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: <unknown>
  28: <unknown>
  29: <unknown>
  30: <unknown>
  31: <unknown>
  32: <unknown>
  33: <unknown>
  34: <unknown>
  35: <unknown>
  36: <(A,B,C,D) as objc::message::MessageArguments>::invoke
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc-0.2.7/src/message/mod.rs:128:17
  37: objc::message::platform::send_unverified
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc-0.2.7/src/message/apple/mod.rs:27:9
  38: objc::message::send_message
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc-0.2.7/src/message/mod.rs:178:5
  39: miniquad::native::macos::run
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc-0.2.7/src/macros.rs:142:15
  40: miniquad::start
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/miniquad-0.4.5/src/lib.rs:384:9
  41: macroquad::Window::from_config
             at /Users/nathanleiby/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macroquad-0.4.12/src/lib.rs:840:9
  42: macroix::main
             at ./src/main.rs:49:1
  43: core::ops::function::FnOnce::call_once
             at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@nathanleiby nathanleiby added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant