Skip to content

Binary broken on NixOS 25.05 Plasma6 #55

@wvhulle

Description

@wvhulle

I have added awatcher to the list of installed packages. Using home-manager, I configured the activitywatch server.

❯ awatcher --version
Activity Watcher 0.3.1

When I try to run the command mentioned for KDE, I immediately get a scary crash. But it is misleading because data is continuously sent to the ActivityWatch server process.

❯ awatcher -vvv --no-server
[2025-06-26 15:29:11.292844 WARN awatcher] Not sending to server 127.0.0.1:5600
[2025-06-26 15:29:11.292854 INFO awatcher] Idle timeout: 180 seconds
[2025-06-26 15:29:11.292857 INFO awatcher] Idle polling period: 5 seconds
[2025-06-26 15:29:11.292859 INFO awatcher] Window polling period: 1 seconds
[2025-06-26 15:29:11.307031 INFO watchers::watchers] Selected watcher: Wayland idle (ext-idle-notify-v1)
[2025-06-26 15:29:11.307038 INFO watchers::watchers] Starting idle watcher
[2025-06-26 15:29:11.308030 DEBUG watchers::watchers] Watcher "Wayland window (wlr-foreign-toplevel-management-unstable-v1)" cannot run: the requested global was not found in the registry
[2025-06-26 15:29:11.308918 DEBUG watchers::watchers::kwin_window] KWin script is already loaded, unloading
[2025-06-26 15:29:11.309687 DEBUG watchers::watchers::kwin_window] Starting KWin script 0
[2025-06-26 15:29:11.309693 DEBUG watchers::watchers::kwin_window] KWin version from KDE_SESSION_VERSION: 6

thread 'main' panicked at watchers/src/watchers/kwin_window.rs:290:13:
Failed to run a DBus interface: name already taken on the bus
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at watchers/src/watchers/kwin_window.rs:181: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:     0x55d9cc869170 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h9edbd6e38a8b0805
   1:     0x55d9cc888ff3 - core::fmt::write::h7b1248e5e0c79c78
   2:     0x55d9cc8346b3 - std::io::Write::write_fmt::h5e301665499081bf
   3:     0x55d9cc869013 - std::sys::backtrace::BacktraceLock::print::h4a386d2ef944f43e
   4:     0x55d9cc86472c - std::panicking::default_hook::{{closure}}::h61b7aa0fc15f236b
   5:     0x55d9cc864639 - std::panicking::default_hook::h2d21379b0b23a14f
   6:     0x55d9cc864c5f - std::panicking::rust_panic_with_hook::h100726ba9570b85a
   7:     0x55d9cc869516 - std::panicking::begin_panic_handler::{{closure}}::h141712493bfacf0c
   8:     0x55d9cc869389 - std::sys::backtrace::__rust_end_short_backtrace::h891003731531c924
   9:     0x55d9cc8647cd - rust_begin_unwind
  10:     0x55d9cc322c30 - core::panicking::panic_fmt::h1df68d570cb2382b
  11:     0x55d9cc3c9a0b - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h5c09c40fa06708c8
  12:     0x55d9cc431a67 - tokio::runtime::runtime::Runtime::block_on::h8cb7d0c55d088982
  13:     0x55d9cc3a7965 - <watchers::watchers::kwin_window::KWinScript as core::ops::drop::Drop>::drop::h23ebf06ba67cbe94
  14:     0x55d9cc39d74d - core::ptr::drop_in_place<watchers::watchers::kwin_window::KWinScript>::h66b5e665988855cd
  15:     0x55d9cc3ab4ec - <watchers::watchers::kwin_window::WindowWatcher as watchers::watchers::Watcher>::new::{{closure}}::h9ab3850983efd4e8
  16:     0x55d9cc33930b - tokio::runtime::task::core::Core<T,S>::poll::he8da7b389f3781a0
  17:     0x55d9cc3471cb - tokio::runtime::task::harness::Harness<T,S>::poll::heed5d84ed083248a
  18:     0x55d9cc3366aa - tokio::runtime::scheduler::current_thread::Context::enter::h411d801e4a29c611
  19:     0x55d9cc33cbac - tokio::runtime::context::scoped::Scoped<T>::set::h8a3858f75ce8fb7b
  20:     0x55d9cc336a2b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::hd8071f318d9504e6
  21:     0x55d9cc33cf63 - tokio::runtime::context::runtime::enter_runtime::hfe815c3d8b3f0f82
  22:     0x55d9cc3458f6 - tokio::runtime::runtime::Runtime::block_on::h913e5cc34ed3c387
  23:     0x55d9cc32e770 - awatcher::main::h1c449cad3fd6f370
  24:     0x55d9cc3537e3 - std::sys::backtrace::__rust_begin_short_backtrace::h1c4e294187786259
  25:     0x55d9cc345fc9 - std::rt::lang_start::{{closure}}::h910099681f428217
  26:     0x55d9cc8409b5 - std::rt::lang_start_internal::he3cad277a2bdfe30
  27:     0x55d9cc32e855 - main
  28:     0x7f335142a47e - __libc_start_call_main
  29:     0x7f335142a539 - __libc_start_main_impl
  30:     0x55d9cc3232b5 - _start
  31:                0x0 - <unknown>

thread 'main' panicked at library/core/src/panicking.rs:226:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions