You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::shared_ptr<ScriptManager> strongRef(weakRef);
if (!strongRef) {
qCWarning(scriptengine) << "loadEntityScript.contentAvailable -- ScriptManager was deleted during getScriptContents!!";
return;
The text was updated successfully, but these errors were encountered:
The issue in the code is that if weakRef is not valid, std::shared_ptr constructor throws an exception instead of making a null shared pointer like our code expects. Using lock() method instead will fix this. We should audit code and find all such occurences.
It happens when script loads after script engine has already been deleted:
Backtrace:
Source code:
The text was updated successfully, but these errors were encountered: