Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser automatically setting GTK file chooser height to be extremely large #418

Open
matchatealeaf opened this issue Mar 7, 2025 · 1 comment

Comments

@matchatealeaf
Copy link

This issue happens with mullvad-browser-bin 14.0.7-1 installed from the AUR.

Opening GTK file chooser (for saving/opening files) on Linux systems that use xdg-desktop-portal-gtk crashes the browser if ran in Wayland with MOZ_ENABLE_WAYLAND=1.

The reason seems to be that the browser set the file chooser height to be extremely large.

Steps to reproduce:
1.) Check that the window-size for GTK file chooser is normal.

gsettings list-recursively | grep window-size             
org.gtk.Settings.FileChooser window-size (827, 535)
org.gtk.gtk4.Settings.FileChooser window-size (857, 522)

2.) Open mullvad-browser and press CTRL+O to invoke file chooser for opening of files, observes that mullvad-browser crashes.
3.) Check the window-size again to note the extremely large window height.

gsettings list-recursively | grep window-size
org.gtk.Settings.FileChooser window-size (827, 1283088)
org.gtk.gtk4.Settings.FileChooser window-size (857, 522)

This extremely large window height also caused other programs that uses GTK file chooser to crash (e.g., inkscape, firefox)

One can reset the window-size with gsettings reset org.gtk.Settings.FileChooser window-size, but mullvad-browser will still set it to the large height whenever the file chooser is invoked.

Here's the error message after crash:

[Parent 32501, Main Thread] WARNING: Native Windows taller than 65535 pixels are not supported: 'glib warning', file /var/tmp/build/firefox-64d9c39553ae/toolkit/xre/nsSigHandlers.cpp:187

(Mullvad Browser:32501): Gdk-WARNING **: 22:46:46.578: Native Windows taller than 65535 pixels are not supported
[Parent 32501, Main Thread] WARNING: ../gtk/gdk/wayland/gdkdisplay-wayland.c:1446: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.): 'glib warning', file /var/tmp/build/firefox-64d9c39553ae/toolkit/xre/nsSigHandlers.cpp:187

(Mullvad Browser:32501): Gdk-CRITICAL **: 22:46:46.596: ../gtk/gdk/wayland/gdkdisplay-wayland.c:1446: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
Exiting due to channel error.
Exiting due to channel error.
zsh: segmentation fault  mullvad-browser

Running in XWayland with XDG_BACKEND=x11 lead to an issue similar to #416 and #417 .

@Digitalone1
Copy link

Please, fix this issue. I had to downgrade to version 14.0.0 because every time the browser try to open the file dialog, it crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants