[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] PyQt5 application hanging inexplicably
From: James Ross-Smith <jars121 () gmail ! com>
Date: 2017-08-10 22:14:50
Message-ID: CAFH0v3bB+QJfVn4QMk+JUMCvdHH074HoSjcM05g-EWeEV8tiDg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Good morning all,
My PyQt5 application (Qt 5.9.0 with Python 3.6.2) is running quite nicely
on my embedded device (Raspberry Pi 2), but hangs inexplicably after a
seemingly random period of time (sometimes 15 minutes, sometimes 2+ hours).
I.e. all GUI elements are updating and responsive and then the entire
window pauses (all GUI elements stop changing). When running the
application via SSH on my development machine, I can 'Ctrl C' out of the
Python interpreter normally, so it doesn't appear that the application
itself has frozen.
I replaced some of my QLabel elements with CPU, memory and thread metrics
to monitor if I had runaway threads, or I was consuming all the available
RAM. As it turns out, memory allocation was stable at 16%
(psutil.virtual_memory()), CPU utilisation was stable at ~35%
(psutil.cpu_percent()) and the number of threads was constant at 2
(threading.active_count()).
What else could I be missing here?
Cheers,
Jamie
[Attachment #5 (text/html)]
<div dir="ltr">Good morning all,<div><br></div><div>My PyQt5 application (Qt 5.9.0 with Python \
3.6.2) is running quite nicely on my embedded device (Raspberry Pi 2), but hangs inexplicably \
after a seemingly random period of time (sometimes 15 minutes, sometimes 2+ hours). I.e. all \
GUI elements are updating and responsive and then the entire window pauses (all GUI elements \
stop changing). When running the application via SSH on my development machine, I can 'Ctrl \
C' out of the Python interpreter normally, so it doesn't appear that the application \
itself has frozen.</div><div><br></div><div>I replaced some of my QLabel elements with CPU, \
memory and thread metrics to monitor if I had runaway threads, or I was consuming all the \
available RAM. As it turns out, memory allocation was stable at 16% (psutil.virtual_memory()), \
CPU utilisation was stable at ~35% (psutil.cpu_percent()) and the number of threads was \
constant at 2 (threading.active_count()).</div><div><br></div><div>What else could I be missing \
here?</div><div><br></div><div>Cheers,</div><div><br></div><div>Jamie</div></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic