microsoft / MixedReality-SpectatorView

Mixed reality spectator experiences
MIT License
194 stars 114 forks source link

An infinite import loop has been detected & SV toolbar menu barely working #404

Open nooxouille opened 4 years ago

nooxouille commented 4 years ago

Hi there ! Hope you are doing well.

Versions & plateforms

Problem

I have followed the instructions from the documentation. I have cloned the SV repo, checkout to master, executed the "CreateUnityPackage.bat", and referenced the package inside unity. I think I did it the right way : from the unity's package manager, I went in "...\MixedReality-SpectatorView\src\SpectatorView.Unity\Assets" and took the package.json file

Errors get fired but updating ARKit, ARCore, ARFoundation and ARsubsystems to 2.2.0 preview6 solve them but then, this one stays around :

An infinite import loop has been detected. The following Assets were imported multiple times, but no changes to them have been detected. Please check if any custom code is trying to import them

Packages/com.unity.xr.arsubsystems/CHANGELOG.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/RedMaterial.mat
Packages/com.unity.xr.arkit/README.md
Packages/com.microsoft.mixedreality.spectatorview/package.json
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/green.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/QuadView.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Axis2.prefab
Packages/com.unity.xr.arfoundation/CHANGELOG.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Default Mobile Network Configuration Visual.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/RecordTexture.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Scripts/Socketer/README.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/SpectatorView.Compositor.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv18.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Meshes/Cone.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpatialAlignment/README.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/YUVHelper.cginc
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/TextureClear.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/HoloAlpha.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/OcclusionMask.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Mobile ArUco Marker Visual.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/Downsample.mat
Packages/com.unity.xr.arkit/CHANGELOG.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Scripts/ScreenRecording/README.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv12.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv1.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv15.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Meshes/Cone.fbx
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv16.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv10.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/HoloAlpha.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv17.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv4.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/BlueMaterial.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv0.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/SpectatorView.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Axis.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/StateSynchronizationAssets.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/OcclusionMask.mat
Packages/com.microsoft.mixedreality.spectatorview/SpatialAlignment.ASA/AzureSpatialAnchors.SDK/Plugins/HoloLens/version.txt
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/PlayTexture.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/RecordingTestCubeMaterial.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/ARFoundationTrackingObserver.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/ExtractAlpha.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/TextureClear.mat
Packages/com.microsoft.mixedreality.spectatorview/SpatialAlignment.ASA/AzureSpatialAnchors.SDK/Plugins/iOS/Podfile
Packages/com.unity.xr.arkit/Runtime/UnitySubsystemsManifest.json
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/RecordButton.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv8.png
Packages/com.unity.xr.arcore/package.json
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/blue.mat
Packages/com.unity.xr.arfoundation/package.json
Packages/com.unity.subsystemregistration/CHANGELOG.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/YellowMaterial.mat
Packages/com.unity.xr.arkit/LICENSE.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/IgnoreAlpha.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/CubeMaterial.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/RGBToNV12.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/ExtractAlpha.shader
Packages/com.unity.xr.arcore/Runtime/UnitySubsystemsManifest.json
Packages/com.unity.xr.arcore/Third Party Notices.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/BlueButton.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/white.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/AlphaBlend.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv14.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Default Mobile UI.prefab
Packages/com.unity.xr.arkit/package.json
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/red.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/YUVToRGB.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Scripts/StateSynchronization/README.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv19.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/SpectatorView.HeadsetCalibration.prefab
Packages/com.unity.xr.arsubsystems/package.json
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Audio/C.wav
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv7.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv3.png
Packages/com.unity.xr.arcore/CHANGELOG.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/IgnoreAlpha.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv5.png
Packages/com.unity.subsystemregistration/package.json
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/RGBToNV12.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/BGRToRGB.shader
Packages/com.unity.xr.arcore/LICENSE.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/HoloLensTrackingObserver.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/AlphaBlend.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/CyanMaterial.mat
Packages/com.microsoft.mixedreality.spectatorview/SpatialAlignment.ASA/AzureSpatialAnchors.SDK/Resources/SpatialAnchorConfig.asset
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Mobile QR Code Marker Visual.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/SpectatorView.SpatialCoordinateLocalizers.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/TCPConnectionManager.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Green Marker Plane.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/RGBToYUV.shader
Packages/com.microsoft.mixedreality.spectatorview/SpatialAlignment.ASA/Plugins/Android/AndroidManifest.xml
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Recording Test Objects.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv11.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/PurpleMaterial.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/StopTexture.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv2.png
Packages/com.unity.xr.arcore/README.md
Packages/com.unity.xr.arkit/Runtime/iOS/Resources/ARKitShader.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/ColorCorrection.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Materials/GreenMaterial.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Scripts/UI/README.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv13.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/Blur.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv9.png
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.ExternalDependencies/UnityFiles
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/YUVToRGB.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/BGRToRGB.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Scripts/Compositor/README.md
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Prefabs/Blue Marker Plane.prefab
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/RGBToYUV.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/Blur.mat
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/ColorCorrection.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView/Resources/sv6.png
Packages/com.unity.xr.arcore/Runtime/Android/Resources/ARCoreShader.shader
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Shaders/Downsample.shader
Packages/com.microsoft.mixedreality.spectatorview/SpatialAlignment.ASA/Plugins/Android/mainTemplate.gradle
Packages/com.microsoft.mixedreality.spectatorview/SpectatorView.Editor/Resources/Materials/QuadView.mat

Saving, closing and opening the project make the toolbar spectator view menu appears. But the error remain. I can't edit the spectator view settings nor any other SV related settings : on click, nothing happen but the error logs ...

Other informations

I am struggling for quite a long time with spectator view, probably misunderstanding something. I have try many, many times to make it work and lately, following the instructions with the submodule solution just trigger errors so I went for the other solution. I need to make this work for next week, sadly ...

[EDIT] Before that, I tried with the Unity XR SDK pipeline and the submodule solution. It worked "well" until starting the SV application on android. Connecting it to the HL2 made the HL2 app crach.

I am now trying inside an ampty project, again via the submodule. When going for the manifest.json, nothing happen but a red log:

GUID [bd091fc8013c942f586c1672b8ee2b27] for asset 'Packages/com.unity.xr.arcore/Runtime/Android/unityandroidpermissions.aar' conflicts with: 'Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar' (current owner) We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

chrisfromwork commented 4 years ago

We only support Unity 2019.2. currently. There are conflicting ar foundation dependencies between azure spatial anchors and the MRTK that have prevented us from moving to Unity 2019.4.. I am not sure if these android related import issues are due to using Unity 2019.4.*

nooxouille commented 4 years ago

Alright, my bad then ! Do you see the light at the end of the tunnel regarding the conflicts ? Or is it a HUGE piece that might take a while before being resolved ?