<div dir="ltr">Thanks much for the issue report? If you could also file this issue here <a href="https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues">https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues</a> that would be great.<div><br></div><div>I'm not sure what's going on with your issue: it appears that the connection object is invalid at the time XPutImage() is called. Perhaps the problem is related to <a href="https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/46">https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/46</a> ?</div><div><br></div><div>I'm probably not going to have time to try to track this down super-soon. Hopefully someone else here can reproduce it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 16, 2020 at 8:11 AM Luigi Salvatore Esposito <<a href="mailto:luigi.salvatore.esposito@cern.ch">luigi.salvatore.esposito@cern.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="overflow-wrap: break-word;">Dear XCB developers,
<div><br>
</div>
<div>following the upgrade to <span>lib</span><span>xcb </span><span>1.14, </span>we have now a crash in one of our tools (<a href="http://flair.web.cern.ch/flair/" target="_blank">http://flair.web.cern.ch/flair/</a>)</div>
<div>with the crash report at the bottom of this email.</div>
<div>The problem appears at this line called in frame 11:</div>
<div><span style="white-space:pre-wrap"></span>XPutImage(self->display, self->pixmap, self->gc, self->ximage, 0, 0, 0, 0, width, height);</div>
<div><br>
</div>
<div>Comparing with the libxcb 1.13, I managed to track down the issue to the variable “<span>total_read” defined in </span><span>xcbint.h.</span></div>
<div>Indeed, with the attached patch the crash disappears.</div>
<div><br>
</div>
<div>Do you have any suggestions how to fix the problem?</div>
<div><br>
</div>
<div>For sake of completeness, libxcb is installed via MacPorts.</div>
<div>If needed, I can provide additional details.</div>
<div><br>
</div>
<div>Thanks a lot for your help</div>
<div><br>
</div>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div style="text-align:start;text-indent:0px">
<div style="text-align:start;text-indent:0px;line-height:normal">
<div><font face="Calibri, sans-serif">————————————</font><span style="font-family:Calibri,sans-serif">——</span><font face="Calibri, sans-serif">—</font><span style="font-family:Calibri,sans-serif">——</span><font face="Calibri, sans-serif">—</font><span style="font-family:Calibri,sans-serif">——</span><font face="Calibri, sans-serif">—</font><span style="font-family:Calibri,sans-serif">—</span></div>
</div>
</div>
<div>
<div style="margin:0in 0in 0.0001pt"><span lang="FR-CH" style="font-family:Calibri,sans-serif"><b>Luigi Salvatore ESPOSITO<span> </span></b></span><span style="color:rgb(0,85,160);font-family:HelveticaNeue">-
CERN-EN/STI</span></div>
<div style="margin:0in 0in 0.0001pt"><span lang="FR" style="color:rgb(0,85,160);font-family:HelveticaNeue">Esplanade</span><span lang="FR" style="color:rgb(0,85,160);font-family:HelveticaNeue"> des Particules</span></div>
<div style="margin:0in 0in 0.0001pt"><font face="HelveticaNeue" color="#0055a0"><span style="font-style:normal"><span lang="FR-CH">CH-1211 Geneva 23</span></span></font><span lang="FR-CH" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"></span></div>
<div style="margin:0in 0in 0.0001pt"><font face="HelveticaNeue" color="#0055a0"><span lang="FR-CH">O </span><span>+41 22 76 63419</span></font></div>
<div style="margin:0in 0in 0.0001pt;font-family:Calibri,sans-serif"><font face="Calibri, sans-serif">————————————</font>——<font face="Calibri, sans-serif">—</font>——<font face="Calibri, sans-serif">—</font>——<font face="Calibri, sans-serif">—</font>—</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<div>
<div></div>
</div>
</div>
<div style="overflow-wrap: break-word;">
<div>
<div></div>
<div><br>
</div>
<div>
<div>Thread 0 Crashed:: Dispatch queue: com.apple.main-thread</div>
<div>0 libsystem_kernel.dylib <span style="white-space:pre-wrap">
</span>0x00007fff6da8733a __pthread_kill + 10</div>
<div>1 libsystem_pthread.dylib <span style="white-space:pre-wrap">
</span>0x00007fff6db43e60 pthread_kill + 430</div>
<div>2 libsystem_c.dylib <span style="white-space:pre-wrap">
</span>0x00007fff6da0e808 abort + 120</div>
<div>3 libsystem_c.dylib <span style="white-space:pre-wrap">
</span>0x00007fff6da0dac6 __assert_rtn + 314</div>
<div>4 libxcb.1.dylib <span style="white-space:pre-wrap">
</span>0x00000001147c7746 _xcb_in_wake_up_next_reader + 89</div>
<div>5 libxcb.1.dylib <span style="white-space:pre-wrap">
</span>0x00000001147c6dd6 _xcb_out_send + 125</div>
<div>6 libxcb.1.dylib <span style="white-space:pre-wrap">
</span>0x00000001147c6d3e xcb_writev + 68</div>
<div>7 libX11.6.dylib <span style="white-space:pre-wrap">
</span>0x00000001157fe8f9 _XSend + 315</div>
<div>8 libX11.6.dylib <span style="white-space:pre-wrap">
</span>0x00000001157f42c7 PutSubImage + 1924</div>
<div>9 libX11.6.dylib <span style="white-space:pre-wrap">
</span>0x00000001157f3c8b PutSubImage + 328</div>
<div>10 libX11.6.dylib <span style="white-space:pre-wrap">
</span>0x00000001157f385f XPutImage + 424</div>
<div><b>11 geoviewer.so <span style="white-space:pre-wrap">
</span>0x0000000115689233 Viewer_expose(ViewerObject*, _object*) + 163</b></div>
<div>12 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df3eb26 cfunction_call_varargs + 319</div>
<div>13 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfd6b72 _PyEval_EvalFrameDefault + 9050</div>
<div>14 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfddeb9 _PyEval_EvalCodeWithName + 2107</div>
<div>15 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df3ef21 _PyFunction_Vectorcall + 217</div>
<div>16 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df40f56 method_vectorcall + 372</div>
<div>17 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df3e80d PyVectorcall_Call + 108</div>
<div>18 _<a href="http://tkinter.cpython-38-darwin.so" target="_blank">tkinter.cpython-38-darwin.so</a> <span style="white-space:pre-wrap">
</span>0x000000010e8c0012 PythonCmd + 205</div>
<div>19 libtcl8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010e8ddaee TclNRRunCallbacks + 79</div>
<div>20 libtcl8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010e8ded06 TclEvalEx + 1987</div>
<div>21 libtcl8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010e8de53d Tcl_EvalEx + 26</div>
<div>22 libtk8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010ebff362 Tk_BindEvent + 5754</div>
<div>23 libtk8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010ec04fe9 TkBindEventProc + 334</div>
<div>24 libtk8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010ec0c523 Tk_HandleEvent + 997</div>
<div>25 libtk8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010ec0cc0c WindowEventProc + 96</div>
<div>26 libtcl8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010e985e78 Tcl_ServiceEvent + 136</div>
<div>27 libtcl8.6.dylib <span style="white-space:pre-wrap">
</span>0x000000010e98606d Tcl_DoOneEvent + 153</div>
<div>28 _<a href="http://tkinter.cpython-38-darwin.so" target="_blank">tkinter.cpython-38-darwin.so</a> <span style="white-space:pre-wrap">
</span>0x000000010e8be324 _tkinter_tkapp_mainloop + 342</div>
<div>29 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df45d4e method_vectorcall_FASTCALL + 250</div>
<div>30 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfdd2f5 call_function + 346</div>
<div>31 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfd66cd _PyEval_EvalFrameDefault + 7861</div>
<div>32 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfddeb9 _PyEval_EvalCodeWithName + 2107</div>
<div>33 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df3ef21 _PyFunction_Vectorcall + 217</div>
<div>34 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010df40e69 method_vectorcall + 135</div>
<div>35 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfdd2f5 call_function + 346</div>
<div>36 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfd66f0 _PyEval_EvalFrameDefault + 7896</div>
<div>37 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfddeb9 _PyEval_EvalCodeWithName + 2107</div>
<div>38 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010dfd4790 PyEval_EvalCode + 42</div>
<div>39 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e00c57d run_eval_code_obj + 102</div>
<div>40 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e00b9cb run_mod + 82</div>
<div>41 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e00a8a5 PyRun_FileExFlags + 160</div>
<div>42 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e009f89 PyRun_SimpleFileExFlags + 271</div>
<div>43 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e021834 Py_RunMain + 1836</div>
<div>44 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e021b90 pymain_main + 370</div>
<div>45 org.python.python <span style="white-space:pre-wrap">
</span>0x000000010e021be5 Py_BytesMain + 42</div>
<div>46 libdyld.dylib <span style="white-space:pre-wrap">
</span>0x00007fff6d93fcc9 start + 1</div>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
Xcb mailing list<br>
<a href="mailto:Xcb@lists.freedesktop.org" target="_blank">Xcb@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xcb" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/xcb</a><br>
</blockquote></div>