Onlyoffice Desktop-Editors segfault following 2025-02-16 update

Onlyoffice Desktop-Editors doesn’t launch anymore on Gnome Wayland:

desktopeditors                                              SEGV ✘ 

(DesktopEditors:27794): GLib-CRITICAL **: 14:20:47.504: g_atomic_ref_count_dec: assertion 'old_value > 0' failed
zsh: segmentation fault (core dumped)  desktopeditors

I’ve moved this to it’s own topic as you will hopefully get better attention and support.

I hope the title is OK; please change it if you wish.

Fine for me, let’s see about the attention…

1 Like

I have sometimes seen strange behaviour from programs that haven’t yet been updated for Wayland. I don’t know if this is the case for Onlyoffice, but you could try unsetting $WAYLAND_DISPLAY before running it. So, assuming the command to run it is onlyoffice:
WAYLAND_DISPLAY= onlyoffice
(note the space after the equals sign).

1 Like

Unfortunately, this doesn’t work for me.

WAYLAND_DISPLAY= onlyoffice-desktopeditors                   127 ✘ 

(DesktopEditors:62219): GLib-CRITICAL **: 13:29:31.027: g_atomic_ref_count_dec: assertion 'old_value > 0' failed
zsh: segmentation fault (core dumped)  WAYLAND_DISPLAY= onlyoffice-desktopeditors

I also tried forcing Onlyoffice to use XWayland before using the GDK_BACKEND=X11 environment variable, but this also didn’t change the situation.
Notably, this only happens on my Gnome Wayland notebook, while on my KDE Wayland desktop, ONLYOFFICE starts without problems without any additional configuration.

Here is the (probably not very helpful because of the missing debug symbols) dump file:

