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
- Camera Preview does not detect multiple cameras with same GameObject name
- Crash on TypeTreeIterator::Children() when renaming a corrupted asset while Asset Serialization is set to Mixed
- Cameras (Camera.targetDisplay) render only to Display 0 in the Player when Multi-Display setup is used and DX12 API is set
- [Vulkan] _CameraOpaqueTexture produces a feedback effect on Android Adreno devices when using Vulkan
- Loading animations are hitching or stopping when using "SceneManager.LoadSceneAsync" to load new scenes
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a4