RenderView management with python segfault
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
There is a systematic segfault with the following code in pvpython :
Basically, Creating and rendering a first view, then Creating and rendering a second render view, then destroying the first view, will put the second in a unstable state that will lead to a segfault. Does not reproduce in paraview.
Steps to reproduce :
from paraview.simple import *
import gc
v=CreateRenderView()
Render(v)
w=CreateRenderView()
Render(w)
Delete(v)
del v
gc.collect() # not absolutally necessary, the destructor will be called eventually
Render(w)
[xcb] Unknown sequence number while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
pvpython: xcb_io.c:161: append_pending_request: Assertion `!xcb_xlib_unknown_seq_number' failed.
Aborted (core dumped)