nannou icon indicating copy to clipboard operation
nannou copied to clipboard

nannou panics when making the window smaller in a tiling window manager

Open sandalbanditten opened this issue 2 years ago • 0 comments

nannou panics when the window is made smaller in a tiling WM. This only happens when the window is made significantly smaller than it was before; resizing it a bit does not crash it.

My program is compiled with nannou version 0.18.1. I'm on Arch Linux using the BSPWM window manager on X11. Here is a full backtrace:

thread 'main' panicked at 'Error in Surface::configure: parent device is lost', /home/notroot/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.11.1/src/backend/direct.rs:204:9
stack backtrace:
   0:     0x556b8bcdf1fc - std::backtrace_rs::backtrace::libunwind::trace::h11dc6469a6e52543
                               at /rustc/1.59.0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x556b8bcdf1fc - std::backtrace_rs::backtrace::trace_unsynchronized::hd4036938d0c3ae29
                               at /rustc/1.59.0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x556b8bcdf1fc - std::sys_common::backtrace::_print_fmt::hf909b4c4e1107d0b
                               at /rustc/1.59.0/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x556b8bcdf1fc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4becf6587ad7aa1d
                               at /rustc/1.59.0/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x556b8bd040ac - core::fmt::write::h557b7f443eab4320
                               at /rustc/1.59.0/library/core/src/fmt/mod.rs:1168:17
   5:     0x556b8bcdab45 - std::io::Write::write_fmt::h489ea24feb4a5ea4
                               at /rustc/1.59.0/library/std/src/io/mod.rs:1660:15
   6:     0x556b8bce1470 - std::sys_common::backtrace::_print::h2e67187980d82d1e
                               at /rustc/1.59.0/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x556b8bce1470 - std::sys_common::backtrace::print::ha1439b6972e85b57
                               at /rustc/1.59.0/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x556b8bce1470 - std::panicking::default_hook::{{closure}}::hfa0b382729055e14
                               at /rustc/1.59.0/library/std/src/panicking.rs:211:50
   9:     0x556b8bce1029 - std::panicking::default_hook::h41128bfd08e307a0
                               at /rustc/1.59.0/library/std/src/panicking.rs:228:9
  10:     0x556b8bce1aa6 - std::panicking::rust_panic_with_hook::h9e4813ea689fc43b
                               at /rustc/1.59.0/library/std/src/panicking.rs:606:17
  11:     0x556b8bce1800 - std::panicking::begin_panic_handler::{{closure}}::h522a2eaaa50f1034
                               at /rustc/1.59.0/library/std/src/panicking.rs:502:13
  12:     0x556b8bcdf694 - std::sys_common::backtrace::__rust_end_short_backtrace::h9cefd2b43c0486be
                               at /rustc/1.59.0/library/std/src/sys_common/backtrace.rs:139:18
  13:     0x556b8bce1569 - rust_begin_unwind
                               at /rustc/1.59.0/library/std/src/panicking.rs:498:5
  14:     0x556b8b801551 - core::panicking::panic_fmt::h8ef5ad8e70ca9bc8
                               at /rustc/1.59.0/library/core/src/panicking.rs:116:14
  15:     0x556b8ba2fa59 - wgpu::backend::direct::Context::handle_error_fatal::hc1688675f59a0fd8
  16:     0x556b8ba3033c - <wgpu::backend::direct::Context as wgpu::Context>::surface_configure::hae4e1f85289355df
  17:     0x556b8b8a6ef2 - nannou::window::Window::reconfigure_surface::h483c2b5104b32e46
  18:     0x556b8b82a35c - nannou::app::run_loop::{{closure}}::hba192b4cf1f4e43d
  19:     0x556b8b82bcba - winit::platform_impl::platform::sticky_exit_callback::h0e34340bdc8858dd
  20:     0x556b8b84e32a - winit::platform_impl::platform::x11::event_processor::EventProcessor<T>::process_event::h362051408dc85c49
  21:     0x556b8b82b130 - winit::platform_impl::platform::x11::EventLoop<T>::run::h90cb2b03bf8d2e39
  22:     0x556b8b82bb70 - winit::platform_impl::platform::EventLoop<T>::run::h0b925e480c7cd638
  23:     0x556b8b849d7c - winit::event_loop::EventLoop<T>::run::h7262590f974ddee1
  24:     0x556b8b8470ee - nannou::app::Builder<M,E>::run::h19bc81c75bf5502b
  25:     0x556b8b827b85 - boids_rs::main::h5b4e9980e0fa5cca
  26:     0x556b8b82c4a3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h471eba1f01af01ef
  27:     0x556b8b854509 - std::rt::lang_start::{{closure}}::h6d30820f1000eead
  28:     0x556b8bcde9fe - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hd1208b862f1fb9fd
                               at /rustc/1.59.0/library/core/src/ops/function.rs:259:13
  29:     0x556b8bcde9fe - std::panicking::try::do_call::hcc194fcbf1b91aa1
                               at /rustc/1.59.0/library/std/src/panicking.rs:406:40
  30:     0x556b8bcde9fe - std::panicking::try::ha62166a0d570ae0e
                               at /rustc/1.59.0/library/std/src/panicking.rs:370:19
  31:     0x556b8bcde9fe - std::panic::catch_unwind::hdbb49d505e2dff37
                               at /rustc/1.59.0/library/std/src/panic.rs:133:14
  32:     0x556b8bcde9fe - std::rt::lang_start_internal::{{closure}}::he1f6f465111b6703
                               at /rustc/1.59.0/library/std/src/rt.rs:128:48
  33:     0x556b8bcde9fe - std::panicking::try::do_call::h752b2472b65dc578
                               at /rustc/1.59.0/library/std/src/panicking.rs:406:40
  34:     0x556b8bcde9fe - std::panicking::try::h5e5e1df37906fd95
                               at /rustc/1.59.0/library/std/src/panicking.rs:370:19
  35:     0x556b8bcde9fe - std::panic::catch_unwind::h74042ea207983c3e
                               at /rustc/1.59.0/library/std/src/panic.rs:133:14
  36:     0x556b8bcde9fe - std::rt::lang_start_internal::h57d0ce2765e13f39
                               at /rustc/1.59.0/library/std/src/rt.rs:128:20
  37:     0x556b8b82c652 - main
  38:     0x7f552c7b9310 - __libc_start_call_main
  39:     0x7f552c7b93c1 - __libc_start_main@GLIBC_2.2.5
  40:     0x556b8b801cc5 - _start
  41:                0x0 - <unknown>

sandalbanditten avatar Mar 29 '22 20:03 sandalbanditten