2e3s / awatcher

Activity and idle watchers
Mozilla Public License 2.0
126 stars 4 forks source link

Crashes in KDE 6 wayland #16

Closed kun-codes closed 6 months ago

kun-codes commented 6 months ago
awatcher-bundle
[2024-03-06 17:32:46.938095 WARN rocket::launch] 🚀 Rocket has launched from http://127.0.0.1:5600
thread 'main' panicked at watchers/src/watchers/kwin_window.rs:184:34:
called `Result::unwrap()` on an `Err` value: Error on starting the script

Caused by:
    org.freedesktop.DBus.Error.UnknownObject: No such object path '/0'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at watchers/src/watchers/kwin_window.rs:116:18:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
   0:     0x5bf2bfff40cc - <unknown>
   1:     0x5bf2c00247a0 - <unknown>
   2:     0x5bf2bfff05df - <unknown>
   3:     0x5bf2bfff3eb4 - <unknown>
   4:     0x5bf2bfff5537 - <unknown>
   5:     0x5bf2bfff529f - <unknown>
   6:     0x5bf2bfff59b8 - <unknown>
   7:     0x5bf2bfff5869 - <unknown>
   8:     0x5bf2bfff4596 - <unknown>
   9:     0x5bf2bfff5602 - <unknown>
  10:     0x5bf2bf5ee045 - <unknown>
  11:     0x5bf2bf8088df - <unknown>
  12:     0x5bf2bf7f9f75 - <unknown>
  13:     0x5bf2bf7804d5 - <unknown>
  14:     0x5bf2bf7752cd - <unknown>
  15:     0x5bf2bf786d6b - <unknown>
  16:     0x5bf2bf61f8d2 - <unknown>
  17:     0x5bf2bf6139c6 - <unknown>
  18:     0x5bf2bf6d925f - <unknown>
  19:     0x5bf2bf6950ef - <unknown>
  20:     0x5bf2bf6c0fbc - <unknown>
  21:     0x5bf2bf6952c5 - <unknown>
  22:     0x5bf2bf6c1445 - <unknown>
  23:     0x5bf2bf6c4d0d - <unknown>
  24:     0x5bf2bf65b9d3 - <unknown>
  25:     0x5bf2bf6854bd - <unknown>
  26:     0x5bf2bffe8d37 - <unknown>
  27:     0x5bf2bf6854ae - <unknown>
  28:     0x7e9d42a43cd0 - <unknown>
  29:     0x7e9d42a43d8a - __libc_start_main
  30:     0x5bf2bf5ee885 - <unknown>
  31:                0x0 - <unknown>
thread 'main' panicked at library/core/src/panicking.rs:144:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.
fish: Job 1, 'awatcher-bundle' terminated by signal SIGABRT (Abort)
RUST_BACKTRACE=1 awatcher-bundle
[2024-03-06 17:35:05.187340 WARN rocket::launch] 🚀 Rocket has launched from http://127.0.0.1:5600
thread 'main' panicked at watchers/src/watchers/kwin_window.rs:184:34:
called `Result::unwrap()` on an `Err` value: Error on starting the script

Caused by:
    org.freedesktop.DBus.Error.UnknownObject: No such object path '/0'

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: __libc_start_main
  16: <unknown>
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'main' panicked at watchers/src/watchers/kwin_window.rs:116:18:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
   0:     0x5eba6a4260cc - <unknown>
   1:     0x5eba6a4567a0 - <unknown>
   2:     0x5eba6a4225df - <unknown>
   3:     0x5eba6a425eb4 - <unknown>
   4:     0x5eba6a427537 - <unknown>
   5:     0x5eba6a42729f - <unknown>
   6:     0x5eba6a4279b8 - <unknown>
   7:     0x5eba6a427869 - <unknown>
   8:     0x5eba6a426596 - <unknown>
   9:     0x5eba6a427602 - <unknown>
  10:     0x5eba69a20045 - <unknown>
  11:     0x5eba69c3a8df - <unknown>
  12:     0x5eba69c2bf75 - <unknown>
  13:     0x5eba69bb24d5 - <unknown>
  14:     0x5eba69ba72cd - <unknown>
  15:     0x5eba69bb8d6b - <unknown>
  16:     0x5eba69a518d2 - <unknown>
  17:     0x5eba69a459c6 - <unknown>
  18:     0x5eba69b0b25f - <unknown>
  19:     0x5eba69ac70ef - <unknown>
  20:     0x5eba69af2fbc - <unknown>
  21:     0x5eba69ac72c5 - <unknown>
  22:     0x5eba69af3445 - <unknown>
  23:     0x5eba69af6d0d - <unknown>
  24:     0x5eba69a8d9d3 - <unknown>
  25:     0x5eba69ab74bd - <unknown>
  26:     0x5eba6a41ad37 - <unknown>
  27:     0x5eba69ab74ae - <unknown>
  28:     0x7b3e33043cd0 - <unknown>
  29:     0x7b3e33043d8a - __libc_start_main
  30:     0x5eba69a20885 - <unknown>
  31:                0x0 - <unknown>
