flathub / org.gnome.Boxes

https://flathub.org/apps/details/org.gnome.Boxes
13 stars 10 forks source link

File picker causes xdg-desktop-portal-gtk to segfault #88

Open SansSerif1 opened 1 year ago

SansSerif1 commented 1 year ago

Hello, I chose Gnome Boxes as my GUI to libvirtd. However, when I try to select an ISO file to create a machine, the file picker does not show and the xdg-desktop-portal-gtk ends with segmentation fault.

Logs

flatpak run org.gnome.Boxes

libEGL warning: wayland-egl: could not open /dev/dri/renderD128 (No such file or directory)
libEGL warning: failed to get driver name for fd 0

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd 0

(gnome-boxes:2): Gdk-WARNING **: 13:27:32.460: Server is missing xdg_foreign support

(gnome-boxes:2): Gtk-WARNING **: 13:27:32.460: Failed to export handle, could not set transient for

(gnome-boxes:2): GLib-CRITICAL **: 13:27:32.460: g_variant_new_string: assertion 'string != NULL' failed
Ignoring /app/share/osinfo/.ref with missing '.xml' extension
Ignoring /app/share/osinfo/manifest.json with missing '.xml' extension

/usr/lib/xdg-desktop-portal-gtk

** (xdg-desktop-portal-gtk:6736): WARNING **: 13:27:32.462: Unhandled parent window type 

** (xdg-desktop-portal-gtk:6736): WARNING **: 13:27:32.462: Failed to associate portal window with parent window 

Setup

EDIT: Librewolf (flatpak) can open and use the gtk file picker normally, so that is why I decided to post the issue here

d4r1us-drk commented 1 year ago

Having the same issue in Void Linux, same dwl compositor and xdg-desktop-portal-gtk.

When trying to create a VM from a file:

(gnome-boxes:2): Gtk-WARNING **: 11:18:44.532: Failed to export handle, could not set transient for

(gnome-boxes:2): GLib-CRITICAL **: 11:18:44.532: g_variant_new_string: assertion 'string != NULL' failed Ignoring /app/share/osinfo/.ref with missing '.xml' extension Ignoring /app/share/osinfo/manifest.json with missing '.xml' extension


- Logs (dmesg):

[131462.015082] elogind[1045]: New session 91 of user drk. [131472.313392] xdg-desktop-por[20616]: segfault at a11 ip 00007f24ced8d350 sp 00007ffefa521110 error 4 in libgtk-3.so.0.2406.32[7f24cec85000+379000] likely on CPU 5 (core 1, socket 0) [131472.313403] Code: 39 30 74 10 48 89 df e8 fe d7 ef ff 85 c0 0f 84 c6 00 00 00 48 85 ed 74 39 e8 cc c9 ff ff 48 89 c6 48 8b 45 00 48 85 c0 74 05 <48> 39 30 74 1b 48 89 ef e8 d3 d7 ef ff 85 c0 75 0f 48 8d 15 d0 f9 [131483.740673] xdg-desktop-por[21065]: segfault at 1 ip 00007fc48558d350 sp 00007ffd873a25d0 error 4 in libgtk-3.so.0.2406.32[7fc485485000+379000] likely on CPU 5 (core 1, socket 0) [131483.740682] Code: 39 30 74 10 48 89 df e8 fe d7 ef ff 85 c0 0f 84 c6 00 00 00 48 85 ed 74 39 e8 cc c9 ff ff 48 89 c6 48 8b 45 00 48 85 c0 74 05 <48> 39 30 74 1b 48 89 ef e8 d3 d7 ef ff 85 c0 75 0f 48 8d 15 d0 f9 [131744.993648] xdg-desktop-por[21260]: segfault at 1 ip 00007f8220f8d350 sp 00007ffee2a137e0 error 4 in libgtk-3.so.0.2406.32[7f8220e85000+379000] likely on CPU 1 (core 1, socket 0) [131744.993658] Code: 39 30 74 10 48 89 df e8 fe d7 ef ff 85 c0 0f 84 c6 00 00 00 48 85 ed 74 39 e8 cc c9 ff ff 48 89 c6 48 8b 45 00 48 85 c0 74 05 <48> 39 30 74 1b 48 89 ef e8 d3 d7 ef ff 85 c0 75 0f 48 8d 15 d0 f9 [131750.861362] xdg-desktop-por[22245]: segfault at 1 ip 00007fbaf638d350 sp 00007ffe168ceab0 error 4 in libgtk-3.so.0.2406.32[7fbaf6285000+379000] likely on CPU 4 (core 0, socket 0) [131750.861373] Code: 39 30 74 10 48 89 df e8 fe d7 ef ff 85 c0 0f 84 c6 00 00 00 48 85 ed 74 39 e8 cc c9 ff ff 48 89 c6 48 8b 45 00 48 85 c0 74 05 <48> 39 30 74 1b 48 89 ef e8 d3 d7 ef ff 85 c0 75 0f 48 8d 15 d0 f9

sidt4 commented 10 months ago

I guess this was probably fixed in https://github.com/flatpak/xdg-desktop-portal-gtk/commit/1c09aaf8c00e9c4cc2577aef9a4711c588bb97ef. The fix is available in xdg-desktop-portal-gtk-1.15.0.

What version of xdg-desktop-portal-gtk is installed in your system ?