Bug 162835 - EDITING: Crash in Calc when trying to delete cell content with 'Delete' key
Summary: EDITING: Crash in Calc when trying to delete cell content with 'Delete' key
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, haveBacktrace, regression
Depends on:
Blocks: Cell-Edit-Mode
  Show dependency treegraph
 
Reported: 2024-09-07 08:37 UTC by Marc
Modified: 2024-11-21 23:03 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Crash sample (14.59 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-09-08 20:50 UTC, Marc
Details
gdb bt (8.32 KB, text/plain)
2024-09-09 13:37 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 2024-09-07 08:37:58 UTC
Description:
Calc crashes reproducible when I want to edit a cell content with using the 'delete' key (means wanting to delete the character right of the cursor). Maybe an important information is, that my spreadsheet has fixed lines on the top from line 1-4.

Steps to Reproduce:
1.In my calc document, the issue occurs in cell 'V4'. Spreadsheet has fixed cells on top from line 1-4 (means: they don't scroll when scrolling the document).
2.Adding Text like "XY Versicherung" and leaving the cell.
3.Editing this cell and try to delete 'Y' with delete key to enter 'Z' afterwards

Actual Results:
Crash of application

Expected Results:
Deleting character


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no

Crash Report:
https://crashreport.libreoffice.org/stats/crash_details/cc8c721d-d0c3-4a6c-bc7a-c2b3f7c8675d

Unfortunately I cannot disclose my spreadsheet.
Comment 1 Julien Nabet 2024-09-07 08:59:07 UTC Comment hidden (obsolete)
Comment 2 Xisco Faulí 2024-09-07 12:44:59 UTC Comment hidden (obsolete)
Comment 3 Marc 2024-09-08 20:50:37 UTC
Created attachment 196317 [details]
Crash sample

Example for crash when editing cells.
Editing cell V4 will cause the crash. Edit this cell, place the cursor after the "H" of "Haftpflichtkasse" and try to delete the "a" with the delete button.
Comment 4 Xisco Faulí 2024-09-08 23:11:56 UTC
Thanks for providing the sample file

Reproduced in

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 10363c80eb3fd0637d91714fe977de77b43d3aa3
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

and

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 898d5d470e24a55556f2fb244fec24df33ba8855
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 5 ady 2024-09-09 03:45:41 UTC
FWIW, if you expand the width of cell V4 before entering into cell edit mode to delete the "a", there is no crash.

IOW, the current limited width of the cell (or a recalculation of the width of the cell immediately after the deletion of the character) influences the crash.

Please note that the content of the cell includes either a CR or a LF (or both).
Comment 6 Julien Nabet 2024-09-09 13:37:24 UTC
Created attachment 196328 [details]
gdb bt

On pc Debian x86-64 with master sources updated today, I could reproduce this.
Comment 7 Julien Nabet 2024-09-09 19:58:58 UTC
With LO Debian package 24.2.5, I don't reproduce this
=> regression.
Comment 8 Julien Nabet 2024-09-09 20:00:43 UTC
(In reply to Xisco Faulí from comment #4)
> ...
> Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
> Build ID: 898d5d470e24a55556f2fb244fec24df33ba8855
> CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
> Locale: es-ES (es_ES.UTF-8); UI: en-US
> Calc: threaded

Weird I don't reproduce this with 24.2.5 on Debian.
Comment 9 Aryeh 2024-11-21 23:03:35 UTC
Couldn't reproduce in 24.8 on MacOS.
 24a08fcf600f0590972cd9943423dc22c0a2016c is the first bad commit
commit 24a08fcf600f0590972cd9943423dc22c0a2016c (origin/master, master)
Author: libreoffice <libreoffice@libreoffices-MacBook-Air.local>
Date:   Tue Oct 29 03:35:47 2024 +0100

    source f6c9d1012d20541f6373b51ff3c25d8fd7bc8c69
    
    source f6c9d1012d20541f6373b51ff3c25d8fd7bc8c69

 LibreOffice.app/Contents/Frameworks/libvcllo.dylib | Bin 15743184 -> 15743184 bytes
 LibreOffice.app/Contents/Resources/setuprc         |   2 +-
 LibreOffice.app/Contents/Resources/versionrc       |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)