(Sightviewer) Exiting the application with colour bleeding or ambient occlusion enabled causes a crash
Summary
Exiting the application with colour bleeding enabled crashes the app.
Terminate called after throwing an instance of 'Ogre::RuntimeAssertionException'
what(): RuntimeAssertionException: attempting to remove unknown resource: SightViewer_GenericScene_AppCfg_3_volumeAdp__GPU_SummedAreaTable_Ping in group Sight in remove at ./OgreMain/src/OgreResourceManager.cpp (line 301)
Aborted (core dumped)
Steps to reproduce
- Build and launch
SightViewer
. - Load something.
- Toggle
Color Blending
orAmbient Occlusion
. - Exit the app.
- Exception.
Dev environment
- OS: Linux
- CMake version: 3.21.1
- Compiler: gcc 10.3.0
- Build type: debug & release
- Commit: ea37bbc8
Relevant logs and/or screenshots
(Colour bleeding)
eduhamel@IRCW268:~$ ./Sight/sight/dev/release-gcc/build/bin/sightviewer
/home/eduhamel/Sight/sight/dev/release-gcc/build/bin/sightrun.bin "/home/eduhamel/Sight/sight/dev/release-gcc/build/share/sight/SightViewer/profile.xml"
[3178][00:00:00.178038][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/core/runtime/detail/io/ModuleDescriptorReader.cpp:207] Module : <None>, node: styleSheet, blanks in xml nodes can result in unexpected behaviour. Consider using <![CDATA[ ... ]]>.
[3205][00:00:00.179833][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'histogram'
[3206][00:00:00.179846][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'image'
[3207][00:00:00.179854][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'mergedTF'
[3208][00:00:00.179861][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'tfPools'
[3210][00:00:00.180083][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'image'
[3211][00:00:00.180094][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'localSeriesDB'
[3212][00:00:00.180101][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'previewSeriesDB'
[3225][00:00:00.180828][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'extrudedModelSeries'
[3226][00:00:00.180841][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'image'
[3227][00:00:00.180848][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'landmarks'
[3228][00:00:00.180855][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'modelSeries'
[3229][00:00:00.180862][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'volumeTF'
[3231][00:00:00.181128][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'organManagerModelSeries'
[3233][00:00:00.181232][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ptr.hpp:492] Could not find any registered ptr with key 'organManagerModelSeries'
[3288][00:00:00.245711][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/core/runtime/detail/io/ModuleDescriptorReader.cpp:207] Module : <None>, node: styleSheet, blanks in xml nodes can result in unexpected behaviour. Consider using <![CDATA[ ... ]]>.
[3289][00:00:00.245740][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/core/runtime/detail/io/ModuleDescriptorReader.cpp:207] Module : <None>, node: styleSheet, blanks in xml nodes can result in unexpected behaviour. Consider using <![CDATA[ ... ]]>.
[3290][00:00:00.245750][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/core/runtime/detail/io/ModuleDescriptorReader.cpp:207] Module : <None>, node: styleSheet, blanks in xml nodes can result in unexpected behaviour. Consider using <![CDATA[ ... ]]>.
[4031][00:00:00.759571][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/modules/viz/scene3d/Plugin.cpp:84] Warning: Can't assign material '' to SubMesh of 'human.mesh' because this Material does not exist in group 'Sight'. Have you forgotten to define it in a .material script?
[4071][00:00:00.772652][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/service/IService.cpp:828] INVOKING update WHILE STOPPED (1) on service 'SightViewer_AppCfg_1_computeHistogramSrv' of type 'sight::module::viz::scene2d::processing::SComputeHistogram': update is discarded.
[4082][00:00:00.798947][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/modules/viz/scene3d/Plugin.cpp:84] Warning: Material SightViewer_GenericScene_AppCfg_3_axialBackgroundAdp_VideoMaterial was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
[4085][00:00:00.799238][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/modules/viz/scene3d/Plugin.cpp:84] Warning: Material SightViewer_GenericScene_AppCfg_3_sagittalBackgroundAdp_VideoMaterial was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
[4088][00:00:00.799333][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/modules/viz/scene3d/Plugin.cpp:84] Warning: Material SightViewer_GenericScene_AppCfg_3_frontalBackgroundAdp_VideoMaterial was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
[4591][00:00:04.280959][warning] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/data/ModelSeries.cpp:82] Exception: <sight::data::Exception>: Unable to copysight::data::ImageSeries to sight::data::ModelSeries
[4592][00:00:04.281070][error] [/home/eduhamel/git/git.ircad.fr/sight/sight/libs/core/service/IService.cpp:853] Error while UPDATING service 'SightViewer_AppCfg_1_extractMeshSrv' : Unable to copysight::data::ImageSeries to sight::data::ModelSeries
terminate called after throwing an instance of 'Ogre::RuntimeAssertionException'
what(): RuntimeAssertionException: attempting to remove unknown resource: SightViewer_GenericScene_AppCfg_3_volumeAdp__GPU_SummedAreaTable_Ping in group Sight in remove at ./OgreMain/src/OgreResourceManager.cpp (line 301)
Aborted (core dumped)