Script engine will still running and using EntityEditPacketSender, which is owned by EntityScriptServer, which was destroyed. https://highfidelity.manuscript.com/f/cases/11071/
Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -476,6 +476,7 @@ void EntityScriptServer::clear() { · 475 unmodified lines | ||
| 476 | 476 | // do this here (instead of in deleter) to avoid marshalling unload signals back to this thread |
| 477 | 477 | _entitiesScriptEngine->unloadAllEntityScripts(); |
| 478 | 478 | _entitiesScriptEngine->stop(); |
| 479 | + _entitiesScriptEngine->waitTillDoneRunning(); | |
| 479 | 480 | } |
| 480 | 481 | |
| 481 | 482 | _entityViewer.clear(); |