Bug 133737 - Calc hangs/freezes on second sort action
Summary: Calc hangs/freezes on second sort action
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-06 18:11 UTC by PMouse
Modified: 2021-12-22 18:22 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Reproducer File (13.81 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-06-07 17:57 UTC, PMouse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PMouse 2020-06-06 18:11:03 UTC
Description:
When trying to sort rows in a spreadsheet, calc hangs *the second time*.  So, I can sort once, but when I try to sort a second time, it hangs/freezes and must be killed.

Steps to Reproduce:
1. Open csv
2. Save as .ods (optional)
3. Select specific rows
4. Data > Sort > sort by column A and B (works fine)
5. Data > Sort > sort by column C --> hang


Actual Results:
Calc hangs and must be killed.

Expected Results:
should sort like the first time.  I did this exact thing 3 months ago and it worked fine.  Since then, I got 6.4.4.2.  So, it looks like a new bug that was recently introduced.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Okay, so I just check the old .ods file that I mentioned, which was created by doing the exact same procedure on very similar data, and now *that* file also causes Calc to hang on the *first* sort.
Comment 1 Oliver Brinzing 2020-06-07 06:59:50 UTC
Thank you for reporting the bug. 

To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
re-test?

If the problem persists, please attach a sample document, as this makes it easier for us to verify the bug. 
(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.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 PMouse 2020-06-07 17:44:50 UTC
Yeah, I can reproduce in safe-mode.

But, if I delete too much data, it does not reproduce.  So, looks like you will need the data.  I have sanitized the document and can upload it.
Comment 3 Telesto 2020-06-07 17:55:40 UTC
(In reply to PMouse from comment #2)
> Yeah, I can reproduce in safe-mode.
> 
> But, if I delete too much data, it does not reproduce.  So, looks like you
> will need the data.  I have sanitized the document and can upload it.

Please do
Comment 4 PMouse 2020-06-07 17:57:03 UTC
Created attachment 161740 [details]
Reproducer File

This file reproduces the problem, but only columns A&B will not, so it seems like it is related to the data, somehow, or the amount of data.

To reproduce:

1. select the whole sheet
2. Data > Sort
3. Choose to sort all rows by column L
4. Next, go to Data > Sort, again, which hangs.
Comment 5 Xisco Faulí 2020-06-09 12:09:34 UTC
(In reply to PMouse from comment #4)
> Created attachment 161740 [details]
> Reproducer File
> 
> This file reproduces the problem, but only columns A&B will not, so it seems
> like it is related to the data, somehow, or the amount of data.
> 
> To reproduce:
> 
> 1. select the whole sheet
> 2. Data > Sort
> 3. Choose to sort all rows by column L
> 4. Next, go to Data > Sort, again, which hangs.

I can't reproduce it in

Version: 7.1.0.0.alpha0+
Build ID: 8bbd8324282e7890de29ede5912d24c6e1c7ce7f
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Could you please paste the info from Help - about LibreOffice ?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' once the information has been provided
Comment 6 PMouse 2020-06-10 23:29:31 UTC
Is this what you want?

Version: 6.4.4.2
Build ID: 6.4.4.2-2.fc32
CPU threads: 16; OS: Linux 5.7; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.utf8); UI-Language: en-US
Calc: threaded
Comment 7 Abhi 2020-06-29 16:31:52 UTC
Thank you for reporting the bug. I can not reproduce the bug in:
 
Version: 7.1.0.0.alpha0+ (x64)
Build ID: ba33a51ff1eb34a5983870dcb50e975002e6d3a4
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 8 PMouse 2020-06-30 17:25:08 UTC
Can you explain what that means for this bug?  Why did you test alpha?
Comment 9 Buovjaga 2020-08-13 14:46:28 UTC
(In reply to PMouse from comment #8)
> Can you explain what that means for this bug?  Why did you test alpha?

It is useful to test with daily builds to get an indication of the current state. Can you try with a daily master build: https://wiki.documentfoundation.org/Installing_in_parallel/Linux#Automated_installation
or grab one here https://libreoffice.soluzioniopen.com/index.php/daily-version/
Comment 10 PMouse 2020-09-01 00:43:27 UTC
Okay, I also cannot reproduce with the daily.deb->appImage version.

Since I reported this bug, my distro has updated from 6.4.4.4 to 6.4.6.2 and I still have the problem.  FYI.  AFAIK, I will not get access to v7.0 until the next release of my distribution, which will not be before the end of October.  Also, it's not clear that newer versions will ever land on this release, so, unless this bug is fixed in v6.4, it will live on for a at least another year for these users.
Comment 11 QA Administrators 2020-09-01 04:02:14 UTC Comment hidden (obsolete)
Comment 12 Xisco Faulí 2021-11-23 10:53:15 UTC
Hello PMouse,
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 13 PMouse 2021-12-21 21:37:48 UTC
I cannot reproduce the bug with v7.2.4 downloaded from the site and installed locally, not globally.

BTW, how do I uninstall this?  I cannot find any instructions.
Comment 14 QA Administrators 2021-12-22 05:40:54 UTC Comment hidden (obsolete)
Comment 15 Buovjaga 2021-12-22 08:34:22 UTC
(In reply to PMouse from comment #13)
> I cannot reproduce the bug with v7.2.4 downloaded from the site and
> installed locally, not globally.
> 
> BTW, how do I uninstall this?  I cannot find any instructions.

Not sure about the uninstall as I never install like that, but maybe this provides some clues: https://wiki.documentfoundation.org/Documentation/Install/Linux

The request for testing should have pointed to your distro package, however. Which distro are you using and is the bug gone in the latest packaged version?
Comment 16 PMouse 2021-12-22 17:48:35 UTC
(In reply to Buovjaga from comment #15)
> (In reply to PMouse from comment #13)
> > I cannot reproduce the bug with v7.2.4 downloaded from the site and
> > installed locally, not globally.
> > 
> > BTW, how do I uninstall this?  I cannot find any instructions.
> 
> Not sure about the uninstall as I never install like that, but maybe this
> provides some clues:
> https://wiki.documentfoundation.org/Documentation/Install/Linux

Hmm. Thanks, but no.

> The request for testing should have pointed to your distro package, however.
> Which distro are you using and is the bug gone in the latest packaged
> version?

Fedora.  The download gave me many relocatable RPMs.  I just ran the installer script that came with the download, which seemed like it was the preferred installation method.  But, that script doesn't have any uninstall option, and the RPMs were not installed, just unpacked, it seems.  I'm guessing I can just delete the directory where they were installed, but it would be nice to know for sure.

Latest LO packaged for F34 is v7.1.7.2 and it does not exhibit this bug.
Comment 17 PMouse 2021-12-22 17:51:13 UTC
I didn't test LO in F35, which is the latest release, though.
Comment 18 Buovjaga 2021-12-22 17:53:02 UTC
Great to hear, let's close.
Comment 19 PMouse 2021-12-22 18:03:55 UTC
F35 has v7.2.4.1.
...
I was unable to reproduce in 7.2.4.1 on F35, either.
Comment 20 PMouse 2021-12-22 18:07:05 UTC
Hmm, I mean, I guess it doesn't matter, but, I did confirm this bug, exactly as requested.  I think FIXED is clearly a more accurate resolution.
Comment 21 Buovjaga 2021-12-22 18:22:55 UTC
(In reply to PMouse from comment #20)
> Hmm, I mean, I guess it doesn't matter, but, I did confirm this bug, exactly
> as requested.  I think FIXED is clearly a more accurate resolution.

Please see https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/RESOLVED#The_Meaning_of_RESOLVED