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 AudioMixer::GetFMODChannelGroup when entering Play Mode in a specific project
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
- Scene View doesn't select the Canvas when it's clicked with the View Tool
- Transform fields are impossible to edit when Inspector window is resized
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a4