snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
607 stars 20 forks source link

Nix Software Center crashes #44

Open daemonspudguy opened 1 year ago

daemonspudguy commented 1 year ago

I get this output when running with rust backtrace set to full

/nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gio/modules/libgvfsdbus.so
/nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gio/modules/libgioremote-volume-monitor.so
/nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gio/modules/libgioremote-volume-monitor.so
/nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /nix/store/g5wnnzr1r9fx9rk9i94x238lmka9dwb6-gvfs-1.50.4/lib/gio/modules/libgvfsdbus.so

(nix-software-center:10918): Gtk-WARNING **: 12:30:04.874: Failed to set text 'Flake arguments (--flake path/to/flake.nix#<THIS ENTRY>)' from markup due to error parsing markup: Error on line 1 char 63: Odd character “>”, expected a “=” after attribute name “ENTRY” of element “THIS”

(nix-software-center:10918): Gtk-WARNING **: 12:30:04.874: Failed to set text 'Flake arguments (--flake path/to/flake.nix#<THIS ENTRY>)' from markup due to error parsing markup: Error on line 1 char 63: Odd character “>”, expected a “=” after attribute name “ENTRY” of element “THIS”
libEGL warning: MESA-LOADER: failed to open radeonsi: /nix/store/8xk4yl1r3n6kbyn05qhan7nbag7npymx-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/9ajxzd0yc6vih6vldiwvaphqqwi5gz0v-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /nix/store/8xk4yl1r3n6kbyn05qhan7nbag7npymx-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/9ajxzd0yc6vih6vldiwvaphqqwi5gz0v-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

Gsk-Message: 12:30:05.000: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Could not initialize EGL display

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: RowNotFound', src/ui/window.rs:1383:34
stack backtrace:
   0:     0x557333dffb39 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::haaf5fb1112692432
   1:     0x557333e3931e - core::fmt::write::hc9810906af1f037c
   2:     0x557333e15945 - std::io::Write::write_fmt::h42570a50d1c05a1d
   3:     0x557333dff8f5 - std::sys_common::backtrace::print::hdb4dd2f5727cb1da
   4:     0x557333e2341f - std::panicking::default_hook::{{closure}}::hbf6435d4555f4c42
   5:     0x557333e23145 - std::panicking::default_hook::hb6b577f7a430b818
   6:     0x557333e23a3f - std::panicking::rust_panic_with_hook::h2dbb792ca6451cd5
   7:     0x557333dffea9 - std::panicking::begin_panic_handler::{{closure}}::h78627a3718fcdf2c
   8:     0x557333dffc8c - std::sys_common::backtrace::__rust_end_short_backtrace::h79f584276ca2060b
   9:     0x557333e235d2 - rust_begin_unwind
  10:     0x55733346c383 - core::panicking::panic_fmt::ha005c52a737c94d3
  11:     0x55733346c7f3 - core::result::unwrap_failed::h7a43042c26d3f96e
  12:     0x557333799ee6 - <nix_software_center::ui::window::AppModel as relm4::component::sync::traits::Component>::update::{{closure}}::h4f9b2dbcdb1f94b0
  13:     0x557333784116 - tokio::runtime::park::CachedParkThread::block_on::ha1131df8bee08d76
  14:     0x5573335d7cd9 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h5b700fbe4967917f
  15:     0x5573336f6848 - tokio::runtime::runtime::Runtime::block_on::hf00d0293b415de80
  16:     0x55733383b1c6 - <nix_software_center::ui::window::AppModel as relm4::component::sync::traits::Component>::update::h6120d7cb2bef5af4
  17:     0x5573334ebb02 - relm4::component::sync::builder::ComponentBuilder<C>::launch_with_input_channel::{{closure}}::h1ab747ac209f96f2
  18:     0x557333ded59c - glib::main_context::<impl glib::auto::main_context::MainContext>::with_thread_default::hb6b96d86d1b495a2
  19:     0x557333dea84a - glib::main_context_futures::TaskSource::dispatch::hd524c3f4e3164a6e
  20:     0x7fa8c7586609 - g_main_context_dispatch
  21:     0x7fa8c7586898 - g_main_context_iterate.constprop.0
  22:     0x7fa8c758692c - g_main_context_iteration
  23:     0x7fa8c77b9f5d - g_application_run
  24:     0x5573334dce23 - <O as gio::application::ApplicationExtManual>::run_with_args::hcd9d00c0de121a36
  25:     0x5573334b724e - relm4::app::RelmApp::run::h1f85a6ea99e144af
  26:     0x5573334dd477 - nix_software_center::main::ha5a323361a25e9b9
  27:     0x5573334dbc93 - std::sys_common::backtrace::__rust_begin_short_backtrace::h4d53a7a8178c8f13
  28:     0x5573334dbca9 - std::rt::lang_start::{{closure}}::hf77dc13525dcadab
  29:     0x557333e149c4 - std::rt::lang_start_internal::h62a41a9744fc6640
  30:     0x5573334dd575 - main
  31:     0x7fa8c6a2924e - __libc_start_call_main
  32:     0x7fa8c6a29309 - __libc_start_main_alias_1
  33:     0x55733346c945 - _start
  34:                0x0 - <unknown>
3.03s user 0.55s system 107% cpu 3.327s total
daemonspudguy commented 1 year ago

Running as root works for some reason.

daemonspudguy commented 1 year ago

I don't even know what's going on, removing a profile that caused the program to crash in my backtrace worked. I'm not closing this because that's still a problem.

daemonspudguy commented 1 year ago

It started crashing again with the same goddamn error message. EDIT: nevermind, that was because it failed to parse a package alias again.