Page MenuHomePhabricator

Crash after reinit
Closed, ResolvedPublic

Description

3M3 1_1 release candidate crashes:

  1. Load image via dicom browser
  2. Close Display tab
  3. Right click image in DataManager and press reinit
  4. Crash

Event Timeline

Fixed the summary: it crashes after reinit, not global reinit.

Valgrind info:

[330.470] [mapper.vr] initializing hardware-accelerated renderer
[330.580] [mapper.vr] initializing hardware-accelerated renderer

27267== Invalid read of size 8

27267== at 0x11310C81: vtkOpenGLExtensionManager::ReadOpenGLExtensions() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310612: vtkOpenGLExtensionManager::Update() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310476: vtkOpenGLExtensionManager::ExtensionSupported(char const*) (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x8CFC019: vtkMitkOpenGLVolumeTextureMapper3D::Initialize(vtkRenderer*) (vtkMitkOpenGLVolumeTextureMapper3D.cpp:2253)

27267== by 0x8CFBF26: vtkMitkOpenGLVolumeTextureMapper3D::IsRenderSupported(vtkVolumeProperty*, vtkRenderer*) (vtkMitkOpenGLVolumeTextureMapper3D.cpp:2222)

27267== by 0x8D0AC36: mitk::GPUVolumeMapper3D::InitGPU(mitk::BaseRenderer*) (mitkGPUVolumeMapper3D.cpp:112)

27267== by 0x8D0B999: mitk::GPUVolumeMapper3D::GenerateData(mitk::BaseRenderer*) (mitkGPUVolumeMapper3D.cpp:237)

27267== by 0x7B5E372: mitk::Mapper::Update(mitk::BaseRenderer*) (mitkMapper.cpp:150)

27267== by 0x7B7976D: mitk::VtkPropRenderer::Update(mitk::DataNode*) (mitkVtkPropRenderer.cpp:377)

27267== by 0x7B7989B: mitk::VtkPropRenderer::Update() (mitkVtkPropRenderer.cpp:395)

27267== by 0x7B79A0E: mitk::VtkPropRenderer::Resize(int, int) (mitkVtkPropRenderer.cpp:433)

27267== by 0x7B843FC: mitk::RenderWindowBase::resizeMitkEvent(int, int) (mitkRenderWindowBase.cpp:146)

27267== Address 0x204cbc48 is 56 bytes inside a block of size 72 free'd

27267== at 0x4C26DCF: operator delete(void*) (vg_replace_malloc.c:387)

27267== by 0xEF8C7A4: vtkObject::UnRegisterInternal(vtkObjectBase*, int) (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkCommon.so.5.6.0)

27267== by 0x1132F412: vtkOpenGLRenderWindow::SetExtensionManager(vtkOpenGLExtensionManager*) (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x1133273D: vtkOpenGLRenderWindow::OpenGLInit() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11373CCC: vtkXOpenGLRenderWindow::Start() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11279555: vtkRenderWindow::DoStereoRender() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x112799B0: vtkRenderWindow::DoFDRender() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x1127AC70: vtkRenderWindow::DoAARender() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11279ACA: vtkRenderWindow::Render() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11374C6F: vtkXOpenGLRenderWindow::Render() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x1131116C: vtkOpenGLExtensionManager::ReadOpenGLExtensions() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310612: vtkOpenGLExtensionManager::Update() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267

27267== Invalid read of size 8

27267== at 0x11310C85: vtkOpenGLExtensionManager::ReadOpenGLExtensions() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310612: vtkOpenGLExtensionManager::Update() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310476: vtkOpenGLExtensionManager::ExtensionSupported(char const*) (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x8CFC019: vtkMitkOpenGLVolumeTextureMapper3D::Initialize(vtkRenderer*) (vtkMitkOpenGLVolumeTextureMapper3D.cpp:2253)

27267== by 0x8CFBF26: vtkMitkOpenGLVolumeTextureMapper3D::IsRenderSupported(vtkVolumeProperty*, vtkRenderer*) (vtkMitkOpenGLVolumeTextureMapper3D.cpp:2222)

27267== by 0x8D0AC36: mitk::GPUVolumeMapper3D::InitGPU(mitk::BaseRenderer*) (mitkGPUVolumeMapper3D.cpp:112)

27267== by 0x8D0B999: mitk::GPUVolumeMapper3D::GenerateData(mitk::BaseRenderer*) (mitkGPUVolumeMapper3D.cpp:237)

27267== by 0x7B5E372: mitk::Mapper::Update(mitk::BaseRenderer*) (mitkMapper.cpp:150)

27267== by 0x7B7976D: mitk::VtkPropRenderer::Update(mitk::DataNode*) (mitkVtkPropRenderer.cpp:377)

27267== by 0x7B7989B: mitk::VtkPropRenderer::Update() (mitkVtkPropRenderer.cpp:395)

27267== by 0x7B79A0E: mitk::VtkPropRenderer::Resize(int, int) (mitkVtkPropRenderer.cpp:433)

27267== by 0x7B843FC: mitk::RenderWindowBase::resizeMitkEvent(int, int) (mitkRenderWindowBase.cpp:146)

27267== Address 0x0 is not stack'd, malloc'd or (recently) free'd

27267

27267

27267== Process terminating with default action of signal 11 (SIGSEGV)

27267== Access not within mapped region at address 0x0

27267== at 0x11310C85: vtkOpenGLExtensionManager::ReadOpenGLExtensions() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310612: vtkOpenGLExtensionManager::Update() (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x11310476: vtkOpenGLExtensionManager::ExtensionSupported(char const*) (in /opt/toolkits/linux64/ubuntu-10.04/vtk-5.6.0-Release-qt4-psql/lib/vtk-5.6/libvtkRendering.so.5.6.0)

27267== by 0x8CFC019: vtkMitkOpenGLVolumeTextureMapper3D::Initialize(vtkRenderer*) (vtkMitkOpenGLVolumeTextureMapper3D.cpp:2253)

27267== by 0x8CFBF26: vtkMitkOpenGLVolumeTextureMapper3D::IsRenderSupported(vtkVolumeProperty*, vtkRenderer*) (vtkMitkOpenGLVolumeTextureMapper3D.cpp:2222)

27267== by 0x8D0AC36: mitk::GPUVolumeMapper3D::InitGPU(mitk::BaseRenderer*) (mitkGPUVolumeMapper3D.cpp:112)

27267== by 0x8D0B999: mitk::GPUVolumeMapper3D::GenerateData(mitk::BaseRenderer*) (mitkGPUVolumeMapper3D.cpp:237)

27267== by 0x7B5E372: mitk::Mapper::Update(mitk::BaseRenderer*) (mitkMapper.cpp:150)

27267== by 0x7B7976D: mitk::VtkPropRenderer::Update(mitk::DataNode*) (mitkVtkPropRenderer.cpp:377)

27267== by 0x7B7989B: mitk::VtkPropRenderer::Update() (mitkVtkPropRenderer.cpp:395)

27267== by 0x7B79A0E: mitk::VtkPropRenderer::Resize(int, int) (mitkVtkPropRenderer.cpp:433)

27267== by 0x7B843FC: mitk::RenderWindowBase::resizeMitkEvent(int, int) (mitkRenderWindowBase.cpp:146)

27267== If you believe this happened as a result of a stack

27267== overflow in your program's main thread (unlikely but

27267== possible), you can try to increase the size of the

27267== main thread stack using the --main-stacksize= flag.

27267== The main thread stack size used in this run was 8388608.

27267

27267== HEAP SUMMARY:

27267== in use at exit: 64,642,573 bytes in 122,541 blocks

27267== total heap usage: 3,105,237 allocs, 2,982,696 frees, 393,892,207 bytes allocated

27267

27267== LEAK SUMMARY:

27267== definitely lost: 14,424 bytes in 154 blocks

27267== indirectly lost: 59,108 bytes in 907 blocks

27267== possibly lost: 6,385,119 bytes in 69,275 blocks

27267== still reachable: 58,183,922 bytes in 52,205 blocks

27267== suppressed: 0 bytes in 0 blocks

27267== Rerun with --leak-check=full to see details of leaked memory

27267

27267== For counts of detected and suppressed errors, rerun with: -v

27267== Use --track-origins=yes to see where uninitialised values come from

27267== ERROR SUMMARY: 476 errors from 5 contexts (suppressed: 21 from 8)

Segmentation fault
nolden@mbi047:/local/nolden/mitk-bin-qtcreator$

[SVN revision 27794]
FIX (#6154): crash while reopening standard multi widget