Search Issue Tracker

Fixed in Unity 2018.1

Votes

0

Found in

Issue ID

954551

Regression

Yes

Unity sometimes deadlocks when entering play mode due to a race condition in PersistentManager

Scene Management

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 1Crash, freeze, data loss, work stops

Main thread stack from hang dump:

ntdll.dll!RtlEnterCriticalSection()
Unity.exe!PersistentManager::IsObjectAvailable(int heapID) Line 1977
Unity.exe!GameObject::CheckConsistency() Line 765
Unity.exe!PersistentManager::CheckConsistencyObjectAndUnlockIntegrationMutexInternal(int instanceID) Line 1252
Unity.exe!TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced(int timeoutMS) Line 144
Unity.exe!LoadSceneOperation::IntegrateTimeSliced(int timeSliceMS) Line 264
Unity.exe!PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags flags, int timeSliceMs) Line 454
Unity.exe!PreloadManager::WaitForAllAsyncOperationsToComplete() Line 561
Unity.exe!EditorSceneManager::RestoreSceneBackups(std::vector<EditorSceneManager::SceneBackup,stl_allocator<EditorSceneManager::SceneBackup,105,16> > & sceneBackups, EditorSceneManager::PlayModeChange mode, bool scriptsCouldBeChanged) Line 1021
Unity.exe!PlayerLoopController::EnterPlayMode(bool scriptsWereRecompiled) Line 468
Unity.exe!PlayerLoopController::SetIsPlaying(bool isPlaying) Line 361
Unity.exe!Application::TickTimer() Line 1952
Unity.exe!MainMessageLoop() Line 414
Unity.exe!WinMain(HINSTANCE__ * hInst, HINSTANCE__ * hPrev, char * szCmdLine, int nCmdShow) Line 1018

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.