Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 5.9.4
-
Fix Version/s: 5.10.1, 5.11.0 Beta 2
-
Component/s: QPA
-
Labels:None
-
Platform/s:
Description
When running an unmodified version of same game on Android, you can get the "QApplication is not created on main thread" warning. This indicates that something has called QThread::currentThread() before initializing the Q*Application, causing the Android main thread to be registered instead of the Qt main thread. This may lead to crashes later on, specifically for event deliveries and signal/slot bindings, if I recall correctly.
Reportedly it only happens in debug mode, so it is probably due to a global static QObject, which has some debug-specific calls that have proven to be the cause of this before.
Attachments
Issue Links
- is duplicated by
-
QTBUG-66077 [Qt 5.11 Alpha snapshot] "WARNING: QApplication was not created in the main() thread." from mapviewer example on Windows
-
- Closed
-
- relates to
-
QTBUG-66238 5.9.3 -> 5.9.4 regression: fa2a653 causes startup hang on Android
-
- Closed
-
- resulted from
-
QTBUG-65820 QStandardPaths::AppDataLocation is worong ("/") in Android Debug builds with Qt 5.9.4 snapshot
-
- Closed
-