Bug 151145 - Wayland restarts after middle-click on LibreOffice Writer child window title bar
Summary: Wayland restarts after middle-click on LibreOffice Writer child window title bar
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-23 09:10 UTC by long deer
Modified: 2022-09-23 16:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description long deer 2022-09-23 09:10:11 UTC
Description:
When I, for example, open "Insert Table" window, if i middle-click on it's title bar i end up with login window, and after i log to the desktop every apps are closed (like a desktop just restarted). I have gnome-tweaks (which is just updated by 23.09.2022) Titlebar Action for Middle-Click "Minimize".

Steps to Reproduce:
1.Open Writer child window (for example "Table -> Insert Table"
2.Middle click on the title bar (Middle-Click Minimize must be enabled in gnome-tweaks)

Actual Results:
I suppose a child window, which is not supposed to be minimized, should just ignore middle-click minimize command.

Expected Results:
There a little freeze for a second and then Wayland just restarts, means i have to log in and have all recent apps closed.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.6.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 6; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.6-0ubuntu0.22.04.1
Calc: threaded
Comment 1 Timur 2022-09-23 09:56:01 UTC
How was Libreoffice installed? Is it apt or snap package or from debs?
Comment 2 long deer 2022-09-23 10:39:38 UTC
(In reply to Timur from comment #1)
> How was Libreoffice installed? Is it apt or snap package or from debs?

Actually, it came with the distro. As i can see it via dpkg -l i assume it is from debs.
Comment 3 Eike Rathke 2022-09-23 11:52:17 UTC
Thankfully Ubuntu seems to have added the "Ubuntu package version: 1:7.3.6-0ubuntu0.22.04.1" line to About, so it's likely this
https://launchpad.net/ubuntu/+source/libreoffice/1:7.3.6-0ubuntu0.22.04.1

However, Wayland crashing appears more a bug of Wayland to me, an application shouldn't be able to do that.. anyway, it may also be Gnome, which shouldn't be able to do that either. It might be LibreOffice's fault though to allow the minimize action.

I can't reproduce the Wayland crash on Fedora, but minimizing the Insert Table window (which in its menu correctly has Hide(minimize) disabled) that way lets it vanish completely and can't be brought back not even using the usual shortcuts and leaves LibreOffice without UI access so it has to be killed. Same happens with 7.4.1.

Adding Caolán to Cc, maybe he has an idea.
Comment 4 Caolán McNamara 2022-09-23 14:52:01 UTC
I can reproduce a crasn with fedora 36 and wayland and gnome-shell-42.4-1.fc36. But I can also reproduce with evince + open file dialog and attempt to minimize that. So the crash isn't our crash, but some more general one.
Comment 5 Caolán McNamara 2022-09-23 16:03:20 UTC
got a backtrace out of gnome-shell and reported upstream as https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5907