Bug 148304 - Using toolbar in Calc to set object line, style, width or colour triggers Assertion `(typeid(*this) == typeid(SfxItemSet)) && "cannot call this on a subclass of SfxItemSet"' failed.
Summary: Using toolbar in Calc to set object line, style, width or colour triggers Ass...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2022-04-01 11:01 UTC by Buovjaga
Modified: 2024-05-18 17:00 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
GDB trace of crash (10.27 KB, text/plain)
2022-04-01 11:01 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2022-04-01 11:01:41 UTC
Created attachment 179252 [details]
GDB trace of crash

1. Open Calc
2. Create a text box (View - Toolbars - Drawing)
3. From the toolbar with the line properties, try to set any property

Arch Linux 64-bit
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 678446780446ae568ee8b1b814158c54ea5e393f
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 1 April 2022
Comment 1 Aron Budea 2022-04-01 23:06:58 UTC
Confirmed using an LO 7.4.0.0.alpha0+ (2fa01ae540e174452bf5cd763c1464cfe37af076) debug build / Ubuntu.
Nevertheless, since the assert doesn't seem to be OS-specific, setting it to All for now.

Assertion:
svl/source/items/itemset.cxx:1256: SfxItemSet SfxItemSet::CloneAsValue(bool, SfxItemPool*) const: Assertion `(typeid(*this) == typeid(SfxItemSet)) && "cannot call this on a subclass of SfxItemSet"' failed.
Comment 2 Regina Henschel 2022-04-07 23:26:28 UTC
I get the same in Writer, when I try to change the font size of the text in the text box via Font Size drop down of the toolbar. In Draw changing font size of text in the text box works.

I use a debug build Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e2ba33336f5dfe989db0c287e3cb0d54e868939c
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: threaded
Comment 3 QA Administrators 2024-04-07 03:14:32 UTC Comment hidden (obsolete)
Comment 4 Julien Nabet 2024-05-18 14:06:34 UTC
On pc Debian x86-64 with master sources updated today (with kf5 or gtk3 rendering), I don't reproduce this.

Could someone give a new try on a recent build from master sources?
Indeed considering recent Armin's work about itemset, thought it may help here.
Comment 5 Buovjaga 2024-05-18 17:00:29 UTC
Yep, gone in a debug build.

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 98142886f21e40d0f7052f18108d9586f4b2fbc5
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded