expected outcome:
- When using the system the file picker should work as usual.
actual outcome:
- The file picker on Firefox crashes it or does nothing. On brave it crashes the system. But Falkon works fine. (as it is qt I assume)
- I had issues before with it being very laggy before it completely stopped working
- Meta information like system and nix versions:
system.stateVersion = “23.11”;
flakes/other experimental features disabled
relevant config, copied and pasted from configuration.nix, these settings have been changed around enabled/disabled with no avail:
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
programs.xwayland.enable = true;
xdg.portal.wlr.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-kde
# xdg-desktop-portal-gtk (disabled as it causes errors)
];
};
environment.sessionVariables.XDG_DATA_DIRS = lib.mkAfter [
(builtins.readFile (pkgs.stdenv.mkDerivation {
name = “missing-gsettings-schemas-fix”;
dontUnpack = true;
buildInputs = [ pkgs.gtk3 ];
installPhase = ‘’
printf %s “$GSETTINGS_SCHEMAS_PATH” > “$out”
‘’;
}))
];
systemd.services.xdg-desktop-portal = {
description = “xdg-desktop-portal service”;
after = [ “graphical-session-pre.target” ];
wants = [ “graphical-session-pre.target” ];
partOf = [ “graphical-session.target” ];
serviceConfig = {
ExecStart = “${pkgs.xdg-desktop-portal}/libexec/xdg-desktop-portal”;
Restart = “always”;
User = “”;
};
wantedBy = [ “graphical-session.target” ];
};
xwayland is enabled
firefox error (not mine but had the same, I just can’t reproduce now)
(firefox:1677716): Gdk-CRITICAL **: 19:45:37.871: …/gdk/wayland/gdkdisplay-wayland.c:1433: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
source: https://www.reddit.com/r/NixOS/comments/1ciarn2/firefox_crashes_when_i_try_to_open_the_file_picker/
similar post: Tor browser cannot show file picker.
for me it is set to 1 and locked.
I also tried disabling hardware acceleration on firefox, didn’t help.
Firefox with portals returns: [user@computer:~]$ GTK_USE_PORTAL=1 firefox
[49478, Main Thread] WARNING: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop: ‘glib warning’, file /build/firefox-125.0.3/toolkit/xre/nsSigHandlers.cpp:187
(firefox:49478): Gdk-WARNING **: 23:11:42.910: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
1 Like
Did you find the solution? I have the same issue.
Yes, I resolved the issue by adding the ‘gtk3’ package to my system packages
I have the same issue, for the last month+ I am unable to open any file picker in the whole system. Sadly installing gtk3
did not help in my case (not even gtk4
). I can reproduce it just by opening Save as… in Firefox, or starting inkscape and trying to open a file. I am a nix beginner.
λ inkscape
(org.inkscape.Inkscape:5276): Gtk-WARNING **: 19:03:06.006: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop
(org.inkscape.Inkscape:5276): Gdk-WARNING **: 19:03:07.607: Native Windows wider than 65535 pixels are not supported
(org.inkscape.Inkscape:5276): Gdk-WARNING **: 19:03:07.607: Native Windows taller than 65535 pixels are not supported
(org.inkscape.Inkscape:5276): Gdk-CRITICAL **: 19:03:07.773: ../gdk/wayland/gdkdisplay-wayland.c:1433: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
Gdk-Message: 19:03:07.808: Error 71 (Protocol error) dispatching to Wayland display.
Here is the backtrace if anyone is interested:
λ gdb /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/inkscape
Reading symbols from /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/inkscape...
(No debugging symbols found in /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/inkscape)
(gdb) r
Starting program: /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/inkscape
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libthread_db.so.1".
process 5546 is executing new program: /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/.inkscape-wrapped
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libthread_db.so.1".
[New Thread 0x7fffef2f66c0 (LWP 5582)]
[New Thread 0x7fffe6af56c0 (LWP 5583)]
[New Thread 0x7fffeeaf56c0 (LWP 5584)]
[New Thread 0x7fffedfff6c0 (LWP 5585)]
[New Thread 0x7fffed7e16c0 (LWP 5586)]
[New Thread 0x7fffecdea6c0 (LWP 5587)]
[New Thread 0x7fffe7fff6c0 (LWP 5588)]
[Thread 0x7fffecdea6c0 (LWP 5587) exited]
[New Thread 0x7fffecdea6c0 (LWP 5589)]
[Thread 0x7fffe7fff6c0 (LWP 5588) exited]
[New Thread 0x7fffe7fff6c0 (LWP 5590)]
[Thread 0x7fffecdea6c0 (LWP 5589) exited]
[New Thread 0x7fffecdea6c0 (LWP 5591)]
[Thread 0x7fffe7fff6c0 (LWP 5590) exited]
[New Thread 0x7fffe7fff6c0 (LWP 5592)]
(org.inkscape.Inkscape:5546): Gtk-WARNING **: 19:05:30.682: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop
[New Thread 0x7fffe5a076c0 (LWP 5594)]
[New Thread 0x7fffe52066c0 (LWP 5595)]
(org.inkscape.Inkscape:5546): Gdk-WARNING **: 19:05:32.302: Native Windows wider than 65535 pixels are not supported
(org.inkscape.Inkscape:5546): Gdk-WARNING **: 19:05:32.302: Native Windows taller than 65535 pixels are not supported
[New Thread 0x7fffe4a056c0 (LWP 5597)]
[New Thread 0x7fffc74b66c0 (LWP 5598)]
[New Thread 0x7fffc6cb56c0 (LWP 5599)]
[New Thread 0x7fffc64b46c0 (LWP 5600)]
[New Thread 0x7fffc5cb36c0 (LWP 5601)]
[New Thread 0x7fffc54b26c0 (LWP 5602)]
[New Thread 0x7fffc4cb16c0 (LWP 5603)]
(org.inkscape.Inkscape:5546): Gdk-CRITICAL **: 19:05:32.471: ../gdk/wayland/gdkdisplay-wayland.c:1433: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
Thread 1 ".inkscape-wrapp" received signal SIGSEGV, Segmentation fault.
0x00007ffff3b663f0 in _gdk_wayland_shm_surface_get_wl_buffer () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
(gdb) bt
#0 0x00007ffff3b663f0 in _gdk_wayland_shm_surface_get_wl_buffer () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#1 0x00007ffff3b7171c in gdk_wayland_window_ensure_cairo_surface.isra () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#2 0x00007ffff3b7178d in gdk_window_impl_wayland_begin_paint () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#3 0x00007ffff3b4de6d in gdk_window_begin_paint_internal () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#4 0x00007ffff3b4e3ba in gdk_window_begin_draw_frame () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#5 0x00007ffff3f6690b in gtk_widget_render () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#6 0x00007ffff3e07a0f in gtk_main_do_event () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#7 0x00007ffff3b32745 in _gdk_event_emit () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#8 0x00007ffff3b41559 in _gdk_window_process_updates_recurse_helper () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#9 0x00007ffff3b43166 in gdk_window_process_updates_internal () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#10 0x00007ffff3b43367 in gdk_window_process_updates_with_mode () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#11 0x00007ffff5cf3861 in _g_closure_invoke_va () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#12 0x00007ffff5d0969c in signal_emit_valist_unlocked () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#13 0x00007ffff5d0f2c2 in g_signal_emit_valist () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#14 0x00007ffff5d0f36f in g_signal_emit () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#15 0x00007ffff3b3b95f in gdk_frame_clock_paint_idle () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#16 0x00007ffff3b27b37 in gdk_threads_dispatch () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#17 0x00007ffff5683c7a in g_timeout_dispatch () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#18 0x00007ffff567fe39 in g_main_dispatch () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#19 0x00007ffff5682fd7 in g_main_context_iterate_unlocked.isra () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#20 0x00007ffff568388f in g_main_loop_run () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#21 0x00007ffff3d68013 in gtk_dialog_run () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#22 0x00007ffff716421a in Inkscape::UI::Dialog::FileOpenDialogImplGtk::show() () from /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
#23 0x00007ffff72bdd65 in Inkscape::UI::Dialog::StartScreen::load_document() () from /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
#24 0x00007ffff4c0e7aa in (anonymous namespace)::TreeView_signal_row_activated_callback(_GtkTreeView*, _GtkTreePath*, _GtkTreeViewColumn*, void*) () from /nix/store/fg1bkaj1sndy8snbivpr134p46jc7wr4-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
#25 0x00007ffff5cf3668 in g_closure_invoke () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#26 0x00007ffff5d07f39 in signal_emit_unlocked_R.isra.0 () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#27 0x00007ffff5d09561 in signal_emit_valist_unlocked () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#28 0x00007ffff5d0f2c2 in g_signal_emit_valist () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#29 0x00007ffff5d0f36f in g_signal_emit () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#30 0x00007ffff3f41ef9 in gtk_tree_view_multipress_gesture_pressed () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#31 0x00007ffff3ca4879 in _gtk_marshal_VOID__INT_DOUBLE_DOUBLEv () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#32 0x00007ffff5cf3861 in _g_closure_invoke_va () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#33 0x00007ffff5d0969c in signal_emit_valist_unlocked () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#34 0x00007ffff5d0f2c2 in g_signal_emit_valist () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#35 0x00007ffff5d0f36f in g_signal_emit () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#36 0x00007ffff3dbd199 in gtk_gesture_multi_press_begin () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#37 0x00007ffff5cf66b2 in g_cclosure_marshal_VOID__BOXEDv () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#38 0x00007ffff5cf3861 in _g_closure_invoke_va () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#39 0x00007ffff5d0969c in signal_emit_valist_unlocked () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#40 0x00007ffff5d0f2c2 in g_signal_emit_valist () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#41 0x00007ffff5d0f36f in g_signal_emit () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#42 0x00007ffff3db9dce in _gtk_gesture_check_recognized () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#43 0x00007ffff3dbb2ea in gtk_gesture_handle_event () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#44 0x00007ffff3dbe4a2 in gtk_gesture_single_handle_event () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#45 0x00007ffff3d837fd in gtk_event_controller_handle_event () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#46 0x00007ffff3f50aed in _gtk_widget_run_controllers () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#47 0x00007ffff4c16334 in Gtk::Widget::on_button_press_event(_GdkEventButton*) () from /nix/store/fg1bkaj1sndy8snbivpr134p46jc7wr4-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
--Type <RET> for more, q to quit, c to continue without paging--
#48 0x00007ffff4c18364 in Gtk::Widget_Class::button_press_event_callback(_GtkWidget*, _GdkEventButton*) () from /nix/store/fg1bkaj1sndy8snbivpr134p46jc7wr4-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
#49 0x00007ffff3c9df64 in _gtk_marshal_BOOLEAN__BOXEDv () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#50 0x00007ffff5cf3861 in _g_closure_invoke_va () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#51 0x00007ffff5d08998 in signal_emit_valist_unlocked () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#52 0x00007ffff5d0f2c2 in g_signal_emit_valist () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#53 0x00007ffff5d0f36f in g_signal_emit () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#54 0x00007ffff3f52514 in gtk_widget_event_internal.part () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#55 0x00007ffff3e05e2e in propagate_event () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#56 0x00007ffff3e078fe in gtk_main_do_event () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#57 0x00007ffff3b32745 in _gdk_event_emit () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#58 0x00007ffff3b672f2 in gdk_event_source_dispatch () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgdk-3.so.0
#59 0x00007ffff567ff54 in g_main_dispatch () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#60 0x00007ffff5682fd7 in g_main_context_iterate_unlocked.isra () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#61 0x00007ffff568388f in g_main_loop_run () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libglib-2.0.so.0
#62 0x00007ffff3d68013 in gtk_dialog_run () from /nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/lib/libgtk-3.so.0
#63 0x00007ffff765ada0 in InkscapeApplication::on_activate() () from /nix/store/kk5fb7vyijvrx837bk48sw432725wxvg-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
#64 0x00007ffff473c52e in Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () from /nix/store/g3s0rblz8ysywhn1spqzp1kkvfmi8x5n-glibmm-2.66.7/lib/libglibmm-2.4.so.1
#65 0x00007ffff5cf3668 in g_closure_invoke () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#66 0x00007ffff5d07f39 in signal_emit_unlocked_R.isra.0 () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#67 0x00007ffff5d09561 in signal_emit_valist_unlocked () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#68 0x00007ffff5d0f2c2 in g_signal_emit_valist () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#69 0x00007ffff5d0f36f in g_signal_emit () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgobject-2.0.so.0
#70 0x00007ffff5858ba0 in g_application_real_local_command_line () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgio-2.0.so.0
#71 0x00007ffff5858d36 in g_application_run () from /nix/store/c2v6ycn0sjcpx9ww8x7j4ima6xnpssry-glib-2.80.2/lib/libgio-2.0.so.0
#72 0x0000000000403c6a in main ()
By any chance, do you guys are using the latest kernel version (pkgs.linuxPackages_latest)?
If so, can you try to use the stable one (pkgs.linuxPackages) to see if the issue is still reproducible? I know that currently there are some Wayland issues with the latest kernel point releases that are currently being debugged in all distros.
1 Like
I was originally on pkgs.linuxPackages_6_1
which was 6.1.91
. Switching to just pkgs.linuxPackages
kernel 6.6.31
, did not resolve the issue for me.
Here is my config for the reference.
I think that I am getting somewhere. I got Inkscape working, but not FF yet.
The solution for now is a combination of those two reddit comments:
- https://www.reddit.com/r/NixOS/comments/1ciarn2/comment/l29g5ab/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
- https://www.reddit.com/r/NixOS/comments/1ciarn2/comment/l4r8pe9/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
- I put this into the config but it failed, but the error message revealed the expanded paths (which was helpful)
sessionVariables.XDG_DATA_DIRS = with pkgs; "$XDG_DATA_DIRS:${gtk3}/share/gsettings-schemas/gtk+3-${gtk3.version}:${gsettings-desktop-schemas}/share/gsettings-schemas/gsettings-desktop-schemas-${gsettings-desktop-schemas.version}";
- running the following command failed
λ gsettings get org.gtk.Settings.FileChooser window-size
No schemas installed
- I tried to customize
XDG_DATA_DIRS
(this is the syntax for fish shell)
λ set -x XDG_DATA_DIRS $XDG_DATA_DIRS:/nix/store/6pzxmb82pda01y6zxncdmmp7lhafb75h-gtk+3-3.24.41/share/gsettings-schemas/gtk+3-3.24.41:/nix/store/1s817f9iyszdjkivddb9kjj8xd2kgmbs-gsettings-desktop-schemas-46.0/share/gsettings-schemas/gsettings-desktop-schemas-46.0
- now I was able to reset the window-size
λ gsettings get org.gtk.Settings.FileChooser window-size
(855640, 1710766)
λ gsettings reset org.gtk.Settings.FileChooser window-size
λ gsettings get org.gtk.Settings.FileChooser window-size
(-1, -1)
- after this Inkscape works, and Firefox at least does not freeze the whole system and then crashes
- it even seems to survive restarts