Description: When one clicks File > New > Presentation Libreoffice crashes on FreeBSD with Sway (a Wayland compositor) with the following stack trace: ➜ libreoffice qt.qpa.wayland: Wayland does not support QWindow::requestActivate() qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x810421e80) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x81047a0a0) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents Fatal exception: Signal 6 Stack: /usr/local/lib/libreoffice/program/libuno_sal.so.3+0x61b03(osl_unloadUserProfile+0x5e3)[0x8002a6b03] /usr/local/lib/libreoffice/program/libuno_sal.so.3+0x619ef(osl_unloadUserProfile+0x4cf)[0x8002a69ef] /lib/libthr.so.3+0x1a58e(pthread_sigmask+0x54e)[0x8003b458e] /lib/libthr.so.3+0x19b3f(pthread_setschedparam+0x82f)[0x8003b3b3f] [0x7ffffffff8a3] /lib/libc.so.7+0x161109(abort+0x49)[0x800529109] /lib/libcxxrt.so.1+0xee69(__cxa_rethrow+0x1d9)[0x8008d4e69] /usr/local/lib/libreoffice/program/libfwklo.so+0x13894e(com_sun_star_comp_framework_AutoRecovery_get_implementation+0x47de)[0x8015a794e] /usr/local/lib/libreoffice/program/libfwklo.so+0x135f46(com_sun_star_comp_framework_AutoRecovery_get_implementation+0x1dd6)[0x8015a4f46] /usr/local/lib/libreoffice/program/libsvxlo.so+0x1b83d6(_ZTSN3com3sun4star7gallery21XGalleryThemeProviderE+0x67d5f)[0x8021fc3d6] /usr/local/lib/libreoffice/program/libsvxlo.so+0x1b9bd1(_ZTSN3com3sun4star7gallery21XGalleryThemeProviderE+0x6955a)[0x8021fdbd1] /usr/local/lib/libreoffice/program/libsvxlo.so+0x1c02ed(com_sun_star_comp_svx_RecoveryUI_get_implementation+0x46d)[0x8022042ed] /usr/local/lib/libreoffice/program/libsvxlo.so+0x1c0a52(com_sun_star_comp_svx_RecoveryUI_get_implementation+0xbd2)[0x802204a52] /usr/local/lib/libreoffice/program/libsofficeapp.so+0x4df8f(_ZTSN3com3sun4star12datatransfer13XTransferableE+0x16a3c)[0x800309f8f] /usr/local/lib/libreoffice/program/libsofficeapp.so+0x4db29(_ZTSN3com3sun4star12datatransfer13XTransferableE+0x165d6)[0x800309b29] /usr/local/lib/libreoffice/program/libvcllo.so+0x999415(_Z6SVMainv+0x105)[0x804199415] /usr/local/lib/libreoffice/program/libuno_sal.so.3+0x2f6b9(osl_getGlobalMutex+0xa9)[0x8002746b9] /usr/local/lib/libreoffice/program/libuno_sal.so.3+0x6175d(osl_unloadUserProfile+0x23d)[0x8002a675d] /lib/libthr.so.3+0x1a58e(pthread_sigmask+0x54e)[0x8003b458e] /lib/libthr.so.3+0x19b3f(pthread_setschedparam+0x82f)[0x8003b3b3f] [0x7ffffffff8a3] /lib/libc.so.7+0x161109(abort+0x49)[0x800529109] /usr/local/lib/libreoffice/program/libvcllo.so+0x588ffb(_ZN10SkiaHelper4dumpERK5sk_spI9SkSurfaceEPKc+0xd2b)[0x803d88ffb] /usr/local/lib/libreoffice/program/libvclplug_qt5lo.so+0x8371c(_ZN10QtInstance9ImplYieldEbb+0x3c)[0x8087ab71c] /usr/local/lib/libreoffice/program/libvclplug_qt5lo.so+0x85a5a(_ZN10QtInstance7DoYieldEbb+0xea)[0x8087ada5a] /usr/local/lib/libreoffice/program/libvcllo.so+0x990d35(_ZN11Application5YieldEv+0x45)[0x804190d35] /usr/local/lib/libreoffice/program/libvcllo.so+0x990c7e(_ZN11Application7ExecuteEv+0x15e)[0x804190c7e] /usr/local/lib/libreoffice/program/libsofficeapp.so+0x502c3(_ZTSN3com3sun4star12datatransfer13XTransferableE+0x18d70)[0x80030c2c3] /usr/local/lib/libreoffice/program/libvcllo.so+0x997f0e(_Z10ImplSVMainv+0x8e)[0x804197f0e] /usr/local/lib/libreoffice/program/libsofficeapp.so+0x7ca7a(soffice_main+0xfa)[0x800338a7a] /usr/local/lib/libreoffice/program/soffice.bin+0x1950[0x201950] /usr/local/lib/libreoffice/program/soffice.bin+0x1750[0x201750] [0x800226008] ~ took 15s Steps to Reproduce: 1. Open Libreoffice 2. Click File > New > Presentation 3. Libreoffice should have crashed Actual Results: crashes Expected Results: Opens a new Presentation Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.4.2.3 / LibreOffice Community Build ID: 40(Build:3) CPU threads: 4; OS: FreeBSD 13.1; UI render: default; VCL: qt5 (cairo+wayland) Locale: en-US (C.UTF-8); UI: en-US Calc: threaded
(In reply to Leon Dietrich from comment #0) > Additional Info: > Version: 7.4.2.3 / LibreOffice Community > Build ID: 40(Build:3) > CPU threads: 4; OS: FreeBSD 13.1; UI render: default; VCL: qt5 > (cairo+wayland) > Locale: en-US (C.UTF-8); UI: en-US > Calc: threaded I notice you have qt5 as the UI. It is not recommended for production. Can you try launching with SAL_USE_VCLPLUGIN=gen libreoffice to see if it makes a difference?
As of now I'm running LibreOffice 7.5.0.3 50(Build:3). On this version the bug does not occur anymore. I just did a package rollback to version 7.4.4.2 (the oldest version I can roll back to, yet it is still a newer version than back then) and the issue is still reproducible on that version and your suggested work around seams to deal with it. As a consequence I think this issue has been silently fixed.
Great to hear, let's close