Bug 143521 - Crash of LibreOffice under Wayland when changing font size
Summary: Crash of LibreOffice under Wayland when changing font size
Status: RESOLVED DUPLICATE of bug 143135
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: wantBacktrace
Depends on:
Blocks: Wayland KDE, KF5
  Show dependency treegraph
 
Reported: 2021-07-23 18:43 UTC by dennis.bayrock
Modified: 2021-07-28 11:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
GDB output for Impress under Wayland (10.84 MB, text/x-log)
2021-07-27 00:16 UTC, dennis.bayrock
Details
System OS and environment info (8.25 KB, text/plain)
2021-07-27 17:25 UTC, dennis.bayrock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dennis.bayrock 2021-07-23 18:43:23 UTC
Description:
Changing font size in a text box in Impress immediately crashes LO when using Wayland. No crashes occur when using X11.

Steps to Reproduce:
1. Open Impress when using Wayland
2. Click on Insert text box
3. Type any text in text box
4. Select any characters in text box
5. Right click and select character
6. Increase font size
7. Click OK

Actual Results:
LO crashes every time font size is changed when using Wayland. Under X, no crashes occur

Expected Results:
LO should have displayed the new font size of the selected text in the text box


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: kf5
Locale: en-US (en_US.utf8); UI: en-US
Gentoo official package
Calc: threaded
Comment 1 dennis.bayrock 2021-07-23 18:45:20 UTC
Linux OS used is Gentoo. All software compiled from source with default and recommended use flags from Gentoo.
Comment 2 dennis.bayrock 2021-07-23 18:58:29 UTC
Operating System: Gentoo Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.4-x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-5960X CPU @ 3.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Radeon RX 590 Series
Comment 3 dennis.bayrock 2021-07-23 19:01:22 UTC
Operating System: Gentoo Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.4-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-5960X CPU @ 3.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Radeon RX 590 Series
Comment 4 Julien Nabet 2021-07-24 07:35:18 UTC
On pc Debian x86-64 with master sources updated today + kf5 rendering, I don't reproduce this.

Dennis: would it be possible you retrieve a stacktrace by following this link https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace ?

Michael: I thought I had noted how to enable Wayland but I didn't :-(
I've enabled kf5 rendering with "SAL_USE_VCLPLUGIN=kf5" but I just got:
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 77a192aa016279acc0b0f9df584d1ce31bde41a4
CPU threads: 12; OS: Linux 5.10; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 5 Michael Weghorn 2021-07-26 04:59:58 UTC
(In reply to Julien Nabet from comment #4)
> Michael: I thought I had noted how to enable Wayland but I didn't :-(
> I've enabled kf5 rendering with "SAL_USE_VCLPLUGIN=kf5" but I just got:
> Version: 7.3.0.0.alpha0+ / LibreOffice Community
> Build ID: 77a192aa016279acc0b0f9df584d1ce31bde41a4
> CPU threads: 12; OS: Linux 5.10; UI render: default; VCL: kf5 (cairo+xcb)
> Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
> Calc: threaded

If I want to try Wayland, I switch to a (Plasma) Wayland session by selecting that for the login in the display manager (in my case: SDDM), then it's used automatically (needs the corresponding components installed, e.g. packages "kwin-wayland", "plasma-workspace-wayland",... on Debian).

If you want to test with X11 backend in a Wayland session, you can just set environment variable 'QT_QPA_PLATFORM=xcb' in which case XWayland is used, but it doesn't work the other way around.

For running an application on Wayland inside an X11 session, I have made these notes some time ago, but I'm not using that because it didn't really work well (at least back then):

> Potentially helpful blog post by Martin Flöser: "Porting Qt applications to
> Wayland": <https://blog.martin-graesslin.com/blog/2015/07/porting-qt-applications-to-wayland/>
>
> * run application in Weston (on Wayland) from inside X11 session
> 
>     * s. above blog post
> 
>     * running `kwin_wayland --xwayland` works (needs package
>       `kwin-wayland-backend-x11` to be installed) or `weston`, as described in
>       above blog post
> 
>     * and then starting e.g. `konsole` using `XDG_SESSION_TYPE=wayland konsole`
>       will bring that to the `kwin_wayland` or `weston` window,
>       but it looks quite odd and doesnt't behave the same as in a Plasma Wayland
>       session
Comment 6 Julien Nabet 2021-07-26 07:41:56 UTC
(In reply to Michael Weghorn from comment #5)
> (In reply to Julien Nabet from comment #4)
> > Michael: I thought I had noted how to enable Wayland but I didn't :-(
> > I've enabled kf5 rendering with "SAL_USE_VCLPLUGIN=kf5" but I just got:
> > Version: 7.3.0.0.alpha0+ / LibreOffice Community
> > Build ID: 77a192aa016279acc0b0f9df584d1ce31bde41a4
> > CPU threads: 12; OS: Linux 5.10; UI render: default; VCL: kf5 (cairo+xcb)
> > Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
> > Calc: threaded
> 
> If I want to try Wayland, I switch to a (Plasma) Wayland session by
> selecting that for the login in the display manager (in my case: SDDM), then
> it's used automatically (needs the corresponding components installed, e.g.
> packages "kwin-wayland", "plasma-workspace-wayland",... on Debian).
...
Thank you for the detailed feedback.
I've given it a try and it's installed quite a lot of packages.
However, I haven't reproduced this (I noticed I still didn't see "Plasma" in LO info, I don't know if it's expected) so I've uninstalled them.
Do you reproduce this?
Comment 7 dennis.bayrock 2021-07-27 00:16:26 UTC
Created attachment 173870 [details]
GDB output for Impress under Wayland

Hi There! Just installed and attached the GDB output for this bug. I had to kill Impress manually as it was unresponsive after I changed the font size
Comment 8 QA Administrators 2021-07-27 03:36:04 UTC Comment hidden (obsolete)
Comment 9 dennis.bayrock 2021-07-27 17:25:58 UTC
Created attachment 173890 [details]
System OS and environment info

Included System OS and environment. You may not need this but I thought I's include it anyways :>
Comment 10 Michael Weghorn 2021-07-28 11:47:28 UTC
(In reply to Julien Nabet from comment #6)
> However, I haven't reproduced this (I noticed I still didn't see "Plasma" in
> LO info, I don't know if it's expected) ...

Related info in "About" -> "LibreOffice" is "VCL: kf5 (cairo+wayland)" when running kf5 on Wayland. (There's no separate "plasma" VCL plugin.

> Do you reproduce this?

Yes, I could reproduce. The backtrace is the same as that in bug 143135, so this appears to be the same problem.

Therefore, closing as a duplicate of bug 143135.

*** This bug has been marked as a duplicate of bug 143135 ***