Bug 154091 - Character Style Switch from "Colour" to "None" in "Highlighting" tag lets crash LibreOffice
Summary: Character Style Switch from "Colour" to "None" in "Highlighting" tag lets cra...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2023-03-09 10:18 UTC by Harald Berger
Modified: 2024-01-29 02:31 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer ODT only one word (10.89 KB, application/vnd.oasis.opendocument.text)
2023-03-09 10:26 UTC, Harald Berger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Berger 2023-03-09 10:18:48 UTC
Description:
In Writer
Character Style: LibODialog
Switch in the tab "Highlighting" from "Colour" to "None" makes LibreOffice crashed.


Steps to Reproduce:
1.Open Writer
2.write a word
3.mark the word
4.choose a Character Style from "Colour" to "None" makes LibreOffice crashed

Actual Results:
LibreOffice crashed

Expected Results:
The desired command will be executed: "None" colour for Character Style Highlihting tab.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
Comment 1 Harald Berger 2023-03-09 10:26:10 UTC
Created attachment 185856 [details]
Writer ODT only one word

ODT file contains one word for testing.
Change in Character Stylee, tab Highlight from "Colour" to "none" leads to crash.
Comment 2 Julien Nabet 2023-03-10 08:14:15 UTC
Harald: I noticed you assigned yourself, do you confirm you're debugging this and will try to fix the pb yourself?
Comment 3 Xisco Faulí 2023-03-10 10:48:17 UTC
I can't reproduce it in

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 1; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Harard, could you please record a screencast and attach it here to clearly see how you reproduce this issue ?
Comment 4 Stéphane Guillou (stragu) 2023-03-10 21:27:06 UTC
Reporter can't set own bug to "new", setting back to unconfirmed. Not reproduced on Linux with 7.5.1.2.
Comment 5 Buovjaga 2023-03-30 11:34:10 UTC
Edited the style as mentioned, but no crash

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 002f941ec20e594e9702c39fab9cf9f4cc392dab
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2023-03-30 12:05:01 UTC
Harald contacted me in private about unstable versions. You can use Win-x86_64@tb77-TDF from https://dev-builds.libreoffice.org/daily/master/current.html
Comment 7 Harald Berger 2023-03-30 14:41:36 UTC
7.6.0.0.alpha0; also chrashed,
Procedure:
Directory "4" removed, LibO installed, opened test file, Character template LibODialog "Edit template" selected,
tab "Highlighting" - click button "Without" then LibreOffice chrashed.
---
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 002f941ec20e594e9702c39fab9cf9f4cc392dab
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
---
Prozessor: Intel(R) Core(TM) ¡7-2600 CPU @ 3.40GHz 3.40 GHz
Installierter RAM: 16,0 GB 
Systemtyp: 64-Bit-Betriebssystem, x64-basierter Prozessor
---
Grafikkarte NVIDIA GeForce GTX 560
---
Sreencast-YouTube:
https://youtu.be/nMQV3B6DwjI
Comment 8 Buovjaga 2023-03-30 14:45:08 UTC
(In reply to Harald Berger from comment #7)
> 7.6.0.0.alpha0; also chrashed,
> Procedure:
> Directory "4" removed, LibO installed, opened test file, Character template

Small note: there was no need to remove the user profile. The master build uses a separate profile.
Comment 9 Stéphane Guillou (stragu) 2023-05-10 23:28:43 UTC
Harald, any chance you could provide a backtrace with WinDbg by following these steps?
https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg
Comment 10 Harald Berger 2023-05-11 08:42:17 UTC
(In reply to Stéphane Guillou (stragu) from comment #9)
> Harald, any chance you could provide a backtrace with WinDbg by following
> these steps?
> https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

thank you for your request. I am someone who is happy to help.
I have also looked at the page from the link. I think I could translate this page into German from time to time. But to carry it out, seems to me at the moment not possible. Sorry, maybe another time. And thanks for your great work.
Comment 11 Xisco Faulí 2023-09-11 12:41:58 UTC
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 12 Harald Berger 2023-09-11 16:42:05 UTC
Response to Comment 11
Request from Xisco dated 11.09.2023 via e-mail
---------------------------------------------------------

I have been using LibreOffice 7.6.0.3 since it was released.
Before my tests, I reset the user profile ("4 old").

Right away, the bug is still there.

I have extended my tests a bit more, and found that the problem is
occurs with character styles, as well as with paragraph styles, frames (area), text fields (area) and also in Draw.
It also doesn't matter if the Color, Image or other button was previously selected.
Always when clicking on -None- LibreOffice crashes.

Due to the many possibilities for a crash, it is probably to be assumed that the error happens at a central place, which is passed through by the above mentioned processes.
Comment 13 Julien Nabet 2023-09-11 16:47:11 UTC
I put it back to UNCONFIRMED since someone else must confirm.
Comment 14 Harald Berger 2023-09-11 16:49:26 UTC
Thanks
Comment 16 Buovjaga 2023-09-24 06:21:30 UTC
(In reply to L Duperval from comment #15)
> https://vento.so/view/a018e762-1594-4080-962b-b97a4a8e41bd?utm_medium=share

Video is about area properties, not character styles.

By the way, it is best to also comment a bit when sharing such a link. I already banned you as a spammer and tagged your comment as spam, before I realised you are not a spammer after all.
Comment 17 BogdanB 2023-10-28 07:46:47 UTC
I am testing this bug to see if I can reproduce on Linux.

No repro in
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6fc8a48691bfa011c8b09e560196c5d3b98fdb76
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

No repro in
Version: 7.6.1.0.0+ (X86_64) / LibreOffice Community
Build ID: 8e5534b478efe4f383f214b9ab41fd3383e98296
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

Aslo not in
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0c4913e03e8427a576138601958f2dbf13b8c37b
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

But it seems it's just a Windows. And very hard to reproduce. Something is specific there.
Comment 18 Philip Jackson 2023-10-30 14:29:41 UTC
I can confirm that I have also experienced this problem on Windows 10 Pro 22H2 using LO v 7.5.5.2

This is what happens:

I was checking to see what the options were in Format > page style > Area tab.
Initially, this tab shows 'None'. When I click on any other button, (Color, Gradient, Image ...) I see the set of options available. When I then click on any other button Writer falls over and the application closes down.
I can restart and recover the file ok. Then I retry using a different button to start with - I get the options displayed correctly. I click any other button (including 'None') (without first clicking cancel) and Writer crashes again.
I've repeated this many times and Writer falls over every time a second button is clicked on the Area tab.
This doesn't happen on my linux box.

What I expect to happen: 

When any button is clicked in the Page Style Area tab, I expect to see the corresponding set of options. If I then click a different button, I expect to see the corresponding options for this button displayed.
There should be no need to click 'Cancel' before passing to another set of options.
Comment 19 V Stuart Foote 2023-10-30 15:35:37 UTC
Can not confirm with STR for Character highlight or color, or Paragraph or Frame Area fills.

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

(In reply to Harald Berger from comment #12)
> Response to Comment 11
> Request from Xisco dated 11.09.2023 via e-mail
> ---------------------------------------------------------
> 
> I have been using LibreOffice 7.6.0.3 since it was released.
> Before my tests, I reset the user profile ("4 old").
> 
> Right away, the bug is still there.
> 
> I have extended my tests a bit more, and found that the problem is
> occurs with character styles, as well as with paragraph styles, frames
> (area), text fields (area) and also in Draw.
> It also doesn't matter if the Color, Image or other button was previously
> selected.
> Always when clicking on -None- LibreOffice crashes.
> 
> Due to the many possibilities for a crash, it is probably to be assumed that
> the error happens at a central place, which is passed through by the above
> mentioned processes.
Comment 20 Luigi Gorgone 2023-12-01 15:03:53 UTC
No repro Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: it-IT
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: threaded
Comment 21 f.pignal 2024-01-12 10:16:57 UTC
Same behavior observed as in 
show_bug.cgi?id=154091 – bugs.documentfoundation.org
Description, Steps to Reproduce, Actual Results, Expected Result, Reproducible: : same as in #c0 ( Harald Berger 2023-03-09 10:18:48 UTC )

User Profile Reset: No 
(in #c0 - Harald Berger 2023-03-09 10:18:48 UTC : Yes)

Additional Info: 
Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: ?; OS: Windows 10 Build 19044.1526
Locale: fr-FR (de_DE); UI: fr-FR
Comment 22 Harald Berger 2024-01-12 10:55:34 UTC
The error is no longer present in LibreOffice version 24.2.
I would like to thank everyone who has contributed to fixing the error.👍🏻

-----
With me:
Version: 24.2.0.1.0+ (X86_64) / LibreOffice Community
Build ID: 958089803917f46c81ca818b791c846c072f6fca
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
Comment 23 Buovjaga 2024-01-12 11:04:57 UTC
That's a relief to hear! Let's close.
Comment 24 f.pignal 2024-01-12 12:39:22 UTC
(In reply to Harald Berger from comment #22)
> The error is no longer present in LibreOffice version 24.2.
> I would like to thank everyone who has contributed to fixing the error.👍🏻
> 
> -----
> With me:
> Version: 24.2.0.1.0+ (X86_64) / LibreOffice Community
> Build ID: 958089803917f46c81ca818b791c846c072f6fca
> CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL:
> win
> Locale: de-DE (de_DE); UI: de-DE
> Calc: CL threaded

What is THIS 24.2 version ? (last found/ proposed on WEB page https://www.libreoffice.org/download/download-libreoffice/ are 7.5.9/ 7.6.4)
Comment 25 Buovjaga 2024-01-12 12:50:49 UTC
(In reply to f.pignal from comment #24)
> (In reply to Harald Berger from comment #22)
> > The error is no longer present in LibreOffice version 24.2.
> > I would like to thank everyone who has contributed to fixing the error.👍🏻
> > 
> > -----
> > With me:
> > Version: 24.2.0.1.0+ (X86_64) / LibreOffice Community
> > Build ID: 958089803917f46c81ca818b791c846c072f6fca
> > CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL:
> > win
> > Locale: de-DE (de_DE); UI: de-DE
> > Calc: CL threaded
> 
> What is THIS 24.2 version ? (last found/ proposed on WEB page
> https://www.libreoffice.org/download/download-libreoffice/ are 7.5.9/ 7.6.4)

https://www.libreoffice.org/download/pre-releases/

or if you just want to quickly test, easier to download a daily build of master, Win-x86_64@tb77-TDF https://dev-builds.libreoffice.org/daily/master/current.html It won't overwrite your stable.
Comment 26 f.pignal 2024-01-13 10:07:19 UTC
(In reply to Buovjaga from comment #25)
> (In reply to f.pignal from comment #24)
> > (In reply to Harald Berger from comment #22)
> [...]
> if you just want to quickly test, easier to download a daily build of
> master, Win-x86_64@tb77-TDF
> https://dev-builds.libreoffice.org/daily/master/current.html It won't
> overwrite your stable.

Thank you for having responded : the 2nd proposition helped me enought to workaround and wait the bug correction in a future stable/ release version