RE: CPU running at 100%, GUI locks up
Steve Barnes <[email protected]> Wed, 10 Mar 2021 09:46:07 +0000
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <VI1PR03MB4479E81B53A94F7E40584B309B919@VI1PR03MB4479.eurprd03.prod.outlook.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. From: [email protected] <[email protected]> On Behalf Of Matthias Brennwald Sent: 10 March 2021 08:16 To: [email protected] Subject: RE: [wxPython-users] CPU running at 100%, GUI locks up I tried running the debugger using "gdb python xxx.py", but that didn't work (gdb complained that my python script was not a good core dump...), so I went back to the good old method of inserting "print(...)" statements. The interesting thing is that now the problem does not occur anymore. I guess the execution of the "print(...)" statements somehow changed the code such that it does not run into the problem anymore. Hmmm. -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/SYUQPQ.DF29U9VEM1UX2%40gmail.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fwxpython-users%2FSYUQPQ.DF29U9VEM1UX2%2540gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7Cdfc91f3b7cc447d9a78408d8e39cc6a9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637509609765259907%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QvGCuVdQAJ0N9YSUm%2F2NtOSgR4xEUCoDQYMQBQ8KRRY%3D&reserved=0>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/VI1PR03MB4479E81B53A94F7E40584B309B919%40VI1PR03MB4479.eurprd03.prod.outlook.com.