Bug 132942 - LibreOffice Calc hanging when jumping to last row
Summary: LibreOffice Calc hanging when jumping to last row
Status: RESOLVED 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: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-11 10:17 UTC by Artur
Modified: 2022-12-15 20:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample file on which bug was exhibited (14.98 KB, application/zip)
2020-05-11 10:17 UTC, Artur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artur 2020-05-11 10:17:31 UTC
Created attachment 160654 [details]
Sample file on which bug was exhibited

# Steps to reproduce:
1. Go to any column.
2. Press CTRL+DOWN until you reach the last row.
Issue: LibreOffice hangs once it reaches the last row

# Tested on:
LibreOffice Calc: Version: 6.4.3.2 (x64)
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win;  Locale: en-GB (en_GB); UI-Language: en-GB Calc: threaded

# How I found the bug
I use the hotkey CRTL+DOWN to jump to the last row of data quite a bit, which is just one more button press to jump beyond the last row of data to the last row of the spreadsheet (row 1048575) by mistake. When this happens it causes LibreOffice to hang on the spreadsheet attached. I have been trying to press CTRL+HOME to get back to the first cell in the spreadsheet. Sometimes this works, but usually I have to force quit the whole program and reopen the spreadsheet. 

# More info
As posted on the following "Ask Libreoffice" thread: https://ask.libreoffice.org/en/question/239575/libreoffice-calc-hanging-when-jumping-to-last-row/
Comment 1 Mike Kaganski 2020-05-11 10:33:03 UTC
Repro with Version: 6.4.4.1 (x64)
Build ID: b50bc319eca5cd5b66fbfe2ebd0d3bd1eed099b5
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL.

It only hangs for me if I allow automatic update of external links (a yellow infobar on top of the document).
Comment 2 Artur 2020-05-11 10:38:18 UTC
@Mike Kaganski, thanks for being the first to test! That's worth noting, though I get the bug even without automatic updating of external links. Also, this may be obvious, but it only triggers Windows to report the LibreOffice as having crashed (visible as it blurs out and says [Not Responding] in top bar), when you try interacting with the spreadsheet whun it is on the final row.
Comment 3 m_a_riosv 2020-05-11 20:25:22 UTC
Looking with the navigator there are about 68 copies of 'custom shape 1' draw object, but clicking on some of them goes nowhere.
Comment 4 Mike Kaganski 2020-05-11 21:25:39 UTC
(In reply to m.a.riosv from comment #3)
> Looking with the navigator there are about 68 copies of 'custom shape 1'
> draw object, but clicking on some of them goes nowhere.

Likely related to tdf#117274. OP could possibly resolve the problem by double-clicking each of them then Delete; yet, the performance problem here could be a separate issue worth investigating (?).
Comment 5 m_a_riosv 2020-05-11 22:03:44 UTC
Double also does nothing, apparently.(In reply to Mike Kaganski from comment #4)
> .....
> double-clicking each of them then Delete; yet, the performance problem here
> could be a separate issue worth investigating (?).

Looks the issue what tdf#117274 is about, should be solved with 6.4, if saved with 6.3 issue remains.

But what seems different it's than double also does nothing (https://bugs.documentfoundation.org/show_bug.cgi?id=117274#c37), apparently, and with no delay I can select a cell.

There are also issues with links on xlsx, tdf#76047
Comment 6 Mike Kaganski 2020-05-12 05:20:37 UTC
(In reply to m.a.riosv from comment #5)
> Double also does nothing, apparently.(In reply to Mike Kaganski from comment
> #4)

It does something. Check how *toolbars* change when you double-click an object in Navigator; pressing Delete immediately after double-click deletes the object (and the list decreases one by one).
Comment 7 m_a_riosv 2020-05-12 06:56:48 UTC
(In reply to Mike Kaganski from comment #6)
> (In reply to m.a.riosv from comment #5)
> ....
> the object (and the list decreases one by one).

Forgive, I can see it with:
Version: 6.4.4.1 (x64)
Build ID: b50bc319eca5cd5b66fbfe2ebd0d3bd1eed099b5
CPU threads: 4; OS: Windows 10.0 Build 19608; UI render: GL; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US Calc: CL
and
Version: 7.0.0.0.alpha0+ (x64)
Build ID: 97a2c1fc5e376c0c00968f17a0392c6d3a5ed565
CPU threads: 4; OS: Windows 10.0 Build 19608; UI render: Skia/Raster; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US Calc: threaded
Comment 8 QA Administrators 2022-05-13 03:43:46 UTC Comment hidden (obsolete)
Comment 9 Andreas Heinisch 2022-12-15 20:31:11 UTC
Fixed by https://git.libreoffice.org/core/+/a910703bcbd2d8a767aff3f50185233baf601a32

So no repro in and onwards:
Version: 7.1.8.0.0+ (x64) / LibreOffice Community
Build ID: a94b58277c7aeaa83ce14347cd0b8f7137969d03
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL