The Text Delimiter setting of a CSV file is remembered when opening different CSV files.
When opening a large CSV file using a different Text Delimiter than that which is currently stored, LibreOffice tries to load the entire CSV file into a single cell for display in the Text Import dialogue. This operation can take a very long time on large CSV files.
Steps to reproduce:
1) Open a CSV file that uses the following Text Delimiter: '
2) Close LibreOffice
3) Open a large CSV file that uses the following Text Delimiter: "
LibreOffice takes a very long time to open, and when the Text Import dialogue is finally displayed it has the entire CSV file in cell A1.
Hi.. Please attach sample files to test & specify in which OS - LO version problem occured.
Then change status back to UNCONFIRMED
Created attachment 104636 [details]
This file is contrived to demonstrate the issue as I cannot upload the real company file with a similar issue.
Open a previous CSV file with the Field Separator as a comma and the Text Delimiter as a single quote. Then try to open this file. LibreOffice get stuck and must be killed. Tested on LibreOffice 4.2 on Kubuntu Linux.
(In reply to comment #2)
> Open a previous CSV file with the Field Separator as a comma and the Text
> Delimiter as a single quote. Then try to open this file. LibreOffice get
> stuck and must be killed. Tested on LibreOffice 4.2 on Kubuntu Linux.
Thanks for providing the test file. I simply opened the provided attachment under GNU/Linux with Calc and on the Text Import dialog changed the Text delimiter from " to ' (default delimiter selections were Tab, Comma, and Semicolon). It then took several minutes to return with soffice.bin running at ~100% CPU and when it eventually did the preview showed only a single row of data. Same problem under:
- v126.96.36.199 Build ID: 40ff705089295be5be0aae9b15123f687c05b0a
- v188.8.131.52 Build ID: 185f2ce4dcc34af9bd97dec29e6d42c39557298f
- v184.108.40.206 Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0
- v220.127.116.11.alpha0+ Build ID: e379401618268ed7f7f5885a36b90e1f4f6cd4af TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-08-18_05:51:03
Under v18.104.22.168 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b the change from " to ' is instant and the preview appears as expected.
Confirmed. Status set to NEW. Version set to 22.214.171.124 (but may date from earlier). "PossibleRegression" tag added to Whiteboard.
Thanks for testing Owen!
Although I'm not getting unexpected delays with the file supplied by Dotan Cohen.
I've included a tweaked example of my problematic file that is doing the same sort of thing.
I open my file and I can see that htop is showing that 1 CPU core hits 102%. When it loads and I tick the Comma Separated Option, it separates nicely, untick that and it locks up again until it displays everything in a single row (actually it's two rows, the header row and then a 'data row').
My files are being imported as UTF8, and I have tried with both CR/LF and LF line endings.
Build ID: 430m0(Build:1)
Installed from the LibreOffice PPA on Ubuntu 14.04.1 (also getting a similar effect with the default Trusty version (4.2.7)
Created attachment 110278 [details]
Another problematic file
Attached file mentioned in my previous post. Originally a 25k line file, but it was too big to attach. This 10k line file has the same issues.
Migrating Whiteboard tags to Keywords: (possibleRegression)
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present on a currently supported version of LibreOffice
(5.1.6 or 5.2.3 https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the version of LibreOffice and
your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave
a short comment that includes your version of LibreOffice and Operating System
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to "inherited from OOo";
4b. If the bug was not present in 3.3 - add "regression" to keyword
Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
For both attached files, the import dialog opens instantly and the file is imported instantly. For the first file, I did the "different from last delimiter" steps. Closing.
Arch Linux 64-bit
Build ID: c2cb467a1e5194c56bb65706b7965fb2c9241b8f
CPU threads: 8; OS: Linux 5.1; UI render: default; VCL: gtk3;
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Built on 29 June 2019