<div dir="ltr"><div><div><div><div><div>Hello All<br><br></div>I'm experiencing a systematic segfault with the following code in pvpython :<br><br>from paraview.simple import *<br>import <span class="">gc</span><br><br>v=CreateRenderView()<br>Render(v)<br>w=CreateRenderView()<br>Render(w)<br><br>Delete(v)<br>del v<br><span class="">gc</span>.collect() # not absolutelly necessary, the destructor will be called eventually, but this ensure the bug to happen at the next call.<br><br>Render(w)<br><br><br>[xcb] Unknown sequence number while appending request<br>[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called<br>[xcb] Aborting, sorry about that.<br>pvpython: xcb_io.c:161: append_pending_request: Assertion `!xcb_xlib_unknown_seq_number' failed.<br>Aborted (core dumped)<br><br></div>Basically,
<br> * Creating and rendering a first view, <br> * then Creating and rendering a
second render view, <br> * then destroying the first view, will put the second
in a unstable state that will lead to a segfault.<br><br></div>Does not reproduce in paraview, pvpython only.<br><br></div>I've added a bug in paraview bugtracker : <br><a href="http://www.paraview.org/Bug/view.php?id=16767" target="_blank">http://www.paraview.org/Bug/<wbr>view.php?id=16767</a><br><br></div>If you have any idea why does it happen and how to correct it it would be great !</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Fri, Jul 1, 2016 at 5:19 PM, Mathieu Westphal <span dir="ltr"><<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hello<br><br></div>I'm experiencing a systematic segfault with the following code in pvpython :<br><br>from paraview.simple import *<br>import gc<br><br>v=CreateRenderView()<br>Render(v)<br>w=CreateRenderView()<br>Render(w)<br><br>Delete(v)<br>del v<br>gc.collect() # not absolutally necessary, the destructor will be called eventually<br><br>Render(w)<br><br><br>[xcb] Unknown sequence number while appending request<br>[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called<br>[xcb] Aborting, sorry about that.<br>pvpython: xcb_io.c:161: append_pending_request: Assertion `!xcb_xlib_unknown_seq_number' failed.<br>Aborted (core dumped)<br><br></div>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.<br></div>Does not reproduce in paraview.<br><br></div>I've added a bug in paraview bugtracker : <br><a href="http://www.paraview.org/Bug/view.php?id=16767" target="_blank">http://www.paraview.org/Bug/<wbr>view.php?id=16767</a><br><br></div>If you have any idea why does it happen and how to correct it it would be great !<span class="HOEnZb"><font color="#888888"><br><div><div><div><div><br clear="all"><div><div><div><div data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
</div></div></div></div></div></div></font></span></div>
</blockquote></div><br></div>