lilyinstarlight / nixos-cosmic

Flake for using COSMIC on NixOS
MIT License
394 stars 27 forks source link

Cosmic Appreance Settings Crashes #440

Open asosnovsky opened 6 days ago

asosnovsky commented 6 days ago

All of the other settings seem to work fine, but for some reason when I go to the "appereance" section it crashes and exits.

Here are the logs I gathered when launching the settings from terminal:

 ~ cosmic-settings
   WARN  Key-Binding 'Period' only matched case insensitive for "period"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

   WARN  Key-Binding 'Comma' only matched case insensitive for "comma"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

   WARN  Key-Binding 'Period' only matched case insensitive for "period"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

   WARN  Key-Binding 'Comma' only matched case insensitive for "comma"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

  ERROR  shortcuts custom config error: GetKey("custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/mod.rs:43 on main

  ERROR  Failed to get the contrast Portal(NotFound("Requested setting not found"))
    at /build/cargo-vendor-dir/libcosmic-0.1.0/src/theme/portal.rs:47 on tokio-runtime-worker

The application panicked (crashed).
Message:  Size not found for icon
Location: /build/cargo-vendor-dir/freedesktop-icons-0.2.6/src/theme/parse.rs:54

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Location: /build/cargo-vendor-dir/libcosmic-0.1.0/src/widget/icon/named.rs:78

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Location: /build/cargo-vendor-dir/libcosmic-0.1.0/src/icon_theme.rs:17

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Location: /build/cargo-vendor-dir/libcosmic-0.1.0/src/icon_theme.rs:17

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Here is some info:

cat flake.lock | jq '.nodes["nixos-cosmic"]'
{
  "inputs": {
    "flake-compat": "flake-compat",
    "nixpkgs": [
      "nixpkgs"
    ],
    "nixpkgs-stable": "nixpkgs-stable",
    "rust-overlay": "rust-overlay"
  },
  "locked": {
    "lastModified": 1729857853,
    "narHash": "sha256-IVaFOTG4i2K0YWKrJui09YCAEWyTSK+zaUTUvj/SbC4=",
    "owner": "lilyinstarlight",
    "repo": "nixos-cosmic",
    "rev": "04408bf4afe2bf2b15227c43914130c8bdf4ed3c",
    "type": "github"
  },
  "original": {
    "owner": "lilyinstarlight",
    "repo": "nixos-cosmic",
    "type": "github"
  }
}
cat flake.lock | jq '.nodes["nixpkgs"]'
{
  "locked": {
    "lastModified": 1729449015,
    "narHash": "sha256-Gf04dXB0n4q0A9G5nTGH3zuMGr6jtJppqdeljxua1fo=",
    "owner": "NixOS",
    "repo": "nixpkgs",
    "rev": "89172919243df199fe237ba0f776c3e3e3d72367",
    "type": "github"
  },
  "original": {
    "owner": "NixOS",
    "ref": "nixos-24.05",
    "repo": "nixpkgs",
    "type": "github"
  }
}
lilyinstarlight commented 3 days ago

I cannot replicate this issue at all on latest nixos-unstable or nixos-24.05. Is your config publicly available so I can poke at it?

asosnovsky commented 3 days ago

@lilyinstarlight yes it is https://github.com/asosnovsky/nixos-setup/tree/main

This host is the one for my laptop: https://github.com/asosnovsky/nixos-setup/blob/main/hosts/fwbook.nix

The desktop config https://github.com/asosnovsky/nixos-setup/blob/main/modules/nixos/desktop/cosmic.nix

FYI I am running it side by side with Plasma6, and using GDM. Though I did try the cosmic-gretter and got the same results.

Also just ran the cosmic-settings with the RUST_BACKTRACE flag set to full, hopefully it helps

 cosmic-settings
   WARN  Key-Binding 'Period' only matched case insensitive for "period"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

   WARN  Key-Binding 'Comma' only matched case insensitive for "comma"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

   WARN  Key-Binding 'Period' only matched case insensitive for "period"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

   WARN  Key-Binding 'Comma' only matched case insensitive for "comma"
    at /build/cargo-vendor-dir/cosmic-settings-config-0.1.0/src/shortcuts/sym.rs:26 on main

  ERROR  Failed to get the contrast Portal(NotFound("Requested setting not found"))
    at /build/cargo-vendor-dir/libcosmic-0.1.0/src/theme/portal.rs:47 on tokio-runtime-worker

The application panicked (crashed).
Message:  Size not found for icon
Location: /build/cargo-vendor-dir/freedesktop-icons-0.2.6/src/theme/parse.rs:54

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 7 frames hidden ⋮
   8: core::option::expect_failed::h6d726c0eb3b486db
      at <unknown source file>:<unknown line>
   9: freedesktop_icons::theme::parse::<impl freedesktop_icons::theme::Theme>::get_directory::hf1b248db6c64ece3
      at <unknown source file>:<unknown line>
  10: <alloc::vec::into_iter::IntoIter<T,A> as core::iter::traits::iterator::Iterator>::try_fold::h46e401fc1277fb46
      at <unknown source file>:<unknown line>
  11: freedesktop_icons::theme::Theme::try_get_icon::h046d43937c4ab4de
      at <unknown source file>:<unknown line>
  12: freedesktop_icons::LookupBuilder::find::h5369c8c5d6b7d4cd
      at <unknown source file>:<unknown line>
  13: cosmic::widget::icon::named::Named::path::h04aebfb475aecec5
      at <unknown source file>:<unknown line>
  14: core::iter::traits::iterator::Iterator::find_map::check::{{closure}}::h94dacfc0bc7e00de
      at <unknown source file>:<unknown line>
  15: <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h898356efcd9a238e
      at <unknown source file>:<unknown line>
  16: cosmic_settings::pages::desktop::appearance::icon_themes::preview_handles::hcdb9725826fe7cc6
      at <unknown source file>:<unknown line>
  17: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll::h1efea1007c7efe98
      at <unknown source file>:<unknown line>
  18: tokio::runtime::task::core::Core<T,S>::poll::h886e189bc61594e7
      at <unknown source file>:<unknown line>
  19: tokio::runtime::task::harness::Harness<T,S>::poll::h553e312cfad0d72d
      at <unknown source file>:<unknown line>
  20: tokio::runtime::blocking::pool::Inner::run::hc7465773c142cfb4
      at <unknown source file>:<unknown line>
  21: std::sys::backtrace::__rust_begin_short_backtrace::he8b4447bca4bab38
      at <unknown source file>:<unknown line>
  22: core::ops::function::FnOnce::call_once{{vtable.shim}}::h0d75e94aae96b777
      at <unknown source file>:<unknown line>
  23: std::sys::pal::unix::thread::Thread::new::thread_start::hcdbd1049068002f4
      at <unknown source file>:<unknown line>
  24: start_thread<unknown>
      at <unknown source file>:<unknown line>
  25: clone3<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Location: /build/cargo-vendor-dir/libcosmic-0.1.0/src/widget/icon/named.rs:78

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 8 frames hidden ⋮
   9: cosmic::widget::icon::named::Named::path::h04aebfb475aecec5
      at <unknown source file>:<unknown line>
  10: cosmic::widget::icon::Icon::view::h792cd47dbb479df8
      at <unknown source file>:<unknown line>
  11: cosmic::widget::segmented_button::widget::draw_icon::h9a568085e7bec2f7
      at <unknown source file>:<unknown line>
  12: <cosmic::widget::segmented_button::widget::SegmentedButton<Variant,SelectionMode,Message> as iced_core::widget::Widget<Message,cosmic::theme::Theme,iced_renderer::fallback::Renderer<iced_wgpu::Renderer,iced_tiny_skia::Renderer>>>::draw::h29c372a66702fac5
      at <unknown source file>:<unknown line>
  13: <iced_widget::scrollable::Scrollable<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::h8a940c03bf281dfc
      at <unknown source file>:<unknown line>
  14: <iced_widget::container::Container<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::heb5df1fee80e7791
      at <unknown source file>:<unknown line>
  15: <cosmic::widget::id_container::IdContainer<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::h93670424cb808c91
      at <unknown source file>:<unknown line>
  16: <iced_widget::row::Row<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::he9f56590d5202e88
      at <unknown source file>:<unknown line>
  17: <iced_widget::column::Column<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::h4b7a4d1e2687b1a7
      at <unknown source file>:<unknown line>
  18: <iced_widget::container::Container<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::heb5df1fee80e7791
      at <unknown source file>:<unknown line>
  19: <cosmic::widget::id_container::IdContainer<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::h93670424cb808c91
      at <unknown source file>:<unknown line>
  20: <iced_widget::column::Column<Message,Theme,Renderer> as iced_core::widget::Widget<Message,Theme,Renderer>>::draw::h4b7a4d1e2687b1a7
      at <unknown source file>:<unknown line>
  21: iced_runtime::user_interface::UserInterface<Message,Theme,Renderer>::draw::h0b792f12f9396881
      at <unknown source file>:<unknown line>
  22: iced_winit::program::run_instance::{{closure}}::hbb9cf2ffde13d371
      at <unknown source file>:<unknown line>
  23: iced_winit::program::run::Runner<Message,F,C>::process_event::h98952eaa2be22c71
      at <unknown source file>:<unknown line>
  24: winit::platform_impl::linux::wayland::event_loop::EventLoop::single_iteration::h14811af91d5f0b11
      at <unknown source file>:<unknown line>
  25: winit::platform_impl::linux::wayland::event_loop::EventLoop::run_app::he589d51c16b2c23a
      at <unknown source file>:<unknown line>
  26: iced_winit::program::run::h29de4843dc59add9
      at <unknown source file>:<unknown line>
  27: iced::program::Program::run_with::h30b828701d6b5f40
      at <unknown source file>:<unknown line>
  28: cosmic::app::run_single_instance::h4b7cabc6aec8bbc4
      at <unknown source file>:<unknown line>
  29: cosmic_settings::main::hee4f0c113de68c89
      at <unknown source file>:<unknown line>
  30: std::sys::backtrace::__rust_begin_short_backtrace::h65d869db3c64c7f1
      at <unknown source file>:<unknown line>
  31: std::rt::lang_start::{{closure}}::h6f6646432ded0b53
      at <unknown source file>:<unknown line>
  32: std::rt::lang_start_internal::h4d90db0530245041
      at <unknown source file>:<unknown line>
  33: main<unknown>
      at <unknown source file>:<unknown line>
  34: __libc_start_call_main<unknown>
      at <unknown source file>:<unknown line>
  35: __libc_start_main@GLIBC_2.2.5<unknown>
      at <unknown source file>:<unknown line>
  36: _start<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Location: /build/cargo-vendor-dir/libcosmic-0.1.0/src/icon_theme.rs:17

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 8 frames hidden ⋮
   9: cosmic::icon_theme::default::h2a8821713343abe4
      at <unknown source file>:<unknown line>
  10: cosmic_settings::pages::desktop::appearance::icon_themes::preview_handles::hcdb9725826fe7cc6
      at <unknown source file>:<unknown line>
  11: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll::h1efea1007c7efe98
      at <unknown source file>:<unknown line>
  12: tokio::runtime::task::core::Core<T,S>::poll::h886e189bc61594e7
      at <unknown source file>:<unknown line>
  13: tokio::runtime::task::harness::Harness<T,S>::poll::h553e312cfad0d72d
      at <unknown source file>:<unknown line>
  14: tokio::runtime::blocking::pool::Inner::run::hc7465773c142cfb4
      at <unknown source file>:<unknown line>
  15: std::sys::backtrace::__rust_begin_short_backtrace::he8b4447bca4bab38
      at <unknown source file>:<unknown line>
  16: core::ops::function::FnOnce::call_once{{vtable.shim}}::h0d75e94aae96b777
      at <unknown source file>:<unknown line>
  17: std::sys::pal::unix::thread::Thread::new::thread_start::hcdbd1049068002f4
      at <unknown source file>:<unknown line>
  18: start_thread<unknown>
      at <unknown source file>:<unknown line>
  19: clone3<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.