App crash on Ubuntu Lucid

Hi,

I am getting a strange application crash (well one that I have never
seen before anyway) on Ubuntu Lucid.

python: ../../src/xcb_io.c:183: process_responses: Assertion `!(req &&
current_request && !(((long) (req->sequence) - (long) (current_request))
<= 0))' failed.
Aborted

This happens as I kick off an XMLRPC process from a file drag and drop
on a multiline text control.

Search results all seem to be the same kind of thing happening in
different applications across many Ubuntu distributions, so not much
help at all.

Has anyone on this list seen this and have a possible solution? More
than willing to share all the code etc if needs be as well.

Any help would be greatly appreciated!

···

--
-- Paul

http://www.paulscott.za.net
http://twitter.com/paulscott56
http://avoir.uwc.ac.za

I’ve personally never had this, but generally, the best thing to do is install the debug symbols, on Lucid, I think they are something like wx-debug, and python-dbg, note that you have to use the “python-dbg” command IIRC.

···


Hi, I will kill all ads in google gmail.
They will all be dead and gone for all my emails to you. HA HA bye bye ads I just massacred you!!!

to clarify: The steps I described will help to identify, and probably won’t fix, the problem.

···


Hi, I will kill all ads in google gmail.
They will all be dead and gone for all my emails to you. HA HA bye bye ads I just massacred you!!!

How long does the XMLRPC call take? My gut feel for this and the other bug reports found from google is that it could either be a timing issue or perhaps something interfering with the DnD process. In either case if you let the DnD complete naturally and do the XMLRPC call later then it might solve the problem. You can use wx.CallAfter to delay the XMLRPC call.

If that doesn't help please don't send all of your code. See MakingSampleApps - wxPyWiki for how we prefer sample apps to be done.

···

On 3/12/11 1:41 AM, Paul Scott wrote:

Hi,

I am getting a strange application crash (well one that I have never
seen before anyway) on Ubuntu Lucid.

python: ../../src/xcb_io.c:183: process_responses: Assertion `!(req&&
current_request&& !(((long) (req->sequence) - (long) (current_request))
<= 0))' failed.
Aborted

This happens as I kick off an XMLRPC process from a file drag and drop
on a multiline text control.

Search results all seem to be the same kind of thing happening in
different applications across many Ubuntu distributions, so not much
help at all.

Has anyone on this list seen this and have a possible solution? More
than willing to share all the code etc if needs be as well.

Any help would be greatly appreciated!

--
Robin Dunn
Software Craftsman

I managed to narrow it down to the way that I was using a thread. I was
kicking off a GUI process in a thread which was causing it. Once I
factored that out and managed to change my code to use the thread in a
different way, all worked out just fine.

Thanks for the suggestions and help!

···

On 12/03/2011 21:21, Robin Dunn wrote:

python: ../../src/xcb_io.c:183: process_responses: Assertion `!(req&&
current_request&& !(((long) (req->sequence) - (long) (current_request))
<= 0))' failed.
Aborted

How long does the XMLRPC call take? My gut feel for this and the other
bug reports found from google is that it could either be a timing issue
or perhaps something interfering with the DnD process. In either case
if you let the DnD complete naturally and do the XMLRPC call later then
it might solve the problem. You can use wx.CallAfter to delay the
XMLRPC call.

--
-- Paul

http://www.paulscott.za.net
http://twitter.com/paulscott56
http://avoir.uwc.ac.za

Ahh, yes, Threads and GUIs don’t get along well, at least not in a way that you’d like them to.

···


Hi, I will kill all ads in google gmail.
They will all be dead and gone for all my emails to you. HA HA bye bye ads I just massacred you!!!

Yeah, noticed that! Makes it a little more finicky with progress bars
(which was the ultimate culprit). At least now I know and now I know how
to work around it too!

···

On 14/03/2011 20:17, Micah Nordland wrote:

Ahh, yes, Threads and GUIs don't get along well, at least not in a way
that you'd like them to.

--
-- Paul

http://www.paulscott.za.net
http://twitter.com/paulscott56
http://avoir.uwc.ac.za

I’ve messed with a similar situtuation, but in the end, I used wx.Process instead of threads and subprocess.

···


Hi, I will kill all ads in google gmail.
They will all be dead and gone for all my emails to you. HA HA bye bye ads I just massacred you!!!