Bug 391120

Summary: Crash after inserting top row, then editing cell
Product: [Applications] calligrasheets Reporter: Noel Bennett <theluckyone17>
Component: generalAssignee: Calligra Sheets (KSpread) Bugs <calligra-sheets-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: mecirt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Bug Report generated by drkonqi
The problematic document

Description Noel Bennett 2018-02-26 20:05:31 UTC
Created attachment 111027 [details]
Bug Report generated by drkonqi

Version is 3.0.1.

Event: Segmentation fault
Steps to replicate:
1. Create basic document
2. Select the cells in the top row, columns B through D.
3. Perform a cut operation.
4. Insert a row at the top.
5. Paste the cut cells into the top row, column b.
6. Witness the segmentation fault.
Comment 1 Noel Bennett 2018-02-26 20:06:03 UTC
Created attachment 111028 [details]
The problematic document
Comment 2 Noel Bennett 2018-02-26 20:07:25 UTC
Crashes when cutting & pasting a single cell, in the same manner.
Comment 3 Noel Bennett 2018-02-26 20:14:23 UTC
(In reply to Noel Bennett from comment #2)
> Crashes when cutting & pasting a single cell, in the same manner.

Should mention specifically that the issue lies with:
1. Creating the document.
2. Inserting a row at the top.
3. Paste content into a cell within the new top row, or edit the cell manually and attempt to save it.
Comment 4 Justin Zobel 2022-11-15 22:58:54 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Noel Bennett 2022-11-16 01:52:49 UTC
I was able to replicate the issue, but only when using the original document:
1. Download the problematic document from the attachment.
2. Open the document via Calligra Sheets.
3. Select the cells B2, C2, D2.
4. Cut.
5. Insert a row above Row 1.
6. Click on cell A2
7. Paste.

That said... if I copy the contents of the original document to a new spreadsheet (click on A1, shift click on E12, copy, paste into new document at A1), then save it... and then replicate the steps above, Calligra Sheets does not crash. It appears the attached document has a integral role in the crash.
Comment 6 Noel Bennett 2022-11-16 01:53:28 UTC
This occurred on a fresh installation of versoin 3.2.1
Comment 7 Tomas Mecir 2022-11-16 08:20:20 UTC
Fixed in next version.