Bug 493850 - Calligra Sheets crashes trying to save documents with custom style
Summary: Calligra Sheets crashes trying to save documents with custom style
Status: REPORTED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: 4.0.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-29 21:52 UTC by Rune
Modified: 2024-10-10 22:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Backtrace (3.70 KB, text/plain)
2024-10-08 14:57 UTC, Rune
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rune 2024-09-29 21:52:13 UTC
SUMMARY
Sheets crashes when I try to save a document in which I changed the document background color in the default style. The style does not save the background color change, kn next open it is back to default.

STEPS TO REPRODUCE
1. open a document in sheets
2. change the background color
3. save

OBSERVED RESULT
Sheets crashes and does not remember the changed style.

EXPECTED RESULT
The document is saved and the change to the default style is remembered.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 6.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2024-10-05 03:00:46 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Thanks!
Comment 2 Rune 2024-10-08 14:57:56 UTC
Created attachment 174533 [details]
Backtrace
Comment 3 Justin Zobel 2024-10-08 22:28:43 UTC
Could you please install debug symbols and attach a new symbolicated backtrace. In the backtrace you're missing Qt and Calligra debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Arch_Linux about using debuginfod to get the symbols required.
Comment 4 Rune 2024-10-10 12:20:05 UTC
This here is all that I can get:

Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/calligrasheets'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000076285eca23db in pthread_kill () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x762856fe0ec0 (LWP 4633))]

It seems that Arch Linux does not provide debug symbols for calligrasheets. Is there another way for me to help?
Comment 5 Rune 2024-10-10 19:30:08 UTC
I installed Fedora 40 in a QEMU VM and got the backtrace.

#0  QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<Calligra::Sheets::Style::Key, Calligra::Sheets::SharedSubStyle, std::less<Calligra::Sheets::Style::Key>, std::allocator<std::pair<Calligra::Sheets::Style::Key const, Calligra::Sheets::SharedSubStyle> > > > >::operator bool (this=<error reading variable: Cannot access memory at address 0x8>)
    at /usr/include/qt6/QtCore/qshareddata_impl.h:117

warning: Source file is more recent than executable.
117	    constexpr explicit operator bool() const noexcept { return d; }
[Current thread is 1 (Thread 0x7f6f66805000 (LWP 3805))]