Bug 157079 - Stylist (and app) stops working when switching to list styles
Summary: Stylist (and app) stops working when switching to list styles
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-04 08:14 UTC by Heiko Tietze
Modified: 2023-10-31 16:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast (843.26 KB, image/gif)
2023-09-05 06:51 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2023-09-04 08:14:24 UTC
Switch from paragraph styles to list styles in a new document.

First three items are shown but no more. Switching back does not work, closing the app is not possible.

Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 60(Build:3)
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+wayland)
Locale: de-DE (en_US.UTF-8); UI: en-US
7.6.0-2
Calc: threaded


Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cc7d6211bc01e5ec84dbad542605d2e93dea925c
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

warn:vcl:932498:932498:vcl/unx/generic/gdi/cairotextrender.cxx:476: rendering text failed with stretch ratio of: 10, cairo_restore() without matching cairo_save()
warn:vcl.gdi:932498:932498:vcl/headless/CairoCommon.cxx:1673: cannot render to surface: cairo_restore() without matching cairo_save()
Comment 1 Heiko Tietze 2023-09-04 08:17:22 UTC
Same issue with X11 instead of wayland.
Comment 2 Heiko Tietze 2023-09-04 10:49:36 UTC
Running with VCL=gen and "Use Skia for all rendering" the list is generated without cairo issues (but I cannot read anything).
Comment 3 Stéphane Guillou (stragu) 2023-09-04 15:18:02 UTC
No repro with:

Version: 7.6.1.1 (X86_64) / LibreOffice Community
Build ID: c7cda394c5de06de37d8109c310df89a4d4c3a98
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Nor with kf5 (cairo+wayland).
Comment 4 Heiko Tietze 2023-09-05 06:51:36 UTC
Created attachment 189358 [details]
Screencast
Comment 5 Buovjaga 2023-09-21 16:15:25 UTC
No repro. Please check in Safe Mode.

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 899522378bfb754af757c1a4a0f6bce699ac8721
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 21 September 2023
Comment 6 Heiko Tietze 2023-09-27 04:06:11 UTC
Restart in safe mode, same result

Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (en_US.UTF-8); UI: en-US
7.6.1-1
Calc: threaded
Comment 7 Heiko Tietze 2023-09-27 05:21:50 UTC
Master with debug info spams the console with these warnings

warn:vcl:181350:181350:vcl/unx/generic/gdi/cairotextrender.cxx:479: rendering text failed with stretch ratio of: 10, cairo_restore() without matching cairo_save()
warn:vcl.gdi:181350:181350:vcl/headless/CairoCommon.cxx:899: cannot render to surface: cairo_restore() without matching cairo_save()
warn:vcl.gdi:181350:181350:vcl/headless/CairoCommon.cxx:899: cannot render to surface: cairo_restore() without matching cairo_save()
warn:sw.ui:181350:181350:sw/source/uibase/app/docstyle.cxx:1442: GetItemSetForPreview not implemented for page or number or table style

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c76678bbe9c3f835e0fd3dc2ec2381ec821dd548
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 8 Stéphane Guillou (stragu) 2023-09-27 13:52:20 UTC
Heiko, given that you're the only one seeing it so far, maybe you can bibisect it?
I assume you don't repro in 7.5?
Comment 9 Dieter 2023-10-29 20:19:16 UTC
(In reply to Stéphane Guillou (stragu) from comment #8)
> Heiko, given that you're the only one seeing it so far, maybe you can
> bibisect it?
> I assume you don't repro in 7.5?

=> NEEDINFO
Comment 10 Heiko Tietze 2023-10-30 07:36:10 UTC
I don't know how to bisect. And don't have 7.5 anymore. Running with VCL=gtk3 works flawless.
Comment 11 Buovjaga 2023-10-30 11:27:36 UTC
(In reply to Heiko Tietze from comment #10)
> I don't know how to bisect. And don't have 7.5 anymore. Running with
> VCL=gtk3 works flawless.

https://wiki.documentfoundation.org/QA/Bibisect/Linux

wget --continue https://bibisect.libreoffice.org/linux-64-7.5.git-bundle

git clone -o bundle linux-64-7.5.git-bundle linux-64-7.5
rm ./linux-64-7.5.git-bundle
cd ./linux-64-7.5
git remote remove bundle
git remote add origin https://bibisect.libreoffice.org/linux-64-7.5.git
git pull origin master
git branch --set-upstream-to=origin/master master

git checkout oldest && SAL_USE_VCLPLUGIN=kf5 instdir/program/soffice

Test.

git checkout master && SAL_USE_VCLPLUGIN=kf5 instdir/program/soffice

Test.

Possibly you do not see the problem even in master. In that case you would need to get the repo for 7.6. However, there is a nasty file corruption bug affecting 2 months of commits in 7.6 and Xisco is therefore rebuilding the 7.6 repos for all operating systems. He will announce it on the lists. Meanwhile, you could try with 7.5 anyway.

If you need extra help via screensharing or something, let me know.
Comment 12 Heiko Tietze 2023-10-31 14:27:26 UTC
(In reply to Buovjaga from comment #11)
> Meanwhile, you could try with 7.5 anyway.
Works in oldest and newest. But, I had to setup my system from scratch and now I have no problem with fresh too. 

An idea what could cause the trouble is that I disabled as many fonts as possible (kept just Noto Sans/Serif and some basic). The first entry which wasn't visible (and blocked the interaction) was #4, the checkmark.
Comment 13 Buovjaga 2023-10-31 16:04:25 UTC
(In reply to Heiko Tietze from comment #12)
> (In reply to Buovjaga from comment #11)
> > Meanwhile, you could try with 7.5 anyway.
> Works in oldest and newest. But, I had to setup my system from scratch and
> now I have no problem with fresh too. 
> 
> An idea what could cause the trouble is that I disabled as many fonts as
> possible (kept just Noto Sans/Serif and some basic). The first entry which
> wasn't visible (and blocked the interaction) was #4, the checkmark.

Hmm, so it could have been the amount of fonts or some particular font. Seems a lot of work to find out. Let's close for now. Xisco tells us the Linux 7.6 bibisect repository is now rebuilt and working in case you need it.