Heap corruption when vtkTables are deleted but view remains
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Summary: The spreadsheet view used to for vtkTable objects (vtkQtTableView? and/or pqSpreadSheetViewModel.cxx) is not well behaved when the vtktable is deleted.
A debug build suggests the heap is corrupted.
Steps to reproduce:
- Open a csv file, the attached file on Windows debug build of 3.14.1 appears to reliably demonstrate the problem.
The table will load and the table's contents will be displayed. 2. Delete the table (or select Edit Menu>Delete All).
Result: The spreadsheet is still shown. But the original column names are still shown!
- Play with the table e.g. resize the column names and scroll -
When the view is repainted the column names change to "BUG" (defined in ./Qt/Core/pqSpreadSheetViewModel.cxx)
- In debug builds, later when creating new objects Paraview will break inside the system implementation of 'new', suggesting heap corruption.
I'm marking this bug as a crash on the presumption that the system break inside heap allocation and the "BUG" are sufficient indicators of a heap corruption and invalid memory access.
Best, Lawrence.