<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm somewhat confused why below code crashes (buserror).</div><div><br></div><div>I know I can "fix" this by calling reader.Update( ) or reader.UpdateWholeExtent( ); before engaging the whole pipeline by the viewer, however this is a simplified case of a whole set of big images for which I would not have the memory to hold them all in memory before clipping. And I know I would have to call ClipDataOn() for it to actually easy memory use, but I left it away for simplicity of the minimal use. Also calling clip.Update( ) makes an instance crash (segfault) before the viewer is even setup.</div><div><br></div><div>Below sample works with 6.3.0 tough. Identical C++ control application has the same effect.</div><div>===</div><div><div>from vtk import vtkJPEGReader</div><div>from vtk import vtkImageViewer2</div><div>from vtk import vtkRenderWindowInteractor</div><div>from vtk import vtkImageClip</div><div>from vtk import vtkVersion</div><div><br></div><div>print( vtkVersion.GetVTKSourceVersion( ) )</div><div><br></div><div>reader = vtkJPEGReader( )</div><div>reader.SetFileName( 'test.jpg' )</div><div>reader.UpdateInformation( )</div><div>clip = vtkImageClip( )</div><div>clip.SetInputConnection( reader.GetOutputPort( ) )</div><div>clip.SetOutputWholeExtent( 0, 10, 0, 10, 0, 1 )</div><div>viewer = vtkImageViewer2( )</div><div>viewer.SetInputConnection( clip.GetOutputPort( ) )</div><div>interactor = vtkRenderWindowInteractor( )</div><div>viewer.SetupInteractor( interactor )</div><div>viewer.Render( )</div><div>viewer.GetRenderer( ).ResetCamera( )</div><div>viewer.Render( )</div><div>interactor.Start( )</div></div><div>===</div><div><br></div><div>I really have no idea what causes this.</div><div><br></div><div>Kind regards, Axel</div></div>