Performance really cannot be the issue, as I have another Python program which does pretty much the same "work", using command-line user interface instead of the wxPython GUI. This CLI program consumes about 3-5% of CPU on the E3930.
I have never really worked with debuggers. Any hints or suggestions on how/where to start?
Well, you can do "gdb python xxx.py", then type "run" to start
it. When it hangs, you press Ctrl-C to break into the debugger.
"bt" gets a stack trace of the current thread. You may need a
stack trace of all threads, which is likely to be verbose: "thread
apply all bt". Email me a copy if you want some interpretation.
One "trick" that has worked well for me in the past is to start from the wxpython demo item that is closest to what I am trying to do at the point of lock-up and try to modify it - step by step into a minimal demonstration of the problem. When doing this one of 3 things tend to happen - 1. I can isolate exactly which addition results in the problem an have something that I can share with others for help, 2. I realise the idiot thing that I was doing and so can fix the problem or 3. As I add my functionality in the problem never appears until I have recreated my app but with the problem missing.
Steve Barnes
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
wxpython-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/wxpython-users/fbd0123d-312b-4481-94ca-5ebf5df0cda8n%40googlegroups.com.
It is possible that on that set of hardware a GUI operation is trying to happen before the App has finished initialising - the print statement will slow down the code enough that the initialisation has time to complete. You can try to isolate this by moving print statements a few lines (first try removing/commenting them to see if you get back the problem). It sounds like you might have a candidate for a CallAfter.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
wxpython-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/SYUQPQ.DF29U9VEM1UX2%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/86c7e597-ba49-47f3-f751-16392511bb00%40schwertberger.de.
It is possible that on that set of hardware a GUI operation is trying to happen before the App has finished initialising - the print statement will slow down the code enough that the initialisation has time to complete. You can try to isolate this by moving print statements a few lines (first try removing/commenting them to see if you get back the problem). It sounds like you might have a candidate for a CallAfter.