Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2020.1.X
Votes
2
Found in
2020.1.0a7
Issue ID
1188161
Regression
Yes
"Assertion failed" when Unity recreates empty folders from their orphaned meta files (ADBv2 only)
How to reproduce:
1. Open the attached "NoGithubReproProject" repro project
2. Find the "New Folder" folder and open it in your file explorer
3. Delete "New Folder" folder but leave its .meta file intact
4. Go back to the Editor and observe that the folder is missing
5. Unfocus and re-focus the Editor to re-create it
6. Observe the console
Expected result: no errors are thrown when re-creating folders from loose .meta files
Actual result: "Assertion failed on expression: 'itGuid != guidMap.end()'" error is thrown once the folder is re-created
Reproduced in: 2020.1.0a9, 2020.1.0a7
Notes:
-on older versions, the folder would not get re-created from its .meta file and thus no error would be present (Changed by Case 1177654)
-In a new empty project, Unity will just delete the orphaned meta file but if there is a ".hg", ".svn" or ".git" folder in the project root (like in "NoGithubReproProject") or version control is enabled, the code will recreate the folder but cause the assert afterward when refreshing in step 5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
- [RenderingDebugger][InputSystemPackage] Ctrl+Backspace shortcut doesn't work to open the Rendering Debugger when New Input System is in use
- No option to skip video transcoding when launching a Project
- “ValidateSchema Error2” error is thrown in the Player when using IL2CPP Scripting Backend
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a4