[vtkusers] weird vtkXMLMultiBlockDataWriter segfaults in binary mode

Tanaka Simon tanakas at gmx.ch
Fri Oct 31 19:48:38 EDT 2014


Hello VTK users and developers,

I attached a simple program which segfaults. please also have a look at 
the comments in the code.

i want to:
1) write a vtkMultiBlockDataSet to a file
2) load it
3) add some more Blocks
4) write it again

it only segfaults if the writers are set to binary mode, and only if the 
data exceeds a certain size. in ascii mode, everything is fine.


this might be related:
http://www.paraview.org/Bug/print_bug_page.php?bug_id=13294


can you confirm that behaviour? what am i doing wrong? and if it is a 
bug, how can i work around?

thank you very much
simon
-------------- next part --------------

cmake_minimum_required(VERSION 2.8)

PROJECT(vtk_weird_segfault)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

add_executable(vtk_weird_segfault MACOSX_BUNDLE vtk_weird_segfault)

if(VTK_LIBRARIES)
  target_link_libraries(vtk_weird_segfault ${VTK_LIBRARIES})
else()
  target_link_libraries(vtk_weird_segfault vtkHybrid vtkWidgets)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_weird_segfault.cxx
Type: text/x-c++src
Size: 3342 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141101/279fa696/attachment-0001.cxx>


More information about the vtkusers mailing list