Package: rapid-photo-downloader
Version: 0.9.33-1.1
Severity: normal

It's been a long time since I used RPD and now when I start it up, it
eats up a whole CPU. The fans on my shiny new 12th gen intel Framework
CPU spin up like crazy and CPU temperature reaches 95C.

I'm not sure what is happening: nothing is going on in the UI. At
first I thought it was rendering thumbnails, but it not, the thumbs
are actually rendered already.

strace tells me the process is looping over something like this:

poll([{fd=4, events=POLLIN}, {fd=12, events=POLLIN}, {fd=76, events=POLLIN}, 
{fd=80, events=POLLIN}], 4, 0) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\5\0\0\0\0\0\0\0", 16)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
sendmsg(5, {msg_name=NULL, msg_namelen=0, 
msg_iov=[{iov_base="\32\0\0\0\1\0\24\0,\0\0\0\0\0\0\0\0\0\0\0\32\0\0\0\t\0\30\0000\2\0\0"...,
 iov_len=76}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 
MSG_DONTWAIT|MSG_NOSIGNAL) = 76
poll([{fd=4, events=POLLIN}, {fd=12, events=POLLIN}, {fd=76, events=POLLIN}, 
{fd=80, events=POLLIN}], 4, 0) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\3\0\0\0\0\0\0\0", 16)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
futex(0x1eb0e70, FUTEX_WAKE_PRIVATE, 1) = 1
poll([{fd=4, events=POLLIN}, {fd=12, events=POLLIN}, {fd=76, events=POLLIN}, 
{fd=80, events=POLLIN}], 4, 0) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\5\0\0\0\0\0\0\0", 16)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
sendmsg(5, {msg_name=NULL, msg_namelen=0, 
msg_iov=[{iov_base="\32\0\0\0\1\0\24\0,\0\0\0\0\0\0\0\0\0\0\0\32\0\0\0\t\0\30\0000\2\0\0"...,
 iov_len=76}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 
MSG_DONTWAIT|MSG_NOSIGNAL) = 76
poll([{fd=4, events=POLLIN}, {fd=12, events=POLLIN}, {fd=76, events=POLLIN}, 
{fd=80, events=POLLIN}], 4, 0) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\3\0\0\0\0\0\0\0", 16)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8

File descriptors 4 and 5 are:

lrwx------ 1 anarcat anarcat 64 2023-02-18 11:03 /proc/21490/fd/4 -> 
'anon_inode:[eventfd]'
lrwx------ 1 anarcat anarcat 64 2023-02-18 11:03 /proc/21490/fd/5 -> 
'socket:[174401]'

Inspecting the output of `sudo lsof -P -n` shows me that socket 174401
is a UNIX socket connected to another RPD thread that's called
WaylandEv[...?]:

COMMAND     PID   TID TASKCMD         USER   FD      TYPE             DEVICE  
SIZE/OFF       NODE NAME
rapid-pho 21490 21503 WaylandEv    anarcat    5u     unix 0x00000000ce9ee8de    
   0t0     174401 type=STREAM (CONNECTED)

I've also ran out of 16GB of memory on this machine trying to run RPD
and Darktable in parallel, and also seen Sway crash.

It seems this thing really doesn't like to run under Wayland (or
Sway?)... This could also be a bug in python3-qt5 or Qt itself. It
could an instance of #996550 for example. Not sure.

a.

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (1, 
'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-3-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rapid-photo-downloader depends on:
ii  gir1.2-gexiv2-0.10          0.14.0-1+b1
ii  gir1.2-glib-2.0             1.74.0-3
ii  gir1.2-gstreamer-1.0        1.22.0-2
ii  gir1.2-gudev-1.0            237-2
ii  gir1.2-notify-0.7           0.8.1-1
ii  gir1.2-udisks-2.0           2.9.4-4
ii  gstreamer1.0-libav          1.22.0-2
ii  gstreamer1.0-plugins-good   1.22.0-4
ii  ifuse                       1.1.4~git20181007.3b00243-1
ii  libgphoto2-6                2.5.30-1
ii  libimage-exiftool-perl      12.55+dfsg-1
ii  libimobiledevice-utils      1.3.0-6+b3
ii  libmediainfo0v5             22.12+dfsg-1
ii  libqt5svg5                  5.15.8-2
ii  python3                     3.11.1-3
ii  python3-arrow               1.2.3-1
ii  python3-babel               2.10.3-1
ii  python3-colour              0.1.5-3
ii  python3-dateutil            2.8.2-1
ii  python3-easygui             0.98.1-3
ii  python3-gi                  3.42.2-3+b1
ii  python3-gphoto2             1.9.0-1+b4
ii  python3-importlib-metadata  4.12.0-1
ii  python3-pkg-resources       66.1.1-1
ii  python3-psutil              5.9.4-1+b1
ii  python3-pymediainfo         6.0.1-2
ii  python3-pyqt5               5.15.9+dfsg-1
ii  python3-requests            2.28.1+dfsg-1
ii  python3-showinfilemanager   1.1.4-2
ii  python3-sortedcontainers    2.4.0-2
ii  python3-tenacity            8.0.1-1
ii  python3-tornado             6.2.0-3
ii  python3-xdg                 0.28-2
ii  python3-zmq                 24.0.1-4+b1
ii  qt5-image-formats-plugins   5.15.8-2

rapid-photo-downloader recommends no packages.

rapid-photo-downloader suggests no packages.

-- no debconf information

Reply via email to