Bug 75486 - Scalc crashes while deleting rows with auto filter
Summary: Scalc crashes while deleting rows with auto filter
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.1.1 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 09:10 UTC by Ray123
Modified: 2017-03-04 10:26 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
csv-file to bug75486 (2.86 MB, application/zip)
2014-02-26 10:15 UTC, Ray123
Details
screen shots for the csv-problem (969.92 KB, application/x-zip-compressed)
2014-02-26 14:44 UTC, Ray123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ray123 2014-02-25 09:10:58 UTC

    
Comment 1 Ray123 2014-02-25 09:12:38 UTC
if i sort rows with the auto filter function and want to delete the sorted rows, the programs crashes with the error message: bad allocation. I tested this with Win7 64bit and LO 4.2.1.1 german version
Comment 2 sophie 2014-02-25 16:52:12 UTC
Can you provide the document or a document with which we can reproduce the crash you encounter. I can not reproduce:
- I fill two columns with data
- apply autofilter 
- delete the data in the second column
=> no crash.
Set as needinfo - Sophie
Comment 3 Ray123 2014-02-26 10:15:41 UTC
Created attachment 94761 [details]
csv-file to bug75486

zip-file contains only the large csv-file causing the crash
Comment 4 sophie 2014-02-26 10:29:05 UTC
Hi, thanks for the document. Still I can not reproduce with Version: 4.2.1.1
Build ID: d7dbbd7842e6a58b0f521599204e827654e1fb8b Ubuntu 13.10 x64.
Set back to unconfirmed - Sophie
Comment 5 Ray123 2014-02-26 14:42:42 UTC
I tried again and made screenshots. Please look the pics in the zip file. The error occured after i pressed right mouse button and choosed delete rows. the program worked for a while and then the error message appears.
Comment 6 Ray123 2014-02-26 14:44:20 UTC
Created attachment 94769 [details]
screen shots for the csv-problem
Comment 7 Ray123 2014-03-07 06:33:43 UTC
is there any interest to solve this problem? I have a large ods-file but can not upload it because the size is about 8MByte. The files includes autofilter settings with a large amount of selected rows. Deletung this rows needs about hours....
Thanks for answer
Comment 8 Julien Nabet 2014-03-15 07:14:17 UTC
The file is quite big since it's 40MB.
Did you check memory consumption during your actions?

I gave a try with 4.2 sources updated some days ago (with debug mode) but it's quite long to open it and still more to just save in ods file.
Comment 9 Ray123 2014-03-17 08:25:07 UTC
A file with 40Mb is not very large nowadays, the computer i work with has Win7 64Bit and 8GByte RAM, only LO running. I think not that it is a RAM-problem, i think it is a problem in the LO-code.
Comment 10 Kevin Suo 2014-06-16 15:03:17 UTC
@Ray123:
I do not reproduce the crash in Ubuntu 14.04, libreoffice 4.2.5.2. (My RAM is only 1GB. Althrough it took some time to load the file and process the delete operation, finally it succeeded with no error message)
Maybe you can try the latest libreoffice version?
Comment 11 Kevin Suo 2014-06-16 15:07:23 UTC
@Ray123:
Also for the test, would you please try to reset your user profile to see if it works?

For the location of your libreoffice user profile, see this wiki page:
https://wiki.documentfoundation.org/UserProfile

