You are not logged in.

#1 2024-05-24 14:26:34

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 94

Libreoffice crashes with GTK4 enabled

When I try to run LibreOffice with GTK4 GUI I get this:

 env SAL_USE_VCLPLUGIN=gtk4 soffice
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp -Dswing.boldMetal=false -Dswing.metalTheme=ocean
Gtk-Message: 16:18:44.776: GtkDialog mapped without a transient parent. This is discouraged.

(soffice:3839): Gtk-CRITICAL **: 16:18:47.202: gtk_accessible_get_accessible_parent: assertion 'GTK_IS_ACCESSIBLE (self)' failed

(soffice:3839): Gtk-CRITICAL **: 16:18:47.202: gtk_accessible_get_at_context: assertion 'GTK_IS_ACCESSIBLE (self)' failed
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'


Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f8b7)[0x7f406593c8b7]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3fab4)[0x7f406593cab4]
/usr/lib/libc.so.6(+0x3cae0)[0x7f4065633ae0]
/usr/lib/libc.so.6(+0x94e44)[0x7f406568be44]
/usr/lib/libc.so.6(gsignal+0x20)[0x7f4065633a30]
/usr/lib/libc.so.6(abort+0xdf)[0x7f406561b4c3]
/usr/lib/libstdc++.so.6(+0x97b0c)[0x7f4065297b0c]
/usr/lib/libstdc++.so.6(+0xadf1a)[0x7f40652adf1a]
/usr/lib/libstdc++.so.6(_ZSt10unexpectedv+0x0)[0x7f406529750a]
/usr/lib/libstdc++.so.6(+0x97527)[0x7f4065297527]
/usr/lib/libreoffice/program/libfwklo.so(+0x4d77c)[0x7f406464d77c]
/usr/lib/libreoffice/program/libfwklo.so(+0xa87f7)[0x7f40646a87f7]
/usr/lib/libreoffice/program/libsvxlo.so(+0x115c16)[0x7f4063715c16]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x360a9)[0x7f40658440a9]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x36338)[0x7f4065844338]
/usr/lib/libreoffice/program/libvcllo.so(+0x59010d)[0x7f4061d9010d]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f9f2)[0x7f406593c9f2]
/usr/lib/libc.so.6(+0x3cae0)[0x7f4065633ae0]
/usr/lib/libgtk-4.so.1(+0x30ed31)[0x7f405b10ed31]
/usr/lib/libgtk-4.so.1(+0x4fc80c)[0x7f405b2fc80c]
/usr/lib/libgtk-4.so.1(+0x310d53)[0x7f405b110d53]
/usr/lib/libgtk-4.so.1(+0x31bcae)[0x7f405b11bcae]
/usr/lib/libgio-2.0.so.0(+0xa60ec)[0x7f405ea670ec]
/usr/lib/libgio-2.0.so.0(+0xaa385)[0x7f405ea6b385]
/usr/lib/libgio-2.0.so.0(+0x1079b3)[0x7f405eac89b3]
/usr/lib/libgio-2.0.so.0(+0xa60ec)[0x7f405ea670ec]
/usr/lib/libgio-2.0.so.0(+0xa6135)[0x7f405ea67135]
/usr/lib/libglib-2.0.so.0(+0x5ca89)[0x7f405e8cfa89]
/usr/lib/libglib-2.0.so.0(+0xbe9b7)[0x7f405e9319b7]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x35)[0x7f405e8cef95]
/usr/lib/libreoffice/program/libvclplug_gtk4lo.so(+0x7a5e5)[0x7f405bae25e5]
/usr/lib/libreoffice/program/libvcllo.so(+0x57fa4f)[0x7f4061d7fa4f]
/usr/lib/libreoffice/program/libvcllo.so(_ZN11Application7ExecuteEv+0x86)[0x7f4061d7fc36]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x3b8f6)[0x7f40658498f6]
/usr/lib/libreoffice/program/libvcllo.so(_Z10ImplSVMainv+0x3e2)[0x7f4061d95b62]
/usr/lib/libreoffice/program/libsofficeapp.so(soffice_main+0x148)[0x7f4065866e88]
/usr/lib/libreoffice/program/soffice.bin(+0x1039)[0x6014e8f48039]
/usr/lib/libc.so.6(+0x25c88)[0x7f406561cc88]
/usr/lib/libc.so.6(__libc_start_main+0x8c)[0x7f406561cd4c]
/usr/lib/libreoffice/program/soffice.bin(+0x1075)[0x6014e8f48075]

Other toolkits work fine. Tested with GTK3, Qt5, Qt6  and generic. Only GTK4 doesn't work. Is this an actual bug or am I just missing something?

Offline

#2 2024-05-24 15:34:30

seth
Member
Registered: 2012-09-03
Posts: 56,527

Re: Libreoffice crashes with GTK4 enabled

Does

NO_AT_BRIDGE=1 SAL_USE_VCLPLUGIN=gtk4 soffice

work?
(It aborts and ther output complains about a "bogus" dialog and then the a11y throws a tan… an exception over what looks related to the dialog situation)

Offline

#3 2024-05-25 18:41:11

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 94

Re: Libreoffice crashes with GTK4 enabled

No, it doesn't. Ends up with the same kind of crash.

Offline

#4 2024-05-26 08:25:14

seth
Member
Registered: 2012-09-03
Posts: 56,527

Re: Libreoffice crashes with GTK4 enabled

Is this on a wayland or X11 session? And does it make a difference?

SAL_ACCESSIBILITY_ENABLED=0 NO_AT_BRIDGE=1 SAL_USE_VCLPLUGIN=gtk4 soffice

Does

SAL_USE_VCLPLUGIN=gtk4 soffice -writer

work (assuming the cause is the startup dialog)

Offline

#5 2024-05-26 17:14:11

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 94

Re: Libreoffice crashes with GTK4 enabled

seth wrote:
SAL_USE_VCLPLUGIN=gtk4 soffice -writer

This one works. There must be something wrong with the startup dialog. I'm on Openbox, X11 session.

Offline

#6 2024-05-26 17:36:17

seth
Member
Registered: 2012-09-03
Posts: 56,527

Re: Libreoffice crashes with GTK4 enabled

1. GtkDialog mapped without a transient parent. This is discouraged.
2. gtk_accessible_get_accessible_parent: assertion 'GTK_IS_ACCESSIBLE (self)' failed
3. gtk_accessible_get_at_context: assertion 'GTK_IS_ACCESSIBLE (self)' failed

1. LO lauches a dialog, using GtkDialog on the gtk backends
2. gtk (*likely*) complains that it cannot query whether the (nonexistent) parent of that dialog "is accessible"
3. the (otherwise harmless?) assertion likely causes an exception to be thrown
4. LO aborts

What I don't get is why skipping the a11y code doesn't work, but you'll have to file a bug against LO about that.

Offline

Board footer

Powered by FluxBB