ONLYOFFICE/snap-desktopeditors

Onlyoffice desktop crashes immediately when File -> Save as.

wonx opened this issue · 9 comments

wonx commented

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System

Linux (DEB package) (I think it was installed as a snap package in the Ubuntu Software store, from the Latest/Edge repository)

Version information

7.0.1.37

Expected Behavior

A save dialog should open and let the file be saved with another filename or in another folder.

Actual Behavior

OnlyOffice just closes immediately without any warning.

This is the output when launched from the console. This part appears as soon as you open the application:

(base) user@TM1703:~$ onlyoffice-desktopeditors 
/home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libdconfsettings.so
/home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libgiognomeproxy.so
/home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libgiognutls.so
/home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/marc/snap/onlyoffice-desktopeditors/108/.cache-7.0.1/gio-modules/libgiolibproxy.so

And this part appears when you click on Save As...:

(DesktopEditors:24096): Gtk-WARNING **: 12:05:59.939: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/onlyoffice-desktopeditors/108/data-dir/icons/Yaru/16x16/status/image-missing.png: Unable to load image-loading module: /snap/onlyoffice-desktopeditors/105/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /snap/onlyoffice-desktopeditors/105/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/onlyoffice-desktopeditors/108/data-dir/icons/Yaru/16x16/status/image-missing.png: Unable to load image-loading module: /snap/onlyoffice-desktopeditors/105/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /snap/onlyoffice-desktopeditors/105/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
Aborted (core dumped)
(base) user@TM1703:~$ 

Reproduction Steps

  • Open a new or existing document
  • Click on File, Save As

Additional information

It's installed in Ubuntu 20.04 LTS with Gnome.

Hi, could you install deb version and see if this error something only related to snap or can be reproduced with deb version

Also I see this report

https://forum.snapcraft.io/t/almost-all-snaps-broke-overnight-and-need-to-be-reinstalled/22032/9

Could you try to reinstall snap and see if this helps

wonx commented

Reinstalling the snap does not help. Installing the version from the latest/beta repository, which still uses version 7.0.0.127, works fine and the Save and Open dialog open correctly, but the latest/stable channel also uses 7.0.1.37 and it also crashes when saving as or opening a new document.

I have yet not tried the .deb package. Give me a couple of minutes and I'll report back.

but the latest/stable channel also uses 7.0.1.37 and it also crashes when saving as or opening a new document.

I think maybe something snap incorrectly removes itself

I strongly think it's something with snap sub-system on your PC, rather than issue in our app

wonx commented

Ok, I tried the .deb package (7.0.1.37), and the problem is not there, so it affects the snap version only.

However, I needed to manually install fonts-dejavu and fonts-crosextra-carlito as dependencies.

Also, when opening the Open or Save as dialog, I got these messages in the console, I don't know if they are relevant:

QXcbConnection: XCB error: 8 (BadMatch), sequence: 2624, resource id: 65011810, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 2629, resource id: 65011810, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 2632, resource id: 65011810, major code: 130 (Unknown), minor code: 3
wonx commented

I strongly think it's something with snap sub-system on your PC, rather than issue in our app

But then why does it only affect version 7.0.1.37 and not 7.0.0.127 in the snap packages?

But then why does it only affect version 7.0.1.37 and not 7.0.0.127 in the snap packages?

I see this scenario like this:

  1. You've installed desktopeditors snap 7.0.1.37
  2. Some update to snap subsystem is released and broke something for already installed packages, maybe in several packages (do you have same problem in other snap packages), maybe only in our one
  3. You've installed 7.0.0.127 version and since it happened after step 2 it works fine

So I think you should uninstall our package (both versions), maybe install all system updates (at least for a snap), reboot, and check if the issue still persists

I've checked on my Kubuntu 20.04 system and release channel snap 7.0.1.37 saves files without any trouble

Also, I moving this issue to snap repo since problem is only actual for snap

wonx commented

Thanks, I uninstalled the snap and the .deb version, made sure my system was completely up to date, restarted, and reinstalled the 7.0.1.37 from snap again. The issue is no longer there.

Glad my advice helped you