Unity can't find samples

0 votes
asked Apr 22, 2021 by canangalltitschke (150 points)
Hello,

im working with unity 2019.4 and easyARSense Unity Plugin 4.3.

I have imported the tarball fileinto my project without any Problem, but when I try to import the samples Unity say:

FileNotFoundException: Could not find file 'C:\Users\Public\Documents\Unity Projects\WuerfelErkennung\Library\PackageCache\com.easyar.sense@05968e86d696-1617810166000\Samples~\DeviceSupport\Camera_CustomCamera\AndroidProject~\externalcamera\src\main\java\com\example\externalcamera\ExternalCameraParameters.java'.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <fb001e01371b4adca20013e0ac763896>:0)
System.IO.FileInfo.get_Length () (at <fb001e01371b4adca20013e0ac763896>:0)
(wrapper remoting-invoke-with-check) System.IO.FileInfo.get_Length()
UnityEditor.PackageManager.UI.IOUtils.DirectorySizeInBytes (System.String path) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.Sample.get_size () (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PackageSampleItem..ctor (UnityEditor.PackageManager.UI.IPackageVersion version, UnityEditor.PackageManager.UI.Sample sample) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PackageSampleList.SetPackageVersion (UnityEditor.PackageManager.UI.IPackageVersion version) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PackageDetails.SetDisplayVersion (UnityEditor.PackageManager.UI.IPackageVersion version) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PackageDetails.SetPackage (UnityEditor.PackageManager.UI.IPackage package, UnityEditor.PackageManager.UI.IPackageVersion version) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PackageDetails.OnSelectionChanged (UnityEditor.PackageManager.UI.IPackageVersion version) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PageManager+PageManagerInternal+<>c__DisplayClass23_0.<RegisterPageEvents>b__0 (UnityEditor.PackageManager.UI.IPackageVersion selection) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.Page.SetSelected (System.String packageUniqueId, System.String versionUniqueId) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PageManager+PageManagerInternal.SetSelected (UnityEditor.PackageManager.UI.IPackage package, UnityEditor.PackageManager.UI.IPackageVersion version) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.PackageItem.SelectMainItem () (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEditor.PackageManager.UI.VisualElementExtensions+<>c__DisplayClass0_0.<OnLeftClick>b__0 (UnityEngine.UIElements.MouseDownEvent e) (at <d3ff43e972b043d1b3f49905ec5da738>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <a9183b39766a483caf86aaa926f3554c>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <819de1aa368e45faa4f78e26c97c62b0>:0)

Also Unity package manager freeze when I try to open it.

I have tried to import the tarball file in another Unity project, but there was the same thing. Also downloading the file again dosnt work.

Thank you in advance!

1 Answer

0 votes
answered Apr 22, 2021 by kenn (18,750 points)
selected Apr 23, 2021 by canangalltitschke
 
Best answer
This looks like a Unity bug dealing with long file path on Windows.

There are two workarounds,

1. move the project to a shorter path.

2. manually copy samples (files inside Samples~ folder, do not include Samples~ itself) from the failed path out and manually import unitypackage from Samples~/StreamingAssets. The sample import of Unity does nothing but copy assets.
commented Apr 23, 2021 by canangalltitschke (150 points)
Thank you very much. Moving the Project to a shorter Path has worked.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...