https://bugs.documentfoundation.org/show_bug.cgi?id=165658

            Bug ID: 165658
           Summary: Data Provider: freeze when unable to import CSV file
           Product: LibreOffice
           Version: 25.8.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 199713
  --> https://bugs.documentfoundation.org/attachment.cgi?id=199713&action=edit
CSV file where the freeze happens

When the Data Provider fails to import a CSV file, it freezes instead of
showing an error message to the user.

Steps to reproduce:
1) Open the Data Provider dialog
2) Select CSV in "Data Format"
3) Click "Browse" and select the file attached to this bug
4) Click "Apply"
5) Freeze

Note that in the terminal, we get the following exception:

terminate called after throwing an instance of 'orcus::parse_error'
  what():  expected a delimiter (offset=9)

We should be able to detect such exceptions and show an error message to the
user instead of letting Calc freeze.

Note 1: This file is generated by a Time Study app used in industrial
applications.

Note 2: This CSV file is valid; it should not have caused any freeze in the
first place. I guess it is because of the quotes used in strings.

System info

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 81cbe4a2cb19dd2b552d83772075267cc64c3f01
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to