Page MenuHomePhabricator

[Dashboard] All Rendering Tests fail on some dartclients
Closed, ResolvedPublic

Description

All rendering tests fail on:
MBI071 (ingmar)
MBI068 (diana)
MBI013 (Caspar)

It looks like the images are drawn from a different direction (e.g. sagittal instead of transversal or vice versa). Most likely this is related to hardware/software rendering differences.

Event Timeline

Still to check if it also happens with VTK 5.10 first.

Removing Release Relevancy.

We tried reproduce the rendering artifacts without a graphics card driver enabled on MBI 083 by using safe mode of Windows 7 in order to use the Microsoft software fallback rendering.

OpenGL Render Context Information:

  • GL_VENDOR: Microsoft Corporation
  • GL_RENDERER: GDI Generic
  • GL_VERSION: 1.1.0
  • GL_MAX_TEXTURE_SIZE: 1024
  • GL_EXTENSIONS: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture

We used the following debug arguments in Visual Studio:
mitkImageVtkMapper2DTest C:\development\bin\MITK-superbuild\CMakeExternals\Source\MITK-Data/Pic3D.nrrd -V C:\development\bin\MITK-superbuild\CMakeExternals\Source\MITK-Data\RenderingTestData\ReferenceScreenshots\pic3d640x480REF.png -T C:\Temp\

and MitkTestDriver as startup project.

Unfortunately we couldn't reproduce the bug within debugging with Visual Studio. The rendered image appeared to be equal to the reference image. Due to the slow rendering procedure, we recognized that the image has been rendered five time in a row before even entering the mitkRenderingTestHelper::Render() method.

Other problems that occured:
Running CTest with this test just crashes. The test image is not saved in the desired folder.

Windows batch file for executing the mitkImageVtkMapper2DTest via remote desktop

We reproduced the bug (failing of rendering test mitkImageVtkMapper2DTest) by executing the tests via remote desktop:

  1. login at remote computer and start remote desktop
  2. start test with a delay of some seconds
  3. exit remote desktop immediatly (before test has started)
  4. login at your MBI computer after test is finished
  5. test failed

You can use the attached batch file to reproduce it.

We fixed this bug by removing GetVtkRenderWindow()->DoubleBufferOff( ) in the mitkRenderingTestHelper

New remote branch pushed: bug-12824-rendering-test-fail

[97a3d7]: Merge branch 'bug-12824-rendering-test-fail'

Merged commits:

2013-01-30 16:31:03 Sandy Engelhardt [95aae9]
Fixing Rendering Test bug by switching off double buffer

[e3e115]: Merge branch 'bug-12824-rendering-test-fail'

Merged commits:

2013-01-30 19:23:35 Sandy Engelhardt [fb5bf0]
COMP: delete log message and outcommented test

[83e789]: Merge branch 'bug-12824-FixTestProperty'

Merged commits:

2013-01-31 08:14:52 Thomas Kilgus [e85bff]
COMP: Remove property of outcommented test.

[bf40a8]: Merge branch 'bug-12824-rendering-test-fail'

Merged commits:

2013-01-31 13:41:58 Sandy Engelhardt [e58489]
Updating Revision tag for new MITK-Data archive

[79f44e]: Merge branch 'bug-12824-rendering-test-fail'

Merged commits:

2013-01-31 15:55:33 Sandy Engelhardt [50e2ee]
Enable Surface3D Test again

The tests are running properly. We need to find a nice way to save this very useful batch file :).