Qt causes Python's Py_Main to no-op on Windows
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 36k
- Merge medio
- 1g 9h
- PR unite (30g)
- 558
Descrizione
Bug report
There is a a very weird bug with Python 3.10.4 and Qt (both 5.15.2 and 6.3.0) such that if you reference any non-trivial Qt classes or methods (such as qIsFinite, QString, or QVector) on Windows, trying to call Py_Main (or Py_BytesMain) will result in a no-op (the program will immediately exit 0 and not show the Python interactive shell). Furthermore, the bug is absent on MacOS. I have linked a minimal example of the bug at https://github.com/Landmaster/python-embed-qt-bug. The corresponding bug report on the QT side is at https://bugreports.qt.io/browse/QTBUG-103734.
Your environment
- CPython versions tested on: 3.10.4
- Operating system and architecture: Windows 11
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con l’esempio minimo collegato su Windows 11 usando CPython 3.10.4 e Qt 5.15.2 o 6.3.0, confrontando Py_Main e Py_BytesMain con e senza riferimenti Qt non banali. Leggi il report QTBUG-103734 collegato e determina la causa; il lavoro è completato quando il programma incorporato non termina più silenziosamente invece di mostrare la shell interattiva.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100