Bug 144022 - Calc crashed in Copy & Paste Special
Summary: Calc crashed in Copy & Paste Special
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:7.3.0 target:7.2.1 target:7.1....
Keywords: regression
: 143903 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-08-23 09:45 UTC by Nukool Chompuparn
Modified: 2021-09-01 18:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["ScAttrArray::SetPatternAreaImpl(long,long,ScPatternAttr%20const%20*,bool,ScEditDataArray%20*,bool)"]


Attachments
Sample Calc file for testing with this bug report (58.04 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-08-23 09:46 UTC, Nukool Chompuparn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nukool Chompuparn 2021-08-23 09:45:08 UTC
Description:
In a simple sheet, Calc crashed in Copy & Paste Special

Steps to Reproduce:
1. Several cells have background and font color and bottom border line, please see attached Calc File).
2. Select range A5:B79
3. Right click and select Copy
4. Select cell D5
 6. Right click and select Paste Special
 7. Select Text, Numbers, Date & time, Comments and   Formats
 8. Select Transpose
 9. Click OK
 10. Crashed

Actual Results:
Calc crashed.

Expected Results:
This simple function should not cause crashing.


Reproducible: Always


User Profile Reset: No



Additional Info:
N/A
Comment 1 Nukool Chompuparn 2021-08-23 09:46:15 UTC
Created attachment 174487 [details]
Sample Calc file for testing with this bug report
Comment 2 Mike Kaganski 2021-08-23 10:20:29 UTC
Repro using Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 3 Mike Kaganski 2021-08-23 10:29:30 UTC
https://gerrit.libreoffice.org/c/core/+/120731
Comment 4 Commit Notification 2021-08-23 11:19:58 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/23c1ec0d498124fbe275145d236db455f83cd850

tdf#144022: make sure to create missing columns if needed

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Xisco Faulí 2021-08-23 14:37:12 UTC
*** Bug 143903 has been marked as a duplicate of this bug. ***
Comment 6 Commit Notification 2021-08-23 14:38:59 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/33cc23a3ff69ca7316802545fcbc34d791387e89

tdf#144022: make sure to create missing columns if needed

It will be available in 7.2.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2021-08-23 14:44:16 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/e2100a4f6927d3e441881033cf20d6034719a5fb

tdf#144022: make sure to create missing columns if needed

It will be available in 7.1.7.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Roland Kurmann 2021-08-23 19:20:51 UTC
I came up with the same solution. Now, I saw that it is already committed.

@Mike: Thanks for fixing.
Comment 9 Timur 2021-08-24 06:50:38 UTC
No repro 6.2, repro 6.3, I mark regression. 
Thanks Mike for fixing and Roland for following-up. 
I set Verified.
Comment 10 Xisco Faulí 2021-08-24 07:26:31 UTC
Unittest for this issue added in https://cgit.freedesktop.org/libreoffice/core/commit/?id=39a11e3287febeb9dd56f43da6f6612afeb0f512
Comment 11 Commit Notification 2021-08-24 09:37:38 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7f90260701afdbeae98b18263b299c283d2a2cca

tdf#144022: fix bug id in unittest

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2021-09-01 08:16:11 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-1-6":

https://git.libreoffice.org/core/commit/f6e9a05c3d924ab7579f4831fe03a6293d59962f

tdf#144022: make sure to create missing columns if needed

It will be available in 7.1.6.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 elias estatistics 2021-09-01 18:15:33 UTC
Fixed for me! Thanks. 


Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: d5ade739771ddf06cc7ee6d4af15672bfcf09ed6
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: el-GR (el_GR.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-09-01_02:56:07
Calc: threaded