<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 05/08/2016 20:17, Matt Lauria wrote:<br>
</div>
<blockquote
cite="mid:00e401d1ef45$9f202180$dd606480$@interactivebrokers.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Courier
New"">Can someone direct me where to get help tracking
down a bug in X?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">I’ve built a GUI (python3.4 using tkinter running
gnome on RHEL 6.8) which crashes daily with a:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<pre>X Error of failed request: BadIDChoice (invalid resource ID chosen for this connection)<o:p></o:p></pre>
<pre> Major opcode of failed request: 139 (RENDER)<o:p></o:p></pre>
<pre> Minor opcode of failed request: 4 (RenderCreatePicture)<o:p></o:p></pre>
<pre> Resource id in failed request: 0x4181254<o:p></o:p></pre>
<pre> Serial number of failed request: 33776134<o:p></o:p></pre>
<pre> Current serial number in output stream: 33776143<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">I’ve installed symbols/debuginfo and using gdb
tried inspecting some of the objects.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">This seems similar to the bug at <a
moz-do-not-send="true"
href="https://bugzilla.mozilla.org/show_bug.cgi?id=458092">https://bugzilla.mozilla.org/show_bug.cgi?id=458092</a>
but when I looked at xid.last/xid.max I didn’t see the same
issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<br>
</div>
</blockquote>
<blockquote type="cite">Likely not -- the minor number corresponds
to RenderCreatePicture, not FreePicture. Might have to dig into
the X code to see what generates BadID; owen was suggesting that
it might be due due to IDs getting out of sync somehow:<br>
<br>
13:03 < otaylor> vlad_: Trying to create two resources with
the ID of the <br>
second less than the ID of the first would cause
that<br>
<br>
<br>
But I have no idea how we'd get into that situation, unless the
IDs wrapped around?</blockquote>
Address the X powers to be: I hope the above inlined comment is just
a bad guess and not the reality: it's very xlib centric to check for
bigger than on the RID bits and an actual binary tree of resource
IDs might jump around as hell (because it might produce bit reversed
RIDs initially) without any possibility to reuse an already used ID.<br>
The core protocol standards are more terse on how to interpret RID
bits and I hope one can still rely on that. Even XC-MISC would
provide a free list which ...<br>
BadIDChoice for no good reason is no good choice then ...<br>
<br>
Regards,<br>
Michael<br>
</body>
</html>