Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0
-
None
-
80fdecb3a548f1afbb3000ef62fed6d3f942f7ea
Description
In qqmlimport.cpp we frequently access the global qmlEnginePluginsWithRegisteredTypes(). That's a Q_GLOBAL_STATIC, so its retrieval is actually thread-safe. However, when we call methods on it we still have to protect it from concurrent access. As it stands, when starting multiple QML engines in parallel you can easily crash the application by concurrently importing things.