torbrowser-overlay icon indicating copy to clipboard operation
torbrowser-overlay copied to clipboard

Downloading anything crashes wayland torbrowser.

Open amano-kenji opened this issue 6 months ago • 6 comments

[Parent 38, Main Thread] WARNING: Native Windows taller than 65535 pixels are not supported: 'glib warning', file /var/tmp/portage/www-client/torbrowser-128.12.0_p14504/work/firefox-tor-browser-128.12.0esr-14.5-1-build1/toolkit/xre/nsSigHandlers.cpp:187

(torbrowser:38): Gdk-WARNING **: 14:02:25.741: Native Windows taller than 65535 pixels are not supported
[Parent 38, Main Thread] WARNING: ../gtk-3.24.49/gdk/wayland/gdkdisplay-wayland.c:1452: 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/portage/www-client/torbrowser-128.12.0_p14504/work/firefox-tor-browser-128.12.0esr-14.5-1-build1/toolkit/xre/nsSigHandlers.cpp:187

(torbrowser:38): Gdk-CRITICAL **: 14:02:25.800: ../gtk-3.24.49/gdk/wayland/gdkdisplay-wayland.c:1452: 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.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=2Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

This is what I see whenever I try to download something in wayland torbrowser. I built torbrowser with wayland USE flag because xorg torbrowser doesn't run on sway.

amano-kenji avatar Jul 11 '25 05:07 amano-kenji

Well, upstream doesn't support wayland. That's why the wayland useflag is masked https://github.com/MeisterP/torbrowser-overlay/blob/b15183a0d254711a3df8befb0e892d591f5bee4b/profiles/package.use.mask#L2

MeisterP avatar Jul 11 '25 16:07 MeisterP

That means torbrowser doesn't work reliably on sway. Xorg torbrowser doesn't launch. Wayland torbrowser crashes before it shows me a file picker dialog.

amano-kenji avatar Jul 12 '25 01:07 amano-kenji

Maybe something mentioned in https://github.com/NixOS/nixpkgs/issues/307095 will help you to fix your issue.

MeisterP avatar Jul 14 '25 10:07 MeisterP

Setting widget.use-xdg-desktop-portal.file-picker to 1 (instead of default 2) seems to work around the issue for wayland torbrowser, but it also fails if it's executed in firejail because firejail profile is not updated, yet.

amano-kenji avatar Jul 15 '25 14:07 amano-kenji

Is this still an issue with torbrowser-140.4.0_p15000?

MeisterP avatar Nov 06 '25 12:11 MeisterP

I will report it back on sunday when I do system update.

amano-kenji avatar Nov 06 '25 13:11 amano-kenji

In torbrowser-140.4.0_p15000, I set widget.use-xdg-desktop-portal.file-picker back to the default value of 2 and tested downloading a pdf file from the internet.

Torbrowser doesn't crash anymore.

amano-kenji avatar Nov 09 '25 13:11 amano-kenji