coredumpctl info -r --no-pager 63251                                                                                                                                                        ✔  15s  
           PID: 63251 (DesktopEditors)
           UID: 1000 (laurenz)
           GID: 1000 (laurenz)
        Signal: 11 (SEGV)
     Timestamp: Fri 2025-02-28 13:30:27 CET (3min 18s ago)
  Command Line: /opt/onlyoffice/desktopeditors/DesktopEditors
    Executable: /opt/onlyoffice/desktopeditors/DesktopEditors
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-4bbc03b5-2ef2-4c1a-a25b-2d747832ea3a.scope
          Unit: user@1000.service
     User Unit: vte-spawn-4bbc03b5-2ef2-4c1a-a25b-2d747832ea3a.scope
         Slice: user-1000.slice
     Owner UID: 1000 (laurenz)
       Boot ID: f5491ed4c6514ec3b28a07ec4651c974
    Machine ID: b80ad0aa24e94df7bef4a032e3bdffd4
      Hostname: laurenz-Yoga
       Storage: /var/lib/systemd/coredump/core.DesktopEditors.1000.f5491ed4c6514ec3b28a07ec4651c974.63251.1740745827000000.zst (present)
  Size on Disk: 3.4M
       Message: Process 63251 (DesktopEditors) of user 1000 dumped core.
                
                Stack trace of thread 63251:
                #0  0x00007f3dc6bbc212 malloc (libc.so.6 + 0xa6212)
                #1  0x00007f3dc814414b g_malloc (libglib-2.0.so.0 + 0x6314b)
                #2  0x00007f3dc8336176 g_dbus_connection_signal_subscribe (libgio-2.0.so.0 + 0x105176)
                #3  0x00000000004c2af3 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0xc2af3)
                #4  0x000000000042ca49 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0x2ca49)
                #5  0x00007f3dc6b3d488 n/a (libc.so.6 + 0x27488)
                #6  0x00007f3dc6b3d54c __libc_start_main (libc.so.6 + 0x2754c)
                #7  0x000000000042eb89 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0x2eb89)
                
                Stack trace of thread 63258:
                #0  0x00007f3dc6bbcca8 realloc (libc.so.6 + 0xa6ca8)
                #1  0x00007f3dc8144f1b g_realloc (libglib-2.0.so.0 + 0x63f1b)
                #2  0x00007f3dc8187763 g_variant_builder_end (libglib-2.0.so.0 + 0xa6763)
                #3  0x00007f3dc8379b05 n/a (libgio-2.0.so.0 + 0x148b05)
                #4  0x00007f3dc83401d8 g_dbus_message_new_from_blob (libgio-2.0.so.0 + 0x10f1d8)
                #5  0x00007f3dc834d2d8 n/a (libgio-2.0.so.0 + 0x11c2d8)
                #6  0x00007f3dc82da4cc n/a (libgio-2.0.so.0 + 0xa94cc)
                #7  0x00007f3dc82da515 n/a (libgio-2.0.so.0 + 0xa9515)
                #8  0x00007f3dc813e559 n/a (libglib-2.0.so.0 + 0x5d559)
                #9  0x00007f3dc81a1257 n/a (libglib-2.0.so.0 + 0xc0257)
                #10 0x00007f3dc813f287 g_main_loop_run (libglib-2.0.so.0 + 0x5e287)
                #11 0x00007f3dc8344bc4 n/a (libgio-2.0.so.0 + 0x113bc4)
                #12 0x00007f3dc8173be6 n/a (libglib-2.0.so.0 + 0x92be6)
                #13 0x00007f3dc6bab70a n/a (libc.so.6 + 0x9570a)
                #14 0x00007f3dc6c2faac n/a (libc.so.6 + 0x119aac)
                
                Stack trace of thread 63254:
                #0  0x00007f3dc6bb3be2 n/a (libc.so.6 + 0x9dbe2)
                #1  0x00007f3dc6ba7e33 n/a (libc.so.6 + 0x91e33)
                #2  0x00007f3dc6ba7e74 n/a (libc.so.6 + 0x91e74)
                #3  0x00007f3dc6c2253e __poll (libc.so.6 + 0x10c53e)
                #4  0x00007f3dcadb620b n/a (libxcb.so.1 + 0xd20b)
                #5  0x00007f3dcadb7f3d xcb_wait_for_event (libxcb.so.1 + 0xef3d)
                #6  0x00007f3daf4ed469 n/a (libQt5XcbQpa.so.5 + 0x43469)
                #7  0x00007f3dc6ead0dd n/a (libQt5Core.so.5 + 0xad0dd)
                #8  0x00007f3dc6bab70a n/a (libc.so.6 + 0x9570a)
                #9  0x00007f3dc6c2faac n/a (libc.so.6 + 0x119aac)
                
                Stack trace of thread 63256:
                #0  0x00007f3dc6c2d88d syscall (libc.so.6 + 0x11788d)
                #1  0x00007f3dc816fbe0 g_cond_wait (libglib-2.0.so.0 + 0x8ebe0)
                #2  0x00007f3dc810698c n/a (libglib-2.0.so.0 + 0x2598c)
                #3  0x00007f3dc8176237 n/a (libglib-2.0.so.0 + 0x95237)
                #4  0x00007f3dc8173be6 n/a (libglib-2.0.so.0 + 0x92be6)
                #5  0x00007f3dc6bab70a n/a (libc.so.6 + 0x9570a)
                #6  0x00007f3dc6c2faac n/a (libc.so.6 + 0x119aac)
                
                Stack trace of thread 63257:
                #0  0x00007f3dc6bb3be2 n/a (libc.so.6 + 0x9dbe2)
                #1  0x00007f3dc6ba7e33 n/a (libc.so.6 + 0x91e33)
                #2  0x00007f3dc6ba7e74 n/a (libc.so.6 + 0x91e74)
                #3  0x00007f3dc6c22a06 ppoll (libc.so.6 + 0x10ca06)
                #4  0x00007f3dc81a1327 n/a (libglib-2.0.so.0 + 0xc0327)
                #5  0x00007f3dc813da55 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca55)
                #6  0x00007f3dc813dab2 n/a (libglib-2.0.so.0 + 0x5cab2)
                #7  0x00007f3dc8173be6 n/a (libglib-2.0.so.0 + 0x92be6)
                #8  0x00007f3dc6bab70a n/a (libc.so.6 + 0x9570a)
                #9  0x00007f3dc6c2faac n/a (libc.so.6 + 0x119aac)
                
                Stack trace of thread 63270:
                #0  0x00007f3dc6bb3be2 n/a (libc.so.6 + 0x9dbe2)
                #1  0x00007f3dc6ba7e33 n/a (libc.so.6 + 0x91e33)
                #2  0x00007f3dc6ba7e74 n/a (libc.so.6 + 0x91e74)
                #3  0x00007f3dc6c3159f recv (libc.so.6 + 0x11b59f)
                #4  0x00000000004cd718 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0xcd718)
                #5  0x00000000004cd9c5 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0xcd9c5)
                #6  0x00000000004cf439 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0xcf439)
                #7  0x00007f3dc6bb0b6b n/a (libc.so.6 + 0x9ab6b)
                #8  0x00007f3dc6bb0be9 pthread_once (libc.so.6 + 0x9abe9)
                #9  0x00000000004ce4fd n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0xce4fd)
                #10 0x000000000052e0a0 n/a (/opt/onlyoffice/desktopeditors/DesktopEditors + 0x12e0a0)
                #11 0x00007f3dc6bab70a n/a (libc.so.6 + 0x9570a)
                #12 0x00007f3dc6c2faac n/a (libc.so.6 + 0x119aac)
                ELF object binary architecture: AMD x86-64

