damus-io / notedeck

A multiplatform nostr client
Other
99 stars 17 forks source link

debug_assert when running with debug build #315

Open ksedgwic opened 1 month ago

ksedgwic commented 1 month ago

Seeing: debug_assert: Widget changed layer_id during the frame

2024-09-18T22:35:53.780443Z DEBUG nostrdb::filter: dropping filter Filter { data: ndb_filter { elem_buf: cursor { start: 0x5cecc04e8410, p: 0x5cecc04e8440, end: 0x5cecc04e8440 }, data_buf: cursor { start: 0x5cecc04e8440, p: 0x5cecc04e8460, end: 0x5cecc04e8460 }, num_elements: 2, finalized: 1, current: -1, elements: [0, 24, 0, 0, 0, 0, 0] } }
2024-09-18T22:35:53.780463Z DEBUG nostrdb::filter: dropping filter Filter { data: ndb_filter { elem_buf: cursor { start: 0x5cecc0528420, p: 0x5cecc0528450, end: 0x5cecc0528450 }, data_buf: cursor { start: 0x5cecc0528450, p: 0x5cecc0528470, end: 0x5cecc0528470 }, num_elements: 2, finalized: 1, current: -1, elements: [0, 24, 0, 0, 0, 0, 0] } }
2024-09-18T22:35:53.780492Z  INFO notedeck::actionbar: Locally/remotely subscribing to thread. 2 total active subscriptions, 1 on this thread
ingester popped 1 items
ingester popped 2 items
2024-09-18T22:35:53.794733Z  WARN notedeck::app: got unknown eose subid 4b4a6262-905f-4919-b8f3-bc46f6acc13a, 5 tracked subscriptions
pushing 1 events to write queue
ingester popped 2 items
writer popped 1 items
thread 'main' panicked at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/widget_rect.rs:142:17:
Widget changed layer_id during the frame
stack backtrace:
ingester popped 2 items
pushing 1 events to write queue
notifying subscriptions, 1 notes
checking subscription 0, 1 notes
not pushing note
checking subscription 1, 1 notes
pushing note
writer popped 1 items
notifying subscriptions, 1 notes
checking subscription 0, 1 notes
not pushing note
checking subscription 1, 1 notes
pushing note
   0: rust_begin_unwind
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_fmt
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/core/src/panicking.rs:74:14
   2: egui::widget_rect::WidgetRects::insert
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/widget_rect.rs:142:17
   3: egui::context::Context::create_widget::{{closure}}
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/context.rs:1033:13
   4: egui::context::Context::write
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/context.rs:724:9
   5: egui::context::Context::create_widget
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/context.rs:1027:9
   6: egui::ui::Ui::new
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/ui.rs:116:9
   7: egui_nav::Nav<T>::show_internal
             at /home/user/.cargo/git/checkouts/egui-nav-f3bee59503678f4e/b197425/egui-nav/src/lib.rs:367:26
   8: egui_nav::Nav<T>::show_mut
             at /home/user/.cargo/git/checkouts/egui-nav-f3bee59503678f4e/b197425/egui-nav/src/lib.rs:240:9
   9: notedeck::nav::render_nav
             at ./src/nav.rs:15:24
  10: notedeck::app::timelines_view::{{closure}}::{{closure}}
             at ./src/app.rs:1006:21
  11: egui_extras::layout::StripLayout::cell
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui_extras/src/layout.rs:219:9
  12: egui_extras::layout::StripLayout::add
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui_extras/src/layout.rs:149:24
  13: egui_extras::strip::Strip::cell
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui_extras/src/strip.rs:197:9
  14: notedeck::app::timelines_view::{{closure}}
             at ./src/app.rs:991:17
  15: egui_extras::strip::StripBuilder::horizontal
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui_extras/src/strip.rs:120:9
  16: notedeck::app::timelines_view
             at ./src/app.rs:953:5
  17: notedeck::app::render_damus_desktop::{{closure}}
             at ./src/app.rs:947:13
  18: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/core/src/ops/function.rs:250:5
  19: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/alloc/src/boxed.rs:2151:9
  20: egui::containers::panel::CentralPanel::show_inside_dyn::{{closure}}
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/containers/panel.rs:1090:13
  21: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/core/src/ops/function.rs:250:5
  22: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/alloc/src/boxed.rs:2151:9
  23: egui::containers::frame::Frame::show_dyn
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/containers/frame.rs:280:19
  24: egui::containers::frame::Frame::show
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/containers/frame.rs:270:9
  25: egui::containers::panel::CentralPanel::show_inside_dyn
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/containers/panel.rs:1088:9
  26: egui::containers::panel::CentralPanel::show_dyn
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/containers/panel.rs:1123:30
  27: egui::containers::panel::CentralPanel::show
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/containers/panel.rs:1100:9
  28: notedeck::app::render_damus_desktop
             at ./src/app.rs:940:5
  29: notedeck::app::render_damus
             at ./src/app.rs:571:9
  30: <notedeck::app::Damus as eframe::epi::App>::update
             at ./src/app.rs:1036:9
  31: eframe::native::epi_integration::EpiIntegration::update::{{closure}}
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/epi_integration.rs:317:17
  32: egui::context::Context::run
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/egui/src/context.rs:754:9
  33: eframe::native::epi_integration::EpiIntegration::update
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/epi_integration.rs:310:27
  34: eframe::native::wgpu_integration::WgpuWinitRunning::run_ui_and_paint
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/wgpu_integration.rs:627:27
  35: <eframe::native::wgpu_integration::WgpuWinitApp as eframe::native::winit_integration::WinitApp>::run_ui_and_paint
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/wgpu_integration.rs:385:13
  36: eframe::native::run::run_and_return::{{closure}}
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/run.rs:96:17
  37: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/core/src/ops/function.rs:294:13
  38: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/core/src/ops/function.rs:294:13
  39: winit::platform_impl::platform::x11::EventLoop<T>::single_iteration
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:602:17
  40: winit::platform_impl::platform::x11::EventLoop<T>::poll_events_with_timeout
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:541:9
  41: winit::platform_impl::platform::x11::EventLoop<T>::pump_events
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:447:13
  42: winit::platform_impl::platform::x11::EventLoop<T>::run_on_demand
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:408:19
  43: winit::platform_impl::platform::EventLoop<T>::run_on_demand
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/mod.rs:829:56
  44: <winit::event_loop::EventLoop<T> as winit::platform::run_on_demand::EventLoopExtRunOnDemand>::run_on_demand
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform/run_on_demand.rs:80:9
  45: eframe::native::run::run_and_return
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/run.rs:73:5
  46: eframe::native::run::run_wgpu::{{closure}}
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/run.rs:424:13
  47: eframe::native::run::with_event_loop::{{closure}}
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/run.rs:58:12
  48: std::thread::local::LocalKey<T>::try_with
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/std/src/thread/local.rs:283:12
  49: std::thread::local::LocalKey<T>::with
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/std/src/thread/local.rs:260:9
  50: eframe::native::run::with_event_loop
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/run.rs:48:5
  51: eframe::native::run::run_wgpu
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/native/run.rs:422:16
  52: eframe::run_native
             at /home/user/.cargo/git/checkouts/egui-5e4507fa4153be06/fcb7764/crates/eframe/src/lib.rs:268:13
  53: notedeck::main::{{closure}}
             at ./src/bin/notedeck.rs:17:16
  54: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/park.rs:281:63
  55: tokio::runtime::coop::with_budget
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/coop.rs:107:5
  56: tokio::runtime::coop::budget
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/coop.rs:73:5
  57: tokio::runtime::park::CachedParkThread::block_on
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/park.rs:281:31
  58: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/context/blocking.rs:66:9
  59: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
  60: tokio::runtime::context::runtime::enter_runtime
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/context/runtime.rs:65:16
  61: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
  62: tokio::runtime::runtime::Runtime::block_on_inner
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/runtime.rs:363:45
  63: tokio::runtime::runtime::Runtime::block_on
             at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/runtime.rs:335:13
  64: notedeck::main
             at ./src/bin/notedeck.rs:17:5
  65: core::ops::function::FnOnce::call_once
             at /rustc/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
ksedgwic commented 1 month ago

Works fine w/ --release:

cargo run --release -- --pub npub1s5rq2ztdh76shy578znvympa2mzz2vjushs9mc5mwkdupewke67qeuf7u3