standard ROI workflow bug

Issue #37 new
Jeremy Gill repo owner created an issue

Follow this specific workflow to get a c++ object creation error:

- start MicroView
- open standard ROI tool from left tool palette
- close default image
- create a new image (ctrl+t)
- close standard ROI plugin
- restart plugin

Error reported:

File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROIController.py", line 644, in onModelModifiedEvent RuntimeError: wrapped C/C++ object of type Choice has been deleted ERROR:PI.visualization.MicroView.PluginManager:StandardROITool not found.

Comments (1)

  1. Jeremy Gill reporter

    The real issue occurs a bit earlier in the workflow - during the creation of the new image:

    File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\StandardROITool.py", line 145, in OnImageChangeEvent File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROIController.py", line 364, in OnImageChangeEvent File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROIController.py", line 398, in initialize_state_object File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROIModel.py", line 438, in setModelDefaultROI File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROIModel.py", line 94, in setModelROIExtent File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\event__init__.py", line 31, in notify subscriber(event) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\component\event.py", line 27, in dispatch component_subscribers(event, None) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\component_api.py", line 139, in subscribers return sitemanager.subscribers(objects, interface) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\interface\registry.py", line 328, in subscribers return self.adapters.subscribers(objects, provided) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\interface\adapter.py", line 596, in subscribers subscription(*objects) File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROIController.py", line 710, in onModelModifiedEvent File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\vtkROIView.py", line 100, in setViewROIBounds File "build\bdist.win-amd64\egg\PIMicroViewBasePlugins\ROICubeFactory.py", line 76, in SetROIBounds File "C:\Users\jgill\Documents\src\MV\lib\site-packages\vtkAtamai\PaneFrame.py", line 769, in RenderAll frame._RenderWindow.SwapBuffersOff()

    <class 'AttributeError'>: 'NoneType' object has no attribute 'SwapBuffersOff' CRITICAL:sentry.errors:<class 'AttributeError'>: 'NoneType' object has no attribute 'SwapBuffersOff'

  2. Log in to comment