Try without the space between the “=” and the “o”…

You’re sure about that?
If i remove the space (which @beermad explicitly mentioned), this command doesn’t do anything at all.
I think it’s just setting the variable WAYLAND_DISPLAY to onlyoffice-desktopeditors then…

No. That’s why I said “try” :wink:

1 Like

It specifically needs the space. Because that’s telling the shell to un-set the $WAYLAND_DISPLAY environment variable (or to be precise, set it to an empty string. Shorthand for WAYLAND_DISPLAY="".

2 Likes

Thank you!
I get it now. I think my brain is somewhat bruised because I didn’t get it sooner.

The issue should be resolved with onlyoffice-desktopeditors 8.3.1-1.

1 Like

Not completely fixed, at least for me.
The difference now is that I can open onlyoffice-desktopeditors again, but as soon as I select any document to open it in the actual (word-) editor, it crashes again.

GDK_BACKEND=X11 onlyoffice-desktopeditors                      1 ✘ 

(DesktopEditors:115736): Gtk-WARNING **: 12:50:01.473: gtk_disable_setlocale() must be called before gtk_init()
QXcbConnection: XCB error: 8 (BadMatch), sequence: 795, resource id: 14680127, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 811, resource id: 14680127, major code: 130 (Unknown), minor code: 3
zsh: segmentation fault (core dumped)  GDK_BACKEND=X11 onlyoffice-desktopeditors
    ~  GDK_BACKEND=X11 onlyoffice-desktopeditors                   SEGV ✘ 
    ~  WAYLAND_DISPLAY= onlyoffice-desktopeditors                   INT ✘ 

(DesktopEditors:115952): Gtk-WARNING **: 12:50:16.851: gtk_disable_setlocale() must be called before gtk_init()
QXcbConnection: XCB error: 8 (BadMatch), sequence: 771, resource id: 14680127, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 787, resource id: 14680127, major code: 130 (Unknown), minor code: 3
zsh: segmentation fault (core dumped)  WAYLAND_DISPLAY= onlyoffice-desktopeditors
    ~  WAYLAND_DISPLAY= onlyoffice-desktopeditors           SEGV ✘  3s  

(DesktopEditors:116120): Gtk-WARNING **: 12:50:22.466: gtk_disable_setlocale() must be called before gtk_init()
QXcbConnection: XCB error: 8 (BadMatch), sequence: 771, resource id: 14680127, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 787, resource id: 14680127, major code: 130 (Unknown), minor code: 3
zsh: segmentation fault (core dumped)  WAYLAND_DISPLAY= onlyoffice-desktopeditors

Any idea what’s going on here?
Unfortunately, this problem didn’t magically resolve on its own over time :slightly_frowning_face: