XRTK / com.xrtk.core

The Official Mixed Reality Framework for Unity
https://xrtk.io
MIT License
309 stars 34 forks source link

Symbolic Linker sometimes hangs when trying to delete an old link #793

Closed StephenHodgson closed 3 years ago

StephenHodgson commented 3 years ago

XRTK - Mixed Reality Toolkit Bug Report

Describe the bug

When updating to a branch where a symbolic link has been deleted or removed the symbolic linker will cause the editor to hang indefinitely.

To Reproduce

  1. Remove a symbolic link from the project and commit the change
  2. Switch to a branch where the symbolic link exists
  3. Close the editor
  4. Switch back to the branch where the symbolic link was removed
  5. Open the editor
  6. Observe that the editor fails to fully load the project and hangs on project open

Expected behavior

Project should open without delays

Actual behavior

Project hangs when trying to open the project where a link was removed.

Your Setup

StephenHodgson commented 3 years ago

I tried digging into this in depth yesterday, and it seems to be a bug with the Unity AssetDatabase. The editor seems to freeze up if a folder with an directory junction (symlink) is inside the project's asset folders and the reference to that junction is no longer valid.

This typically is the case when using a SVC like GIT to change between branches and a previously valid link is removed.