ONLYOFFICE/snap-desktopeditors

Snap instantly crashing due to "Segmentation Fault"

jamesps-ebi opened this issue · 9 comments

After installing the latest version (7.2.1) on two different systems (both Ubuntu 22.04.1), the onlyoffice-desktopeditors app instantly crashes when attempting to open it. The window opens for a split second, before disappearing.
If I open the app from the terminal, I get the following output:

Gtk-Message: 13:50:23.163: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
QLayout: Attempting to add QLayout "" to CTabBarWrapper "tabWrapper", which already has a layout
QObject::~QObject: Timers cannot be stopped from another thread
Segmentation fault (core dumped)

This might be an issue related to LDAP/sssd users.

With a local account, the snap version opens without issue. But with my domain user account, it simply fails.

Here's the output of journalctl -f when attempting to open onlyoffice-desktopeditors
It looks like this could be an apparmor issue

Dec 05 13:35:53 ubu-n-b5c04f594433 systemd[4144]: Started snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors-1aa5ca32-a4aa-42b4-9cf4-fa27bd8c5328.scope.
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: kauditd_printk_skb: 17 callbacks suppressed
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.551:3246): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/implicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.551:3247): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/implicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.551:3248): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/explicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.551:3249): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/icd.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1107 audit(1701783353.551:3250): pid=1426 uid=101 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/" interface="org.freedesktop.DBus.Peer" member="Ping" mask="send" name="org.freedesktop.Avahi" pid=136457 label="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" peer_pid=1423 peer_label="unconfined"
                                            exe="/usr/bin/dbus-daemon" sauid=101 hostname=? addr=? terminal=?'
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.555:3251): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/implicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.555:3252): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/implicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.555:3253): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/implicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.555:3254): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/explicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0
Dec 05 13:35:53 ubu-n-b5c04f594433 kernel: audit: type=1400 audit(1701783353.555:3255): apparmor="DENIED" operation="open" class="file" profile="snap.onlyoffice-desktopeditors.onlyoffice-desktopeditors" name="/etc/vulkan/implicit_layer.d/" pid=136588 comm="editors_helper" requested_mask="r" denied_mask="r" fsuid=8046 ouid=0

@jamesps-ebi Hi
Is your problem still there? Can you update to the latest version 7.5.1?

Unfortunately I'm still seeing the same issue.

When logged in as a domain user with SSSD, onlyoffice crashes instantly upon launching.
Local user accounts can launch the app fine.

However, I now think the apparmor messages are a red-herring. I'm seeing those messages in both cases, but still working for the local user account.

I'm having the same issue when running OnlyOffice from Snap package with an Active Directory user. The issue also the same behavior when the application start up and then close right after that. Currently on Ubuntu 22.04.4 LTS and OnlyOffce Desktopeditor version 8 latest from Snap package. Here is some errors from Snap command

Gtk-Message: 10:33:29.937: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
(DesktopEditors:18979): Gtk-WARNING **: 10:33:30.025: GTK+ module /snap/onlyoffice-desktopeditors/181/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 10:33:30.025: Failed to load module "canberra-gtk-module"

(DesktopEditors:18979): Gtk-WARNING **: 10:33:30.026: GTK+ module /snap/onlyoffice-desktopeditors/181/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 10:33:30.026: Failed to load module "canberra-gtk-module"

(DesktopEditors:18979): Gtk-WARNING **: 10:33:30.083: gtk_disable_setlocale() must be called before gtk_init()
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
QXcbConnection: XCB error: 8 (BadMatch), sequence: 781, resource id: 50331711, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 797, resource id: 50331711, major code: 130 (Unknown), minor code: 3
QObject::~QObject: Timers cannot be stopped from another thread
Segmentation fault (core dumped)

Unfortunately, this problem did not repeat on our devices (Ubuntu 22.04, Mint 21, Kubuntu 22.04) version 8.1.0. No problems were found when launching Onlyoffice. Can you update to 8.1 and check?

Just updated to 8.1.1. Still crashing on startup.
Again, this seems to only happen when logged in with a user sourced from LDAP using SSSD. Local user accounts work fine.

Gtk-Message: 09:56:26.856: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(DesktopEditors:507612): Gtk-WARNING **: 09:56:26.964: GTK+ module /snap/onlyoffice-desktopeditors/196/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 09:56:26.964: Failed to load module "canberra-gtk-module"

(DesktopEditors:507612): Gtk-WARNING **: 09:56:26.966: GTK+ module /snap/onlyoffice-desktopeditors/196/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 09:56:26.966: Failed to load module "canberra-gtk-module"

(DesktopEditors:507612): Gtk-WARNING **: 09:56:27.060: gtk_disable_setlocale() must be called before gtk_init()
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
QXcbConnection: XCB error: 8 (BadMatch), sequence: 762, resource id: 79691839, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 778, resource id: 79691839, major code: 130 (Unknown), minor code: 3
QObject::~QObject: Timers cannot be stopped from another thread
Segmentation fault (core dumped)

Can confirm this problem. I've 2 pcs: first (1) with local user, second (2) with LDAP user (so without userdata in passwd).
Both with Ubuntu 24.04, snapd 2.63, Onlyoffice (OO) 8.1.1 and OO works fine only on 1.

When launch OO on 2 get error in terminal

Irregular theme <'Breeze'>. Using Adwaita
Gtk-Message: 12:27:09.888: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(DesktopEditors:844817): Gtk-WARNING **: 12:27:09.908: Theme parsing error: gtk.css:1:21: Failed to import: Error opening file /home/roman.kudoyarov@rtlabs.ru/snap/onlyoffice-desktopeditors/196/.config/gtk-3.0/colors.css: No such file or directory
Gtk-Message: 12:27:09.922: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 12:27:09.922: Failed to load module "colorreload-gtk-module"
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
QXcbConnection: XCB error: 8 (BadMatch), sequence: 777, resource id: 12582975, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 795, resource id: 12582975, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 847, resource id: 12582984, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 884, resource id: 12582984, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 902, resource id: 12582984, major code: 130 (Unknown), minor code: 3
fish: Job 1, 'onlyoffice-desktopeditors' terminated by signal SIGSEGV (Address boundary error)

and in dmesg

[Fri Aug 16 12:54:32 2024] DesktopEditors[844817]: segfault at 0 ip 000078d2d62030e3 sp 00007fffd0447650 error 4 in libascdocumentscore.so[78d2d6000000+6d6000] likely on CPU 2 (core 2, socket 0)
[Fri Aug 16 12:54:32 2024] Code: 1f 84 00 00 00 00 00 41 54 55 49 89 f4 53 48 89 fb 48 83 ec 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 e8 7d 96 ff ff <48> 8b 10 48 89 c7 ff 52 18 84 c0 74 70 48 8b bb f0 00 00 00 48 85

@jamesps-ebi Hi
I created ticket #70032 with your issue.