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
- URP Cascaded Shadows do not have a falloff in Player when the Player is built not in Development Mode
- Grid in animation preview window is rendered on top of the object
- WebGPU Graphics.RenderPrimitives fails on MeshTopology.Quads with Validation errors when exceeding 64k vertices
- Task status is "WaitingForActivation" when awaiting a faulted task inside that task
- 0 is returned when any output from Split Node is input into the Lerp Node
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a4