KelSolaar / sIBL_GUI

sIBL_GUI - HDRI Lighting with Smart IBL.
http://www.hdrlabs.com/
GNU General Public License v3.0
27 stars 6 forks source link

Handle Qt related "RuntimeError" exception in "preview" Component. #178

Closed KelSolaar closed 11 years ago

KelSolaar commented 11 years ago

I didn't managed to reproduce the exception but changed the code with hope it should fix it.

Stack Trace
_________________________________
0   <type 'exceptions.RuntimeError'>
1   
2   Traceback (most recent call last):
3   .. File "<string>", line 312, in <module>
4   .. File "<string>", line 309, in main
5   .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\engine.py", line 1864, in run
6   .... return sys.exit(RuntimeGlobals.application.exec_())
7   .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\ui\cache.py", line 451, in __worker__imageLoaded
8   .... self.contentAdded.emit([path])
9   .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\addons\preview\imagesPreviewer.py", line 937, in __engine_imagesCaches_QImage__contentAdded
10  .... self.__setDisplayGraphicsItem(image)
11  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\addons\preview\imagesPreviewer.py", line 993, in __setDisplayGraphicsItem
12  .... self.__graphicsScene.removeItem(self.__displayGraphicsItem)
13  RuntimeError: wrapped C/C++ object of type QGraphicsScene has been deleted