standard ROI workflow bug

Create issue
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\\egg\PIMicroViewBasePlugins\", 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\\egg\PIMicroViewBasePlugins\", line 145, in OnImageChangeEvent File "build\\egg\PIMicroViewBasePlugins\", line 364, in OnImageChangeEvent File "build\\egg\PIMicroViewBasePlugins\", line 398, in initialize_state_object File "build\\egg\PIMicroViewBasePlugins\", line 438, in setModelDefaultROI File "build\\egg\PIMicroViewBasePlugins\", line 94, in setModelROIExtent File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\", line 31, in notify subscriber(event) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\component\", line 27, in dispatch component_subscribers(event, None) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\", line 139, in subscribers return sitemanager.subscribers(objects, interface) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\interface\", line 328, in subscribers return self.adapters.subscribers(objects, provided) File "C:\Users\jgill\Documents\src\MV\lib\site-packages\zope\interface\", line 596, in subscribers subscription(*objects) File "build\\egg\PIMicroViewBasePlugins\", line 710, in onModelModifiedEvent File "build\\egg\PIMicroViewBasePlugins\", line 100, in setViewROIBounds File "build\\egg\PIMicroViewBasePlugins\", line 76, in SetROIBounds File "C:\Users\jgill\Documents\src\MV\lib\site-packages\vtkAtamai\", 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