I have a custom menu item in a Unity2019.1.5f1 project which shows/hides several objects (from hierarchy) and components (from inspectors). To hide objects/components I set their hideFlags property.
After I restart Unity, with or without that script existing in my assets, I got the following error when exiting play mode:
—> Assertion failed on expression: ‘VCCache::instance != NULL’ unity
The menu item function works as expected but every time if I exit playmode with objects/components hidden I got an error:
—> Assertion failed on expression: ‘ptr->GetHideFlags() == m_RequiredHideFlags’
I just tried running the same unit tests on all Unity versions from 2019.1.0 to 2019.1.6
I think it was introduced in 2019.1.3. In 2019.1.2 I don’t get this error. After updating to 2019.1.3 I get the errors. Going back to 2019.1.2 fixes the errors again.
I’m passing the following arguments
-projectPath “…” -batchmode -logFile -runTests -testPlatform “editmode” -testResults “…\TestResults.xml”
So i was running into this issue as well. I deleted the “Assembly” files in my project folder. Unity repopulated them and everything is working fine now.
It looks like the implementation of the method UnityEditorInternal.VR.XRProjectSettings.Internal_SaveSettings changed between versions 2019.1.2 and 2019.1.3. The new version has some kind of source control integration that fails.
I tried to do that but didn’t fix the problem for me
We should try to evoke a Unity insider but can’t find the proper formula in my spell tome… Guess the only way to face this is to report the issue. :s
I’ve just tried switching to 2019.1.7f1 and the problem has gone away. I’ve tried it a few times and not made any other changes, so hopefully this is a fix. I see from the release notes they had made some changes to the Version Control code, so perhaps this has also resolved this.
could it be anything to do with our GPU drivers? I am using Nvidia latest ‘Studio’ drivers (430.86). I’ve had this issue sporadically for the last 3 or 4 Unity versions i have tried (happens seemly randomly, then never goes away in that project.