I set this to NEEDINFO. Once you have tested the reset-user-profile, make your comment here and put it back to UNCONFIRMED
Comment 12 Ray123 2014-06-17 12:05:43 UTC
i will do this but it need some days because i am actaully not in office but on a business trip. I try to test this all next week. thanks so far.
Comment 13 Ray123 2014-07-18 05:14:11 UTC
I checked this again with a smaller file but big enough anyway with LO 4.2.5.2 and it is working without crash, but still very slow, sorting and deleting need long time :(
Comment 14 Eike Rathke 2014-10-10 18:14:32 UTC
So this is actually not a crash, but a performance problem, yes? The program did not crash, correct?
Comment 15 Jean-Baptiste Faure 2014-10-12 09:06:09 UTC
Please, could you confirm that the scenario to reproduce the crash is the following:
1/ open the csv file using semicolon as separator
2/ add autofilter : menu Data > Filter > AutoFilter
3/ go to column V, with the autofilter dropdown uncheck all but ERR and EWE
4/ click the first visible cell : A4
5/ ctrl+shift+End
6/ press Delete key.
7 wait

I get a crash with version 4.3.4.0.0+ under Ubuntu 14.04 x86-64 with 4 GB of RAM.

Set status to NEEDINFO. Please set it back to UNCONFIRMED once you have provided requested informations. Thank you for your understanding.

Best regards. JBF
Comment 16 Jean-Baptiste Faure 2014-10-12 09:20:50 UTC
Same crash with the master
Version: 4.4.0.0.alpha0+
Build ID: 6ba7f47de32074895b830e1ef3682fa1d0d1b6be

Best regards. JBF
Comment 17 Ray123 2014-10-13 05:29:43 UTC
(In reply to Eike Rathke from comment #14)
> So this is actually not a crash, but a performance problem, yes? The program
> did not crash, correct?

Its both, often crash and always very very slow, sometimes the action need about one hour with a core i5 cpu and 8GB Ram.
Comment 18 Eike Rathke 2014-10-13 16:23:18 UTC
So, the Fatal Error in the screenshot indicates a crash. I tried to reproduce in master 4.4

1. load .csv with ; semicolon as separator
2. apply AutoFilter on first row
3. in column V (header "Hk") select only "ERR" and "EWE", hit OK
4. select A2:AMJ203409 (whole data range except header row) similar as indicated in "deleting rows.jpg" by using the Name Box (takes veeery looong time)
5. delete rows (takes looong time)

but no crash. After the operation completed there were 201096 rows of data.
Will try also in 4.3, and maybe non-/selection of row 1 makes a difference, i.e. entire data range including headers vs. data only excluding headers.
Comment 19 Eike Rathke 2014-10-14 10:18:38 UTC
I tried with current 4-3 and 4-2 builds but could not reproduce a crash.
Comment 20 Jean-Baptiste Faure 2014-10-14 10:37:31 UTC
(In reply to Eike Rathke from comment #19)
> I tried with current 4-3 and 4-2 builds but could not reproduce a crash.

Ok, could we say that the crash I reported is caused by a run out of memory? I have only 4 GB of RAM on my PC.

Best regards. JBF
Comment 21 Eike Rathke 2014-10-15 12:45:38 UTC
Ok, got it, that's the difference:
I, delete entire rows, get no crash.
You, select only data range and press delete key that does not delete the rows but only the selected content, get a crash, I can reproduce.
Loads of memory are comsumed, started to use swap here, all together 8-9GB
The original reporter used the delete rows method though..
Comment 22 QA Administrators 2015-12-20 16:13:41 UTC Comment hidden (obsolete)
Comment 23 Jean-Baptiste Faure 2016-01-05 06:03:15 UTC
Reproducing scenario from comment #15 still crashing with LibreOffice 5.1.0.1.0+
Build ID: f284ec139beb920486e8351f9e758966969349ab
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; 
Ubuntu_15.10_x86-64
Locale : fr-FR (fr_FR.UTF-8)

Best regards. JBF
Comment 24 Xisco Faulí 2017-02-27 10:37:48 UTC
(In reply to Jean-Baptiste Faure from comment #23)
> Reproducing scenario from comment #15 still crashing with LibreOffice
> 5.1.0.1.0+
> Build ID: f284ec139beb920486e8351f9e758966969349ab
> CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; 
> Ubuntu_15.10_x86-64
> Locale : fr-FR (fr_FR.UTF-8)
> 
> Best regards. JBF

I can't reproduce it in

Version: 5.4.0.0.alpha0+
Build ID: e9e6228533b336317aa809a7aaaa4fd1c338d4f7
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

Could you please try again with the latest version?
Comment 25 Ray123 2017-02-28 07:32:03 UTC
I tested it again with LO 5.1.3.2, it works, no crash but the performance of LO with this file is very poor although the CPU shows only 25% duty and the used memory is only about 2GB of the 8GB memory during the deletion of the rows. LO works about 30 minutes.
Comment 26 Julien Nabet 2017-02-28 08:06:07 UTC
Let's put this one to WFM since there's no more crash.
Perf issue is another problem.
Comment 27 Jean-Baptiste Faure 2017-03-04 10:26:49 UTC
No crash for me with LO 5.3.2.0.0+ under Ubuntu 16.04 x86-64 with 4Go of RAM.
Performance seems correct for my 5 years old i7 computer.

Best regards. JBF