Bug 161664 - [CRASH] Assert fails when changing object area fill with the color tool in Impress
Summary: [CRASH] Assert fails when changing object area fill with the color tool in Im...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
: 162105 (view as bug list)
Depends on:
Blocks: Color-Picker-Widget Crash-Assert
  Show dependency treegraph
 
Reported: 2024-06-19 17:44 UTC by Rafael Lima
Modified: 2024-07-22 07:25 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Callstack by VS (8.89 KB, text/plain)
2024-06-21 19:27 UTC, Regina Henschel
Details
gdb bt (11.43 KB, text/plain)
2024-06-22 09:23 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2024-06-19 17:44:22 UTC
In Impress and Draw, changing the background color using the Color tool (from the toolbar or from the Properties sidebar) will crash LO.

Steps to reproduce
1) Open Impress or Draw
2) Insert a simple shape
3) Change its background color using the color tool (in the toolbar or sidebar)
4) Crash

It works fine if you right-click and go to Area to change the background color.

On the terminal I'm getting:

warn:svl:25358:25358:svl/source/items/poolitem.cxx:554: comparing different pool item subclasses 14XFillColorItem && 14XFillColorItem
soffice.bin: /home/rafael/Programming/libreoffice/svl/source/items/poolitem.cxx:557: virtual bool SfxPoolItem::operator==(const SfxPoolItem&) const: Assertion `rCmp.ItemType() == ItemType() && "comparing different pool item subclasses"' failed.

System info

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6b2aaaa6be71b1289521bd2ffd2d4abacecabb87
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 m_a_riosv 2024-06-20 01:11:10 UTC
I can't reproduce
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3909a1186cf423105c30c91136f131daf66e18c6
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 2 Stéphane Guillou (stragu) 2024-06-21 14:22:22 UTC
No crash with:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 151d997365f7bf271d63af535d29a9c3439c6d46
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Nor with:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 151d997365f7bf271d63af535d29a9c3439c6d46
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Is that a debug build, Rafael?
Comment 3 Rafael Lima 2024-06-21 14:30:23 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Is that a debug build, Rafael?

Yeah... it is a debug build.

I'll update my repo and build again... if the crash persists, I'll attach a backtrace. It is possible that the crash only happens with the debug build
Comment 4 Stéphane Guillou (stragu) 2024-06-21 14:40:50 UTC
Reproduced in latest daily debug build:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 151d997365f7bf271d63af535d29a9c3439c6d46
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded
Comment 5 Regina Henschel 2024-06-21 19:27:19 UTC
Created attachment 194900 [details]
Callstack by VS

I see the same problem with line color drop-line list from toolbar.
Draw a line, open the drop-down, select color -> assert fails.

I have used a clean debug-build from today master.
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a820696263e62ffc7ebe0a9f6d51bec2e1354926
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 22631); UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded
Comment 6 Regina Henschel 2024-06-21 19:33:19 UTC
It happens too for the color drop-down list in the properties part in the Sidebar.

It does not happen, using the color drop-down list in the style dialog when creating a new style.
Comment 7 Julien Nabet 2024-06-22 09:23:45 UTC
Created attachment 194907 [details]
gdb bt

On pc Debian x86-64 with master sources updated yesterday, I got an assertion.
Comment 8 Julien Nabet 2024-06-22 09:24:25 UTC
Armin: seeing poolitem, thought you might be interested in this one.
Comment 9 Heiko Tietze 2024-07-22 07:25:52 UTC
*** Bug 162105 has been marked as a duplicate of this bug. ***