segfault when starting rapid-photo--downloader

Bug #1890119 reported by Jurn Dikkers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Invalid
Undecided
Unassigned

Bug Description

This might be related to bug #1872338 but I am not sure.

When starting rapid-photo-downloader I get a segfault.

Another archlinux user has the same issue see here: https://bbs.archlinux.org/viewtopic.php?pid=1918904#p1918904

% rapid-photo-downloader -v

INFO: Rapid Photo Downloader is starting
Fatal Python error: Segmentation fault

Current thread 0x00007f824109c740 (most recent call first):
  File "/usr/lib/python3.8/site-packages/raphodo/rapid.py", line 5827 in __init__
  File "/usr/lib/python3.8/site-packages/raphodo/rapid.py", line 6647 in main
  File "/usr/bin/rapid-photo-downloader", line 11 in <module>
zsh: segmentation fault (core dumped) rapid-photo-downloader -v

%rapid-photo-downloader --detailed-version

Rapid Photo Downloader: 0.9.24
Platform: Linux-5.7.11-arch1-1-x86_64-with-glibc2.2.5
Memory: 2.12 GB used of 16.78 GB
Confinement: none
Installed using pip: no
Python: 3.8.5
Python executable: /usr/bin/python
Qt: 5.15.0
PyQt: 5.15.0
SIP: 5.3.0
ZeroMQ: 4.3.2
Python ZeroMQ: 19.0.1 (cython backend)
gPhoto2: 2.5.25
Python gPhoto2: 2.2.1
ExifTool: 12.00
pymediainfo: 4.2.1
GExiv2: 0.12.01
Gstreamer: 1.16.2
PyGObject: 3.36.1
libraw: 0.20.0
rawkit: 0.6.0 (not functional)
psutil: 5.7.1
Exiv2: 0.27.2
glibc: 2.31
Arrow: 0.15.7
Tornado: 6.0.4
Can read HEIF/HEIC metadata: yes
Session: tty
Desktop scaling: not set
Desktop scaling detection: undetected (xsetting not running)
Desktop: None (unknown)
Default file manager: dolphin (select)

Thanks for your time.

Revision history for this message
Jurn Dikkers (jurnd) wrote :
Revision history for this message
Jurn Dikkers (jurnd) wrote :
Download full text (3.8 KiB)

coredump:

Reading symbols from /usr/bin/python3.8...
(No debugging symbols found in /usr/bin/python3.8)
[New LWP 11076]
[New LWP 11083]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/python /usr/bin/rapid-photo-downloader --debug'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f05f1c7a355 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f05f1738740 (LWP 11076))]
(gdb)
(gdb) bt
#0 0x00007f05f1c7a355 in raise () at /usr/lib/libc.so.6
#1 0x00007f05f1c7a3e0 in <signal handler called> () at /usr/lib/libc.so.6
#2 0x00007f05e7b5f2d9 in () at /usr/lib/qt/plugins/platforms/libdxcb.so
#3 0x00007f05e7b5d378 in deepin_platform_plugin::DXcbXSettings::setting(QByteArray const&) const ()
    at /usr/lib/qt/plugins/platforms/libdxcb.so
#4 0x00007f05e7b638b0 in deepin_platform_plugin::DPlatformIntegration::styleHint(QPlatformIntegration::StyleHint) const ()
    at /usr/lib/qt/plugins/platforms/libdxcb.so
#5 0x00007f05eba901a8 in QPlatformTheme::themeHint(QPlatformTheme::ThemeHint) const () at /usr/lib/libQt5Gui.so.5
#6 0x00007f05e7af408b in Qt5CTPlatformTheme::readSettings() () at /usr/lib/qt/plugins/platformthemes/libqt5ct.so
#7 0x00007f05e7af4e68 in Qt5CTPlatformTheme::Qt5CTPlatformTheme() () at /usr/lib/qt/plugins/platformthemes/libqt5ct.so
#8 0x00007f05e7af1dbc in Qt5CTPlatformThemePlugin::create(QString const&, QStringList const&) ()
    at /usr/lib/qt/plugins/platformthemes/libqt5ct.so
#9 0x00007f05eba9147c in QPlatformThemeFactory::create(QString const&, QString const&) () at /usr/lib/libQt5Gui.so.5
#10 0x00007f05eba9e769 in QGuiApplicationPrivate::createPlatformIntegration() () at /usr/lib/libQt5Gui.so.5
#11 0x00007f05eba9f9e1 in QGuiApplicationPrivate::createEventDispatcher() () at /usr/lib/libQt5Gui.so.5
#12 0x00007f05f04f5406 in QCoreApplicationPrivate::init() () at /usr/lib/libQt5Core.so.5
#13 0x00007f05ebaa2a20 in QGuiApplicationPrivate::init() () at /usr/lib/libQt5Gui.so.5
#14 0x00007f05ead0968a in QApplicationPrivate::init() () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f05eb6184aa in () at /usr/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so
#16 0x00007f05eb61858a in () at /usr/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so
#17 0x00007f05f07d9de0 in () at /usr/lib/python3.8/site-packages/PyQt5/sip.cpython-38-x86_64-linux-gnu.so
#18 0x00007f05f1a96b8b in () at /usr/lib/libpython3.8.so.1.0
#19 0x00007f05f19f137c in PyObject_Call () at /usr/lib/libpython3.8.so.1.0
#20 0x00007f05f19cf89c in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.8.so.1.0
#21 0x00007f05f19cc5ba in _PyEval_EvalCodeWithName () at /usr/lib/libpython3.8.so.1.0
#22 0x00007f05f19d628e in _PyObject_FastCallDict () at /usr/lib/libpython3.8.so.1.0
#23 0x00007f05f19e8d64 in () at /usr/lib/libpython3.8.so.1.0
#24 0x00007f05f19d6c90 in _PyObject_MakeTpCall () at /usr/lib/libpython3.8.so.1.0
#25 0x00007f05f19d1fc4 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.8.so.1.0
#26 0x00007f05f19de138 in _PyFunction_Vectorcall () at /usr/lib/libpython3.8.so.1.0
#27 0x00007f05f19cd77c in _PyEval_EvalFrameDefault () at /usr/lib...

