Segfault with simple dataset
While debugging another issue I ran into a segfault in PV 5.4.0 (official binaries) with the really simple dataset shown below: 2 points + 1 line + a single scalar value per point. As VTK (from Python) reads the file without warnings and the data makes sense in VTK I assume it is correct (it was hand-written).
The issue in PV is that it loads without warnings, the number of points (2) and cells (1) is correct in the Information tab, but the extent shown is wrong. It shows X/Y/Z ranges of
[0,0] (should be
[0,1]). When I go into the spreadsheet view the point data is correct, i.e. (0,0,0) and (1,1,1). When switching to cell data a segfault occurs. The backtrace points to a null pointer of some sort:
(gdb) bt #0 0x00007fde45c13fbd in ?? () #1 0x0000000000000000 in ?? ()
Here's the .vtk file I used:
# vtk DataFile Version 2.0 Line with scalars ASCII DATASET POLYDATA POINTS 2 float 0.0 0.0 0.0 1.0 1.0 1.0 LINES 1 2 0 1 POINT_DATA 2 SCALARS value float 1 LOOKUP_TABLE default 1.0 1.0