Bug 1731

Summary: CSV import: hangup if non-numeric data are present in the file
Product: PulseView Reporter: Eugene Muzychenko <reg.sigrok>
Component: File handlingAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: 0.5.0   
Target Milestone: ---   
Hardware: x86   
OS: Windows   
Attachments: CSV file example, non-numeric data in the second line

Description Eugene Muzychenko 2021-09-02 10:11:04 CEST
Created attachment 747 [details]
CSV file example, non-numeric data in the second line


If I try to import a CSV file containing non-numeric data (for example, exported from Rigol DS-1102E oscilloscope), PulseView hangs.

Steps to reproduce:

Add a non-numeric line to the CSV file anywhere after the header (I tried only analog formats, like the attached example).

Actual results:

PulseView hangs indefinitely (see the screenshot).

Expected results:

An error message is expected, with at least a line number.

Versions affected:

0.4.2 release, 0.5.0-git-3ce5dd9 nighty build.