首页 > 解决方案 > MRTK“控制台”在构建时出现在一只眼睛中

问题描述

我有一个问题,当我构建解决方案时,运行时错误出现在角落的一只眼睛中。无法阅读,但我得到了一个日志文件,说明控制台上的内容(我只能读取角落,我认为是相同的),我们在调试、发布、主控中进行了测试......并且错误仍然存​​在。在 Unity 的编辑器模式下,不会出现错误。经验是一样的,但我不能拥有这个。

我在他们的文档中找不到任何内容,这发生在 2019 年(我现在正在工作的地方)和 2018 年。我正在使用 MRTK 2.0 RC1 Refresh。我正在使用带有运动控制器的联想资源管理器。

Loading native plugins
  Loading AudioPluginMsHRTF.dll
Module information:
 Built with Compiler Ver '191627012'
 Built from '2019.1/staging' branch
 Version is '2019.1.0f2 (292b93d75a2c)'
 Release build
 Application type 'D3D'
 OS 'Windows 10 (10.0.17763) 64bit'
PlayerConnection initialized from E:/UNITY_2019_PROJECTS/BUILD VISUAL STUDIO/build/bin/x64/Release/AppX/Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55050
Multi-casting "[IP] 172.30.13.181 [Port] 55050 [Flags] 2 [Guid] 737340049 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerX64(MyPC) [Debug] 0 [PackageName] MyProject_vvjrt7vn67k36" to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55050]
PlayerConnection already initialized - listening to [0.0.0.0:55050]
Plugins: Failed to load 'WindowsMRXRSDK' because one or more of its dependencies could not be loaded.

(Filename: C:\buildslave\unity\build\Runtime/Misc/Plugins.cpp Line: 223)

GfxDevice: creating device client; threaded=1
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: NVIDIA GeForce GTX 1050 Ti (ID=0x1c82)
    Vendor:   
    VRAM:     4018 MB
Initialize engine version: 2019.1.0f2 (292b93d75a2c)
Failed to find spatial stage root, falling back to stationary tracking space type!

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 591)

Created eye textures with a "texture array" layout.  The "single-pass instancing" stereo mode will be used.

Windows Mixed Reality spatial locatability state changed to Activating.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 374)

The referenced script (Unknown) on this Behaviour is missing!

(Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 197)

The referenced script on this Behaviour (Game Object '<null>') is missing!

(Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 333)

A scripted object (probably Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSimulationProfile?) has a different serialization layout when loading. (Read 76 bytes but expected 288 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

(Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2012)

UnloadTime: 41,373700 ms
Windows Mixed Reality spatial locatability state changed to Inhibited.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 374)

Setting up 3 worker threads for Enlighten.
  Thread -> id: 36ac -> priority: 1 
  Thread -> id: 4944 -> priority: 1 
  Thread -> id: 5280 -> priority: 1 
Windows Mixed Reality spatial locatability state changed to Active.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 374)

Windows Mixed Reality spatial locatability state changed to Inhibited.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 374)

Windows Mixed Reality spatial locatability state changed to Active.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 374)

Trimming D3D resources.```

标签: unity3druntime-errorwindows-mixed-reality

解决方案


推荐阅读