Created attachment 183258 [details] Test ODS 1. Open test ODS 2. Select A4-A6 3. Edit-Select-Select Unprotected Cells 4. Ctrl+C 5. Ctrl+V in the same or other cell 6. LO crash Select Unprotected Cells in work can be clicked in mistake, wanting to select visible cells.
Reproduced in Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: f3a82a8ba51195cf31b0f78164735acc7ebbcd2f CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: es-ES (es_ES.UTF-8); UI: en-US Calc: threaded
Also reproducible in Version: 6.0.0.0.alpha1+ Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9 CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3; Locale: es-ES (es_ES.UTF-8); Calc: group threaded
Crash Report ID for 7.5.0.0 on WIN10
For unknown Reasons the Crash Report for 7.5 did not become visible at https://crashreport.libreoffice.org/ So I replaced the report ID by one created with 7.3.3.2 Crash reason: "EXCEPTION_ACCESS_VIOLATION_READ"
Rainer's crash report: https://crashreport.libreoffice.org/stats/crash_details/f4d27ff3-9520-48c5-a9df-f98c57e02a51 In LO 7.6, it hangs at step 4 (copying step), with high CPU usage and a loop of: warn:legacy.osl:63279:63279:sc/source/core/data/document.cxx:4240: Wrong sheet number
Created attachment 189429 [details] gdb bt On pc Debian x86-64 with master sources updated today, I could reproduce this. I attached bt with some console logs.
Just for information, I could reproduce from a brand new ods file without typing anything. After having done step 4, I got also these messages: warn:legacy.osl:10425:10425:sc/source/ui/app/transobj.cxx:157: no sheet selected warn:legacy.osl:10425:10425:sc/source/core/data/documen3.cxx:1990: GetMMRect: wrong table
I gave a try with https://gerrit.libreoffice.org/c/core/+/156754 but am really not sure it's the right to fix this. Also, as indicated in the description, once we call Edit-Select-Select Unprotected Cells, copy doesn't work anymore.
With linux-64-releases bibisect repo, it already freezes at libreoffice-6.0.0.0.alpha1, when the feature was first available, on simpler steps (thanks Julien): 1. Open Calc 2. Edit > Select > Select Unprotected Cells 4. Ctrl+C 5. Ctrl+V So I'm assuming it's an implementation error. Gülşah, can you please have a look?
(In reply to Julien Nabet from comment #8) > I gave a try with https://gerrit.libreoffice.org/c/core/+/156754 > but am really not sure it's the right to fix this. > Also, as indicated in the description, once we call Edit-Select-Select > Unprotected Cells, copy doesn't work anymore. Patch abandoned since no feedback + I'm not confident enough and wouldn't like to bring some regression.
Fix is posted at: https://gerrit.libreoffice.org/c/core/+/162032
Matt K committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/59927dedc31eb5d51b417a02ae927eb578b90bd6 tdf#151752 Fix crash when selecting unprotected cells and copy/pasting It will be available in 24.8.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.
Matt K committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/a381ac7b0fa95ce340bd1b384c946fbd19d87393 tdf#151752 Fix crash when selecting unprotected cells and copy/pasting It will be available in 24.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.
Crash is fixed, thanks. Looking at this, I see the following: - Select A4-A6 - Edit-Select-Select Unprotected Cells Select Unprotected Cells from bug 95883 was meant to select all such cells in a sheet (to delete), prior select does not work, we cannot select in a range. MSO can do it only via code or manual selection or Find-Format-Locked or add-on. - Select A4-A6 - Edit-Select-Select Visible Rows -Select Visible Rows works for rows, not select in a range. MSO can select with a shortcut or Find-Special-Visible or Select Visible Cells command or add-on. There is a difference if pasted consecutively or in original positions. I did not find, will open enhancements.
Matt K committed a patch related to this issue. It has been pushed to "libreoffice-7-6": https://git.libreoffice.org/core/commit/ebf6a4ae1746002ede4b7920dad317015f802e32 tdf#151752 Fix crash when selecting unprotected cells and copy/pasting It will be available in 7.6.5. 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.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3467777fa93205b935fbe150a61e03b7b94dffc1 tdf#151752: sc_uicalc: Add unittest It will be available in 24.8.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.
Matt K committed a patch related to this issue. It has been pushed to "libreoffice-24-2-0": https://git.libreoffice.org/core/commit/51233ec34207c8be256d8d75800fa3ca495c5ca4 tdf#151752 Fix crash when selecting unprotected cells and copy/pasting It will be available in 24.2.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.