flathub / flathub/com.riverbankcomputing.PyQt.BaseApp
Segmentation fault (core dumped) in 5.15-24.08
- Dominant language
- No language data
- Stars
- 12
- Forks
- 2
- Avg merge
- 7h 10m
- Merged PRs (30d)
- 1
Description
### Runtime:
runtime: org.kde.Platform
runtime-version: 5.15-24.08
sdk: org.kde.Sdk
base: com.riverbankcomputing.PyQt.BaseApp
base-version: '5.15-24.08'
### Replicate the error with simple command to open QApplication:
python3 - <<'PY'
import sys from PyQt5.QtWidgets import QApplication, QLabel
app = QApplication(sys.argv)
label = QLabel("Hello from PyQt5 in Flatpak!")
label.show()
sys.exit(app.exec_())
PY
### ERROR:
QSocketNotifier: Can only be used with threads started with QThread
Segmentation fault (core dumped)
Sometimes it opens, most of the times it throws Segmentation error
### Version of QT inside my flat-app shell:
$ python3 -c "import PyQt5.QtCore; print(PyQt5.QtCore.QT_VERSION_STR, PyQt5.QtCore.PYQT_VERSION_STR)"
5.15.15 QT
5.15.11 PyQt5
**For temperory purpose i moved my app to 5.15-23.08 (downgraded). It is working fine by downgrading.**
Thanks,
Rishabh Bhardwaj
### Addditional Info: here is my finish args
finish-args:
- --share=network
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --filesystem=xdg-download
- --filesystem=xdg-run/gvfsd
- --device=dri
- --socket=pulseaudio
- --env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess
- --env=QTWEBENGINE_CHROMIUM_FLAGS=--no-sandbox
- --env=QTWEBENGINE_DISABLE_SANDBOX=1
- --env=QTWEBENGINE_RESOURCES_PATH=/app/share/qt5/resources
- --env=QTWEBENGINE_LOCALES_PATH=/app/share/qt5/translations/qtwebengine_locales
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the minimal Python QApplication reproduction in the org.kde.Platform 5.15-24.08 runtime and compare it with 5.15-23.08, which the report says works. Examine the QSocketNotifier warning, the reported Qt 5.15.15 and PyQt5 5.15.11 versions, and the listed Flatpak finish args. Done means identifying the runtime-specific cause and confirming that the reproduction no longer segfaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100