thread 'main' panicked at library/core/src/panicking.rs:144:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.
fish: Job 1, 'RUST_BACKTRACE=1 awatcher-bundle' terminated by signal SIGABRT (Abort)

Operating System: Garuda Linux KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.8-zen1-1-zen (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i3-1005G1 CPU @ 1.20GHz Memory: 15.1 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics

Edit: works fine on X11, but crashes on wayland

cuihaoleo commented 6 months ago

Same here on Arch Linux.

Full backtrace:

[2024-03-06 17:48:43.472682 WARN rocket::launch] 🚀 Rocket has launched from http://127.0.0.1:5600
thread 'main' panicked at watchers/src/watchers/kwin_window.rs:184:34:
called `Result::unwrap()` on an `Err` value: Error on starting the script

Caused by:
    org.freedesktop.DBus.Error.UnknownObject: No such object path '/0'

Stack backtrace:
   0: <E as anyhow::context::ext::StdError>::ext_context
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.75/src/context.rs:27:29
   1: anyhow::context::<impl anyhow::Context<T,E> for core::result::Result<T,E>>::with_context
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.75/src/context.rs:65:31
   2: watchers::watchers::kwin_window::KWinScript::start::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers/kwin_window.rs:95:9
   3: watchers::watchers::kwin_window::KWinScript::load::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers/kwin_window.rs:39:41
   4: <watchers::watchers::kwin_window::WindowWatcher as watchers::watchers::Watcher>::new::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers/kwin_window.rs:184:28
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/future/future.rs:125:9
   6: watchers::watchers::create_watcher::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:56:26
   7: watchers::watchers::filter_first_supported::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:109:13
   8: watchers::watchers::run_first_supported::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:129:75
   9: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/core.rs:328:17
  10: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/loom/std/unsafe_cell.rs:16:9
  11: tokio::runtime::task::core::Core<T,S>::poll
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/core.rs:317:13
  12: tokio::runtime::task::harness::poll_future::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:485:19
  13: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/panic/unwind_safe.rs:272:9
  14: std::panicking::try::do_call
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  15: std::panicking::try
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  16: std::panic::catch_unwind
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  17: tokio::runtime::task::harness::poll_future
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:473:18
  18: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:208:27
  19: tokio::runtime::task::harness::Harness<T,S>::poll
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:153:15
  20: tokio::runtime::task::LocalNotified<S>::run
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/mod.rs:416:9
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:706:30
  22: tokio::runtime::coop::with_budget
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/coop.rs:107:5
  23: tokio::runtime::coop::budget
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/coop.rs:73:5
  24: tokio::runtime::scheduler::current_thread::Context::run_task::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:343:43
  25: tokio::runtime::scheduler::current_thread::Context::enter
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:410:19
  26: tokio::runtime::scheduler::current_thread::Context::run_task
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:343:23
  27: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:705:35
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:743:68
  29: tokio::runtime::context::scoped::Scoped<T>::set
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/scoped.rs:40:9
  30: tokio::runtime::context::set_scheduler::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context.rs:176:26
  31: std::thread::local::LocalKey<T>::try_with
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/thread/local.rs:270:16
  32: std::thread::local::LocalKey<T>::with
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/thread/local.rs:246:9
  33: tokio::runtime::context::set_scheduler
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context.rs:176:17
  34: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:743:27
  35: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:652:19
  36: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:175:28
  37: tokio::runtime::context::runtime::enter_runtime
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/runtime.rs:65:16
  38: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:167:9
  39: tokio::runtime::runtime::Runtime::block_on
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/runtime.rs:348:47
  40: awatcher::main
             at /usr/src/debug/awatcher/awatcher-0.2.4/src/main.rs:64:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/ops/function.rs:250:5
  42: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:154:18
  43: std::rt::lang_start::{{closure}}
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:167:18
  44: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/ops/function.rs:284:13
  45: std::panicking::try::do_call
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  46: std::panicking::try
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  47: std::panic::catch_unwind
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  48: std::rt::lang_start_internal::{{closure}}
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:148:48
  49: std::panicking::try::do_call
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  50: std::panicking::try
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  51: std::panic::catch_unwind
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  52: std::rt::lang_start_internal
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:148:20
  53: std::rt::lang_start
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:166:17
  54: <unknown>
  55: __libc_start_main
  56: _start
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/panicking.rs:72:14
   2: core::result::unwrap_failed
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/result.rs:1653:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/result.rs:1077:23
   4: <watchers::watchers::kwin_window::WindowWatcher as watchers::watchers::Watcher>::new::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers/kwin_window.rs:184:9
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/future/future.rs:125:9
   6: watchers::watchers::create_watcher::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:56:26
   7: watchers::watchers::filter_first_supported::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:109:13
   8: watchers::watchers::run_first_supported::{{closure}}
             at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:129:75
   9: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/core.rs:328:17
  10: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/loom/std/unsafe_cell.rs:16:9
  11: tokio::runtime::task::core::Core<T,S>::poll
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/core.rs:317:13
  12: tokio::runtime::task::harness::poll_future::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:485:19
  13: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/panic/unwind_safe.rs:272:9
  14: std::panicking::try::do_call
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  15: std::panicking::try
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  16: std::panic::catch_unwind
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  17: tokio::runtime::task::harness::poll_future
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:473:18
  18: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:208:27
  19: tokio::runtime::task::harness::Harness<T,S>::poll
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:153:15
  20: tokio::runtime::task::LocalNotified<S>::run
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/mod.rs:416:9
  21: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:706:30
  22: tokio::runtime::coop::with_budget
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/coop.rs:107:5
  23: tokio::runtime::coop::budget
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/coop.rs:73:5
  24: tokio::runtime::scheduler::current_thread::Context::run_task::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:343:43
  25: tokio::runtime::scheduler::current_thread::Context::enter
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:410:19
  26: tokio::runtime::scheduler::current_thread::Context::run_task
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:343:23
  27: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:705:35
  28: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:743:68
  29: tokio::runtime::context::scoped::Scoped<T>::set
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/scoped.rs:40:9
  30: tokio::runtime::context::set_scheduler::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context.rs:176:26
  31: std::thread::local::LocalKey<T>::try_with
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/thread/local.rs:270:16
  32: std::thread::local::LocalKey<T>::with
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/thread/local.rs:246:9
  33: tokio::runtime::context::set_scheduler
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context.rs:176:17
  34: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:743:27
  35: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:652:19
  36: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:175:28
  37: tokio::runtime::context::runtime::enter_runtime
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/runtime.rs:65:16
  38: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:167:9
  39: tokio::runtime::runtime::Runtime::block_on
             at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/runtime.rs:348:47
  40: awatcher::main
             at /usr/src/debug/awatcher/awatcher-0.2.4/src/main.rs:64:5
  41: core::ops::function::FnOnce::call_once
             at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'main' panicked at watchers/src/watchers/kwin_window.rs:116:18:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
   0:     0x5e965fe790cc - std::backtrace_rs::backtrace::libunwind::trace::h1c0d6c1feff90834
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x5e965fe790cc - std::backtrace_rs::backtrace::trace_unsynchronized::he4dc4a997c5ae9a3
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x5e965fe790cc - std::sys_common::backtrace::_print_fmt::h5a4f8cab839a8801
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x5e965fe790cc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h633d15e63f261bac
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x5e965fea97a0 - core::fmt::rt::Argument::fmt::h7bd3372d26ac29ee
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/fmt/rt.rs:142:9
   5:     0x5e965fea97a0 - core::fmt::write::h81c224801dea0c8c
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/fmt/mod.rs:1117:17
   6:     0x5e965fe755df - std::io::Write::write_fmt::h5d5fd4c0f9d7aaa2
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/io/mod.rs:1763:15
   7:     0x5e965fe78eb4 - std::sys_common::backtrace::_print::hae2beb76b35b9dac
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x5e965fe78eb4 - std::sys_common::backtrace::print::hbc2e16b509b271b5
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x5e965fe7a537 - std::panicking::default_hook::{{closure}}::hdd572dcbcaa64ada
  10:     0x5e965fe7a29f - std::panicking::default_hook::h3f7cc4d3b39ae3db
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:292:9
  11:     0x5e965fe7a9b8 - std::panicking::rust_panic_with_hook::hd2051524a5282492
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:779:13
  12:     0x5e965fe7a869 - std::panicking::begin_panic_handler::{{closure}}::h699c051ec6e2b537
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:649:13
  13:     0x5e965fe79596 - std::sys_common::backtrace::__rust_end_short_backtrace::h5d4269c5675c7d12
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:170:18
  14:     0x5e965fe7a602 - rust_begin_unwind
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:645:5
  15:     0x5e965f473045 - core::panicking::panic_fmt::hd8a918fb3507036f
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/panicking.rs:72:14
  16:     0x5e965f68d8df - tokio::runtime::context::runtime::enter_runtime::hbffcc4ebd834e1aa
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/runtime.rs:68:5
  17:     0x5e965f67ef75 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h173767cc4a1361a3
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:167:9
  18:     0x5e965f67ef75 - tokio::runtime::runtime::Runtime::block_on::h65ea55d78999ad69
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/runtime.rs:348:47
  19:     0x5e965f6054d5 - <watchers::watchers::kwin_window::KWinScript as core::ops::drop::Drop>::drop::h569979ccdfaaf5c3
                               at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers/kwin_window.rs:112:13
  20:     0x5e965f5fa2cd - core::ptr::drop_in_place<watchers::watchers::kwin_window::KWinScript>::h7d8f3b65530f2778
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/ptr/mod.rs:498:1
  21:     0x5e965f60bd6b - <watchers::watchers::kwin_window::WindowWatcher as watchers::watchers::Watcher>::new::{{closure}}::h1c0c8489f02afa48
                               at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers/kwin_window.rs:232:5
  22:     0x5e965f4a48d2 - <core::pin::Pin<P> as core::future::future::Future>::poll::h8bcd30f81505157a
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/future/future.rs:125:9
  23:     0x5e965f4a48d2 - watchers::watchers::create_watcher::{{closure}}::h9a3e325c909546e2
                               at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:56:26
  24:     0x5e965f4a48d2 - watchers::watchers::filter_first_supported::{{closure}}::h72ae570a5be270bf
                               at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:109:13
  25:     0x5e965f4a48d2 - watchers::watchers::run_first_supported::{{closure}}::hc26cfa5f07a6ef49
                               at /usr/src/debug/awatcher/awatcher-0.2.4/watchers/src/watchers.rs:129:75
  26:     0x5e965f4989c6 - tokio::runtime::task::core::Core<T,S>::poll::{{closure}}::ha9fbd66fd5108dfd
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/core.rs:328:17
  27:     0x5e965f4989c6 - tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut::hf882afd84352868b
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/loom/std/unsafe_cell.rs:16:9
  28:     0x5e965f4989c6 - tokio::runtime::task::core::Core<T,S>::poll::h313b30d4ec80f1d2
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/core.rs:317:13
  29:     0x5e965f55e25f - tokio::runtime::task::harness::poll_future::{{closure}}::h502415de932617b1
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:485:19
  30:     0x5e965f55e25f - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h7070d37b030978d4
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/panic/unwind_safe.rs:272:9
  31:     0x5e965f55e25f - std::panicking::try::do_call::h5e4081e52dd8904d
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  32:     0x5e965f55e25f - std::panicking::try::hf9a80185b1c41166
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  33:     0x5e965f55e25f - std::panic::catch_unwind::hf3bbc6b2b2a4b1c7
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  34:     0x5e965f55e25f - tokio::runtime::task::harness::poll_future::hd97373bf6bb48858
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:473:18
  35:     0x5e965f55e25f - tokio::runtime::task::harness::Harness<T,S>::poll_inner::hf0ec4290e8cba0d5
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:208:27
  36:     0x5e965f55e25f - tokio::runtime::task::harness::Harness<T,S>::poll::hb100f9ab605d4b48
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/harness.rs:153:15
  37:     0x5e965f51a0ef - tokio::runtime::task::LocalNotified<S>::run::h87bf02c306d0c70b
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/task/mod.rs:416:9
  38:     0x5e965f51a0ef - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h3dc515d746d33ec2
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:706:30
  39:     0x5e965f51a0ef - tokio::runtime::coop::with_budget::h80c9bb16593629ff
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/coop.rs:107:5
  40:     0x5e965f51a0ef - tokio::runtime::coop::budget::h1fad16040a5a7520
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/coop.rs:73:5
  41:     0x5e965f51a0ef - tokio::runtime::scheduler::current_thread::Context::run_task::{{closure}}::h75925e067af5c27f
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:343:43
  42:     0x5e965f51a0ef - tokio::runtime::scheduler::current_thread::Context::enter::h1b1b6ad015281f84
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:410:19
  43:     0x5e965f51a0ef - tokio::runtime::scheduler::current_thread::Context::run_task::h0e0cf7f6ece138b2
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:343:23
  44:     0x5e965f545fbc - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h5510ad1b5adc151e
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:705:35
  45:     0x5e965f545fbc - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h747e4becf07fe7af
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:743:68
  46:     0x5e965f545fbc - tokio::runtime::context::scoped::Scoped<T>::set::h3929064a370e1cef
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/scoped.rs:40:9
  47:     0x5e965f51a2c5 - tokio::runtime::context::set_scheduler::{{closure}}::h8f627e084c9298ce
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context.rs:176:26
  48:     0x5e965f51a2c5 - std::thread::local::LocalKey<T>::try_with::hb0f7ecb326845917
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/thread/local.rs:270:16
  49:     0x5e965f51a2c5 - std::thread::local::LocalKey<T>::with::h4c6ec49c44490b3a
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/thread/local.rs:246:9
  50:     0x5e965f51a2c5 - tokio::runtime::context::set_scheduler::h546dbbfcaace7a5c
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context.rs:176:17
  51:     0x5e965f51a2c5 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::hdbfb3e818325579e
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:743:27
  52:     0x5e965f51a2c5 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h8557238f00e8ea85
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:652:19
  53:     0x5e965f546445 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::ha2e88684dbe13a67
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:175:28
  54:     0x5e965f546445 - tokio::runtime::context::runtime::enter_runtime::ha405563b837276ca
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/context/runtime.rs:65:16
  55:     0x5e965f549d0d - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h2457184a0d9ec778
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/scheduler/current_thread/mod.rs:167:9
  56:     0x5e965f549d0d - tokio::runtime::runtime::Runtime::block_on::ha37c38e4d2da6f9b
                               at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.1/src/runtime/runtime.rs:348:47
  57:     0x5e965f549d0d - awatcher::main::h6da4ce8ae562e765
                               at /usr/src/debug/awatcher/awatcher-0.2.4/src/main.rs:64:5
  58:     0x5e965f4e09d3 - core::ops::function::FnOnce::call_once::hddc3d965cc4cc354
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/ops/function.rs:250:5
  59:     0x5e965f4e09d3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h28dc063bd828ff76
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/sys_common/backtrace.rs:154:18
  60:     0x5e965f50a4bd - std::rt::lang_start::{{closure}}::h6c5ce737c4b4f8b3
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:167:18
  61:     0x5e965fe6dd37 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h771ef532d64e3cf0
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/core/src/ops/function.rs:284:13
  62:     0x5e965fe6dd37 - std::panicking::try::do_call::h6b5473cbd2af12b6
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  63:     0x5e965fe6dd37 - std::panicking::try::h7d23973be288124d
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  64:     0x5e965fe6dd37 - std::panic::catch_unwind::h045b64dbda335fac
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  65:     0x5e965fe6dd37 - std::rt::lang_start_internal::{{closure}}::h06953691442cccca
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:148:48
  66:     0x5e965fe6dd37 - std::panicking::try::do_call::h06b9dcffb4598b44
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:552:40
  67:     0x5e965fe6dd37 - std::panicking::try::ha2213ba5855e92ce
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panicking.rs:516:19
  68:     0x5e965fe6dd37 - std::panic::catch_unwind::hf41b7dd010a53b79
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/panic.rs:142:14
  69:     0x5e965fe6dd37 - std::rt::lang_start_internal::hc0ed1a6a316dd7cd
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:148:20
  70:     0x5e965f50a4ae - std::rt::lang_start::h7973c3c1c6441657
                               at /rustc/9d83ac217957eece2189eccf4a7232caec7232ee/library/std/src/rt.rs:166:17
  71:     0x71147b157cd0 - <unknown>
  72:     0x71147b157d8a - __libc_start_main
  73:     0x5e965f473885 - _start
  74:                0x0 - <unknown>
thread 'main' panicked at library/core/src/panicking.rs:144:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.
zsh: IOT instruction (core dumped)  RUST_BACKTRACE=1 /usr/bin/awatcher-bundle
2e3s commented 6 months ago

Thanks for your report, please try https://github.com/2e3s/awatcher/releases/tag/v0.2.5 It seems to work in the latest KDE Neon distribution.

org.freedesktop.DBus.Error.UnknownObject: No such object path '/0'

Yep, that's the incoming change from KDE 6.

kun-codes commented 6 months ago

yes, it seems to work on arch now