Bug 161881 - EDITING: cell copy and cell range copy operations lead to crash on macOS
Summary: EDITING: cell copy and cell range copy operations lead to crash on macOS
Status: RESOLVED DUPLICATE of bug 161461
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/crashes...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-03 12:20 UTC by joel.busch@hotmail.com
Modified: 2024-07-03 17:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description joel.busch@hotmail.com 2024-07-03 12:20:45 UTC
Description:
Hello Calc Team

When copying or cutting cells sometimes LibreOffice Calc crashes on macOS 14.5. I see this happening in the last few weeks, I am now on version 24.2.4.2, but don't know when the last update happened, so maybe some previous minor versions could be affected.

Yesterday I finally systematically tried to eliminate variables: 
- The crash is unrelated to the actual spreadsheet content, it happens even on an empty spreadsheet that hasn't been saved to disk yet in a fresh process. 
- The copied cells can be empty too. 
- There is no pasting required, the copying alone triggers the issue. 
- Cutting and copying behave the same w.r.t. to this crash
- Moving cells with drag crashes in the same way, I assume this is a "cut" under the hood.

The most minimal reproduction steps I could identify:

- Start LibreOffice
- Click File->New->Spreadsheet
- Select A1, copy the cell
- Select B1:C1, copy the cell range
- Select D1, copy the cell

--> Immediately the software crashes. No crash reporter opens, but the Document Recovery dialogue appears and says that LibreOffic crashed. It tells me that Untitled 1 will be recovered.

- The crash happens if I use command+C to copy, but also if I right click and click copy. 
- The crash happens with mouse or with keyboard selection of the cells.
- Copying many single cells into the buffer does not trigger the crash. 
- Copying many cell ranges into the buffer does not trigger the crash.
- Only the order of single cell copy (one or multiple), then cell range copy (one or multiple), then single cell copy triggers it.

I hope someone with an established community reputation has a macOS device and can reproduce. 

Finally here is my detailed version info:

Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 16; OS: macOS 14.5; UI render: Skia/Raster; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

PS: I have first contributed with my reproduction steps to the thread at https://ask.libreoffice.org/t/crashes-in-24-2-4/106728/22. I believe that at least one or two people in that discussion observe the same issue I describe.

Best regards,
Joel Busch
Network Engineer at AS559

Steps to Reproduce:
1. Start LibreOffice
2. Click File->New->Spreadsheet
3. Select A1, copy the cell
4. Select B1:C1, copy the cell range
5. Select D1, copy the cell

Actual Results:
Immediately the software crashes. No crash reporter opens, but the Document Recovery dialogue appears and says that LibreOffic crashed. It tells me that Untitled 1 will be recovered.

Expected Results:
The copy buffer should contain the empty cell D1 and Calc should continue to run.


Reproducible: Always


User Profile Reset: No

Additional Info:
- The crash is unrelated to the actual spreadsheet content, it happens even on an empty spreadsheet that hasn't been saved to disk yet in a fresh process. 
- The copied cells can be empty too and it will still crash. 
- There is no pasting required, the copying alone triggers the issue. 
- Cutting and copying behave the same w.r.t. to this crash
- Moving cells with drag crashes in the same way, I assume this is a "cut" under the hood. 

- The crash happens if I use command+C to copy, but also if I right click and click copy. 
- The crash happens with mouse or with keyboard selection of the cells. 
- Copying many single cells into the buffer does not trigger the crash. 
- Copying many cell ranges into the buffer does not trigger the crash. 
- Only the order of single cell copy (one or multiple), then cell range copy (one or multiple), then single cell copy triggers it.
Comment 1 Stéphane Guillou (stragu) 2024-07-03 12:29:27 UTC
Thanks for the report!
The issue is tracked in bug 161461 and is already fixed (version available in mac app store, and upcoming versions 24.2.5).

*** This bug has been marked as a duplicate of bug 161461 ***
Comment 2 Patrick (volunteer) 2024-07-03 17:32:28 UTC
Update: the fix for this bug is now available.


Mac App Store users
-------------------

If you bought LibreOffice in the Mac App Store, you can get the fix by opening the App Store application on your Mac and selecting the Store > Updates menu item.


LibreOffice download website
----------------------------

If you downloaded LibreOffice directly from the LibreOffice website, LibreOffice 24.2.5.1 (a pre-release that contains the fix) can be download from the folowing TDF website links:

Mac Silicon:
https://www.libreoffice.org/download/download-libreoffice/?type=mac-aarch64&version=24.2.5

Mac Intel:
https://www.libreoffice.org/download/download-libreoffice/?type=mac-x86_64&version=24.2.5