Read more...

Revision history for this message
Damon Lynch (dlynch3) wrote :

Did this happen only after Rapid Photo Downloader was upgraded? If so, what was the previous last working version?

I assume you tried starting it from the tty so you could get the version information. If so, that's a good idea. I'll need to keep that in mind!

To figure out if it is caused by a problem in Qt, try this:

python -m pip install -U --user PyQt5

Then see if it resolves the problem. Uninstall it afterward using pip too:

python -m pip uninstall PyQt5

If PyQt5 5.15 still fails, try 5.14.2:

python -m pip install --user PyQt5==5.14.2

Changed in rapid:
status: New → Triaged
Revision history for this message
Jurn Dikkers (jurnd) wrote :

Thanks for your reply. rapid-photo-downloader indeed works when installing

python -m pip install --user PyQt5==5.14.2

and

python -m pip install --user PyQt5-sip==12.7.2

Revision history for this message
Jurn Dikkers (jurnd) wrote :

Thought I would be able te edit my previous post, but I cannot.

So to summarize.
Rapid Photo Downloader 0.9.24 works with pyqt5 5.14.2 but on my system it does not work with pyqt5 5.15

My update history:
[2020-05-09T19:52:21+0200] [ALPM] upgraded rapid-photo-downloader (0.9.23-1 -> 0.9.24-1)

[2020-06-04T12:42:26+0200] [ALPM] upgraded python-pyqt5-sip (12.7.2-1 -> 12.8.0-1)
[2020-06-04T12:42:26+0200] [ALPM] upgraded python-pyqt5 (5.14.2-1 -> 5.15.0-2)

[2020-06-18T10:47:42+0200] [ALPM] upgraded python-pyqt5 (5.15.0-2 -> 5.15.0-3) <---- it stopped working after this

So Rapid Photo Downloader stopped working on my system after installing pyqt5 5.15

What I don't know now is how to proceed, on what end should this be fixed in your opinion?

Revision history for this message
Damon Lynch (dlynch3) wrote :

Did you try installing PyQt 5.15 using pip? It's important to test that because it comes bundled with its own complete copy of Qt. If that Qt works, then we very much suspect it is a problem with the PyQt / Qt provided by Arch. If it does not work, then we suspect there is something wrong with Rapid Photo Downloader and Qt 5.15.

Revision history for this message
Jurn Dikkers (jurnd) wrote :

Ah, you are right. It DOES work with 5.15 through pip. So it seems to be an issue with pyqt5 provided by Arch.

Rapid Photo Downloader: 0.9.24
Platform: Linux-5.7.12-arch1-1-x86_64-with-glibc2.2.5
Memory: 2.61 GB used of 16.78 GB
Confinement: none
Installed using pip: no
Python: 3.8.5
Python executable: /usr/bin/python
Qt: 5.15.0
PyQt: 5.15.0
SIP: 5.3.0
ZeroMQ: 4.3.2
Python ZeroMQ: 19.0.1 (cython backend)
gPhoto2: 2.5.25
Python gPhoto2: 2.2.1
ExifTool: 12.00
pymediainfo: 4.2.1
GExiv2: 0.12.01
Gstreamer: 1.16.2
PyGObject: 3.36.1
libraw: 0.20.0
rawkit: 0.6.0 (not functional)
psutil: 5.7.2
Exiv2: 0.27.2
glibc: 2.31
Arrow: 0.15.7
Tornado: 6.0.4
Can read HEIF/HEIC metadata: yes
Session: tty
Desktop scaling: not set
Desktop scaling detection: undetected (xsetting not running)
Desktop: None (unknown)
Default file manager: dolphin (select)

Revision history for this message
Damon Lynch (dlynch3) wrote :

Has the issue with the PyQt on ArchLinux been resolved?

Revision history for this message
Markus Germann (germannenmarkus) wrote :

No, sadly not. Today (4th of December 2020) I updated my Arch Linux and the PyQt issue is still there.

Revision history for this message
Damon Lynch (dlynch3) wrote :

Markus: if Rapid Photo Downloader works on Arch Linux with a PyQt5 package installed from Pypi using pip, and it does not work with the Arch Linux PyQt5 package, that indicates a problem with the PyQt5 package in Arch Linux.

If there is a problem with the PyQt5 package on Arch Linux, then filing a bug report here does nothing to fix that problem. The bug report needs to be filed on the PyQt5 package in Arch Linux.

Has somebody filed a bug report on the PyQt5 package in Arch Linux? If so, what is the URL?

Changed in rapid:
status: Triaged → Incomplete
Revision history for this message
Jurn Dikkers (jurnd) wrote :

The issue with pyqt5 on ArchLinux has been resolved as far as i can see. This error does not appear with version python-pyqt5-5.15.4-1.

Thank you for your time!

Revision history for this message
Damon Lynch (dlynch3) wrote :

Thanks for letting me know! I'll close this report then.

Changed in rapid:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.