<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I connect to an Xvfb based x server from C++ using xcb_connect. However, occasionally the last xcb_connect call fails:<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin-top:0px;margin-bottom:0px;font-weight:normal;orphans:auto;widows:auto">
<span> xcb_connect: error code: 0 Display: :5 displayname: (null) screenp: 0</span></p>
<p style="margin-top:0px;margin-bottom:0px;font-weight:normal;orphans:auto;widows:auto">
<span> xcb_connect: error code: 0 Display: :5 displayname: (null) screenp: -943246996</span></p>
<p style="margin-top:0px;margin-bottom:0px;font-weight:normal;orphans:auto;widows:auto">
<span> xcb_connect: error code: 0 Display: :5 displayname: (null) screenp: -943246996</span></p>
<p style="margin-top:0px;margin-bottom:0px;font-weight:normal;orphans:auto;widows:auto">
<span> xcb_connect: error code: 1 Display: :5 displayname: (null) screenp: -943246996</span></p>
<p style="margin-top:0px;margin-bottom:0px;font-weight:normal;orphans:auto;widows:auto">
<br>
</p>
<p style="margin-top:0px;margin-bottom:0px;font-weight:normal;orphans:auto;widows:auto">
The last one fails with a<span class="Apple-converted-space"> </span><span>XCB_CONN_ERROR.</span></p>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Anyone has an idea how to debug this? Xvfb never produces messages be it on stdout ot stderr.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards<br>
</div>
</body>
</html>