nipy / PySurfer

Cortical neuroimaging visualization in Python
https://pysurfer.github.io/
BSD 3-Clause "New" or "Revised" License
241 stars 97 forks source link

GUI screen showed up, then closed automatically while testing to run plot_label_foci.py #307

Open XinQi7788 opened 2 years ago

XinQi7788 commented 2 years ago

======================= Generate Surface Labels

Define a label that is centered on a specific vertex in the surface mesh. Plot that label and the focus that defines its center.

Exception occurred in traits notification handler for object: <mayavi.core.ui.mayavi_scene.MayaviScene object at 0x7f03197a1a90>, trait: disable_render, old value: True, new value: False Traceback (most recent call last): File "/home/ubuntu/anaconda3/lib/python3.8/site-packages/traits/trait_notifiers.py", line 342, in call self.handler(*args) File "/home/ubuntu/anaconda3/lib/python3.8/site-packages/tvtk/pyface/tvtk_scene.py", line 900, in _disable_render_changed self.render() File "/home/ubuntu/anaconda3/lib/python3.8/site-packages/tvtk/pyface/ui/qt4/scene.py", line 351, in render self._vtk_control.Render() File "/home/ubuntu/anaconda3/lib/python3.8/site-packages/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py", line 560, in Render self.update() RuntimeError: wrapped C/C++ object of type _VTKRenderWindowInteractor has been deleted

gygzhang commented 2 years ago

hi, did you fix it?

ruilongXIA commented 1 year ago

Come cross the same question, hope pysurfer team solve this problem :D https://9to5answer.com/pyqt-runtimeerror-wrapped-c-c-object-has-been-deleted