Summary: | v7.6 crashes in libuno_sal.so.3 when saving a file in Ubuntu 22.04 with XLIB_SKIP_ARGB_VISUALS=1 | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Stefan Rueger <stefan.rueger> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | caolan.mcnamara, m.weghorn, raal, stephane.guillou |
Priority: | medium | Keywords: | haveBacktrace |
Version: | 7.3.7.2 release | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 103182, 133092 |
Description
Stefan Rueger
2023-10-26 14:06:30 UTC
Can you please check with these packages installed? sudo apt install libcanberra-gtk-module libcanberra-gtk3-module No change: $ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module Reading package lists... Done Building dependency tree... Done Reading state information... Done libcanberra-gtk3-module is already the newest version (0.30-10ubuntu1.22.04.1). libcanberra-gtk-module is already the newest version (0.30-10ubuntu1.22.04.1). 0 to upgrade, 0 to newly install, 0 to remove and 14 not to upgrade. $ dpkg --get-selections | grep '[[:space:]]install$' | sed s/'\s*install$'// | grep canberra gnome-session-canberra libcanberra-gtk-module:amd64 libcanberra-gtk0:amd64 libcanberra-gtk3-0:amd64 libcanberra-gtk3-module:amd64 libcanberra-pulse:amd64 libcanberra0:amd64 $ dpkg --get-selections | grep '[[:space:]]install$' | sed s/'\s*install$'// | grep -v canberra | grep gtk apport-gtk gir1.2-gtk-3.0:amd64 gir1.2-gtk-4.0:amd64 gir1.2-gtksource-4:amd64 gir1.2-javascriptcoregtk-4.0:amd64 gstreamer1.0-gtk3:amd64 gtk-update-icon-cache ibus-gtk3:amd64 ibus-gtk4:amd64 libavahi-ui-gtk3-0:amd64 libcheese-gtk25:amd64 libclutter-gtk-1.0-0:amd64 libcolord-gtk1:amd64 libdbusmenu-gtk3-4:amd64 libgirara-gtk3-3:amd64 libgtk-3-0:amd64 libgtk-3-bin libgtk-3-common libgtk-4-1:amd64 libgtk-4-bin libgtk-4-common libgtk2.0-0:amd64 libgtk2.0-bin libgtk2.0-common libgtk3-perl libgtkmm-3.0-1v5:amd64 libgtksourceview-4-0:amd64 libgtksourceview-4-common libjavascriptcoregtk-4.0-18:amd64 libwebkit2gtk-4.0-37:amd64 libwmf-0.2-7-gtk libwmf0.2-7-gtk:amd64 libwxgtk3.0-gtk3-0v5:amd64 python3-aptdaemon.gtk3widgets qt5-gtk-platformtheme:amd64 software-properties-gtk transmission-gtk ubuntu-release-upgrader-gtk usb-creator-gtk xdg-desktop-portal-gtk xdg-user-dirs-gtk I systematically changed my .bashrc (seeing that it is one of the few things I injected into a fresh 22.04 install). Looks like export XLIB_SKIP_ARGB_VISUALS=1 in .bashrc makes libreoffice crash in the described way. Who knew? I cannot remember when I put it there in the last 20 years and what for... Begs the question can anyone else reproduce and why does libreoffice crash (but hardly anything else) with this environment variable set? [Automated Action] NeedInfo-To-Unconfirmed Still can't crash it in Ubuntu 20.04 with: export XLIB_SKIP_ARGB_VISUALS=1 Looks like some Ubuntu 22.04-specific issue(s), see for example https://stackoverflow.com/questions/75406844/not-loading-module-atk-bridge-the-functionality-is-provided-by-gtk-natively Caolán and Michael, this touches on a mix of gtk2 and gtk3, and the accessibility toolkit. I expect it to be "not our bug", but any opinion here? I can confirm on Ubuntu 22.04 with export XLIB_SKIP_ARGB_VISUALS=1; window system X11 Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 97b6b6b16c4b623f8a34393a906272439a7f0314 CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded "Using GTK+ 2.x and GTK+ 3 in the same process is not supported." reminds me of: https://bugzilla.redhat.com/show_bug.cgi?id=1285356 /snap/libreoffice/300/gnome-platform/usr/lib/x86_64-linux-gnu/libstdc++.so.6(__cxa_rethrow+0x4b)[0x7f57a4c5252b] ... /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f57a4e2e520] /snap/libreoffice/300/usr/lib/x86_64-linux-gnu/libX11.so.6(XVisualIDFromVisual+0x4)[0x7f57a3501104] XVisualIDFromVisual failure is presumably something to do with XLIB_SKIP_ARGB_VISUALS and some exception getting thrown somwehere. Not sure what is going on here, and I can't reproduce locally Can't reproduce any crash with XLIB_SKIP_ARGB_VISUALS=1 on Debian testing, maybe really some Ubuntu-specific issue? Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: df79eedf6989ab4c2913a23a7e72079bd719168b CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: threaded Glad @raal could reproduce under Ubuntu 22.04 LTS. This problem kept me from upgrading to 22.04 for nearly two years. Now that I know it's a pesky environment variable XLIB_SKIP_ARGB_VISUALS=1 still begs the question why does libreoffice crash (but hardly anything else on the laptop that I used for testing out 22.04) with this environment variable set? It's likely some library or some such, but it *is* libreoffice that crashes. No crash with Ubuntu 22.04 + GNOME 42.9 + Wayland, regardless of if the window is MetaWindowXwayland or MetaWindowWayland Version: 7.6.5.2 (X86_64) / LibreOffice Community Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded |