Cinemachine PackageManager Error

I have Unity version : 2019.4.14f1 I opened a new project first thing i did was install Cinemachine through Package Manager.And I got this error.I didn’t install any samples of Cinemachine into project as soon as i install cinemachine Package Manager disseapered.

I recently changed my downloaded asset folder to another disk. I linked the file “Asset Store-5.x” from My C disc to my F disc and the project is on my G disc. Error might be happening from this?

Error Log:
Package Manager Window had an error while completing an operation: System.IO.FileNotFoundException: Could not find file ‘G:\Tools\Projelerim\Game Development\Company\Games\GameOnProgress\3D\Blockade\Library\PackageCache\com.unity.cinemachine@2.6.3\Samples~/Nested Timeline Scrub Bubble\CinemachineTimelineEditorExtensions\TimelineEditorExtensions\TimelineEditorExtensions.asmref.meta’.
File name: ‘G:\Tools\Projelerim\Game Development\Company\Games\GameOnProgress\3D\Blockade\Library\PackageCache\com.unity.cinemachine@2.6.3\Samples~/Nested Timeline Scrub Bubble\CinemachineTimelineEditorExtensions\TimelineEditorExtensions\TimelineEditorExtensions.asmref.meta’
at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x000c4] in <9577ac7a62ef43179789031239ba8798>:0
at System.IO.FileInfo.get_Length () [0x0003f] in <9577ac7a62ef43179789031239ba8798>:0
at (wrapper remoting-invoke-with-check) System.IO.FileInfo.get_Length()
at UnityEditor.PackageManager.UI.IOUtils.DirectorySizeInBytes (System.String path) [0x00027] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.PackageManager.UI.Sample.get_size () [0x00031] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.PackageManager.UI.PackageSampleItem…ctor (UnityEditor.PackageManager.UI.IPackageVersion version, UnityEditor.PackageManager.UI.Sample sample) [0x00042] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.PackageManager.UI.PackageSampleList.SetPackageVersion (UnityEditor.PackageManager.UI.IPackageVersion version) [0x0007e] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.PackageManager.UI.PackageDetails.SetDisplayVersion (UnityEditor.PackageManager.UI.IPackageVersion version) [0x00241] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.PackageManager.UI.PackageDetails.SetPackage (UnityEditor.PackageManager.UI.IPackage package, UnityEditor.PackageManager.UI.IPackageVersion version) [0x0004d] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.PackageManager.UI.PackageDetails.OnPackagesUpdated (System.Collections.Generic.IEnumerable1[T] updatedPackages) [0x00085] in <68af50843d0a45398c92799647332ec2>:0 at UnityEditor.PackageManager.UI.PackageDetails.<OnEnable>b__23_0 (System.Collections.Generic.IEnumerable1[T] added, System.Collections.Generic.IEnumerable1[T] removed, System.Collections.Generic.IEnumerable1[T] preUpdate, System.Collections.Generic.IEnumerable1[T] postUpdate) [0x00000] in <68af50843d0a45398c92799647332ec2>:0 at (wrapper delegate-invoke) System.Action4[System.Collections.Generic.IEnumerable1[UnityEditor.PackageManager.UI.IPackage],System.Collections.Generic.IEnumerable1[UnityEditor.PackageManager.UI.IPackage],System.Collections.Generic.IEnumerable1[UnityEditor.PackageManager.UI.IPackage],System.Collections.Generic.IEnumerable1[UnityEditor.PackageManager.UI.IPackage]].invoke_void_T1_T2_T3_T4(System.Collections.Generic.IEnumerable1<UnityEditor.PackageManager.UI.IPackage>,System.Collections.Generic.IEnumerable1<UnityEditor.PackageManager.UI.IPackage>,System.Collections.Generic.IEnumerable1<UnityEditor.PackageManager.UI.IPackage>,System.Collections.Generic.IEnumerable1<UnityEditor.PackageManager.UI.IPackage>)
at UnityEditor.PackageManager.UI.PackageDatabase+PackageDatabaseInternal.OnPackagesChanged (System.Collections.Generic.IEnumerable1[T] packages) [0x00168] in <68af50843d0a45398c92799647332ec2>:0 at (wrapper delegate-invoke) System.Action1[System.Collections.Generic.IEnumerable1[UnityEditor.PackageManager.UI.IPackage]].invoke_void_T(System.Collections.Generic.IEnumerable1<UnityEditor.PackageManager.UI.IPackage>)
at UnityEditor.PackageManager.UI.UpmClient+UpmClientInternal.OnPackageInfosUpdated (System.Collections.Generic.IEnumerable1[T] packageInfos) [0x00166] in <68af50843d0a45398c92799647332ec2>:0 at UnityEditor.PackageManager.UI.UpmClient+UpmClientInternal.OnProcessAddResult (UnityEditor.PackageManager.Requests.Request1[T] request) [0x00042] in <68af50843d0a45398c92799647332ec2>:0
at (wrapper delegate-invoke) System.Action1[UnityEditor.PackageManager.Requests.AddRequest].invoke_void_T(UnityEditor.PackageManager.Requests.AddRequest) at UnityEditor.PackageManager.UI.UpmBaseOperation1[T].OnSuccess () [0x00002] in <68af50843d0a45398c92799647332ec2>:0

Interesting. I’m not able to reproduce this issue.

Using windows.
New project with Unity 2019.4.14f1.
Install Cinemachine 2.6.3 from package manager.
No errors.

Have you tried deleting your Library folder and re-opening the project?

You might be tripping over a bug where the package manager rejects paths that are too long. Can you try moving your project to a place with a short path?

Hi Gregoryl,

It seems like you are right, path was too long for cinemachine somehow. I repeated the process with a smaller path. Errors didn’t occured this time. Thank you for your time.

Is there any way (a fix from Unity) to avoid this bug?
I have the same issue, and because of organizational reasons, the path to my project can’t really be shorter

Yes, Unity is fixing this. It may have already been fixed, I’m not sure. Try with the latest 2020.2.

Thanks Gregoryl

2020.2.1 is the latest version so far, still waiting for 2020.2.2 since last year :slight_smile: hopefully that will come soon. The Cinemachine error isn’t a big show stopper at the moment anyway