Bug 143827 - Two Calc crashes when editing a comment box that is half in a frozen row and half not. (text selected)
Summary: Two Calc crashes when editing a comment box that is half in a frozen row and ...
Status: RESOLVED DUPLICATE of bug 149079
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-11 16:23 UTC by Hamish Blair
Modified: 2023-11-23 22:03 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["vcl::unohelper::DragAndDropWrapper::dragGestureRecognized(com::sun::star::datatransfer::dnd::DragGestureEvent const &)"]


Attachments
Example of spreadsheet with comment fields spanning frozen view boundary (10.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-02-09 14:10 UTC, Hamish Blair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hamish Blair 2021-08-11 16:23:07 UTC
Description:
I have twice had a crash in Calc for similar reasons:
https://crashreport.libreoffice.org/stats/crash_details/2d47a7b6-0ae7-46c5-98a9-9dfa30ae018f
and
https://crashreport.libreoffice.org/stats/crash_details/beb94f86-d396-419d-b98e-8072e3e61a98

In both cases I was trying to edit a comment, and the yellow box was half in a frozen row and half in the two rows below. All the text was parallel to the frozen row. I tried selecting a number of characters in the comment, and then changed them. Then Calc crashed. After the first crash I found the text had been changed successfully. In the second instance I did not change anything. 

At the time there was another calc sheet open. Now I have closed that and have been able to edit the comment (still straddling the frozen line) successfully.

Steps to Reproduce:
1. Open two spreadsheets in Calc
2. Make sure that the first row is frozen (i.e. select cell C2, then View->Freeze Rows and Columns)
3. In a cell that has a comment, e.g. in the second or third row, e.g. AD2 (first crash) or C3 (second crash), try editing it.
4. Edit the comment

Actual Results:
Crash 1: https://crashreport.libreoffice.org/stats/crash_details/2d47a7b6-0ae7-46c5-98a9-9dfa30ae018f

Crash 2: https://crashreport.libreoffice.org/stats/crash_details/beb94f86-d396-419d-b98e-8072e3e61a98

When Calc doesn't crash, the text cursor does not appear in the comment box, but when typing and moving the invisible cursor with the arrow keys, things seem to work as expected.

Expected Results:
I would expect the text cursor to appear at the beginning of the text box.


Reproducible: Sometimes


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded
Comment 1 Xisco Faulí 2021-08-11 17:05:59 UTC
I can't reproduce it in

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 6e53e03f752c2f85283c4d47efaaf0683299783c
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 QA Administrators 2022-02-08 03:50:47 UTC Comment hidden (obsolete)
Comment 3 Hamish Blair 2022-02-09 14:10:05 UTC
Created attachment 178169 [details]
Example of spreadsheet with comment fields spanning frozen view boundary

As requested I am attaching an example spreadsheet. This no longer seems to crash on version 7.2.5.2 (x64) / LibreOffice Community (https://git.libreoffice.org/core/+log/499f9727c189e6ef3471021d6132d4c694f357e5) but it is bizarre trying to edit a comment when you can't see what you're doing. Try scrolling right so that column C is not visible then edit one of the comments in column A.  In Cell A3 I tried adding characters after the first 3, but the only one that was saved was the last one (a period/full-stop).
Comment 4 Buovjaga 2022-12-08 12:59:25 UTC
Per the last comment, the crash no longer occurred. For the crash signature, I see 7.3 in the latest stats, but no 7.4.
Comment 5 Stéphane Guillou (stragu) 2023-11-23 22:03:26 UTC
Crash signature last seen in 7.3.3.2
Corresponding crash signature for Linux is vcl::unohelper::DragAndDropWrapper::dragGestureRecognized(com::sun::star::datatransfer::dnd::DragGestureEvent const&), also last seen in 7.3.3.2.
Linux signature seen in bug 149079, matches the version fixed. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 149079 ***