簡體   English   中英

全息仿真器在Unity啟動屏幕之前掛起

[英]Holographic Emulator hangs before Unity splash screen

我正在運行Visual Studio 2015更新3,Unity 5.6.3f1,全息仿真器10.0.14393.1358和Windows 10 SDK 10.0.14393.798。 我只是在為HoloLens開發基礎課程學習Pluralsight課程,並且在將應用程序部署到HoloLens模擬器時一直遇到這個問題。

無論我是在沒有調試的情況下運行還是在沒有調試的情況下運行,並且沒有設置任何斷點,我都可以看到開始菜單綻放得很好,然后將其清除,並在應該顯示Unity啟動畫面的位置上,我得到了一個小的白色光標屏幕中間沒有其他任何事情發生。

但是,如果我在app.cs構造函數中設置了一個斷點,然后逐步執行代碼,則可以看到啟動屏幕,並且一旦我逐步執行Main方法和CoreApplication.Run(App)方法調用,應用程序便會運行。

當查看輸出日志時,當程序掛起時,它將在以下所示的位置停止。

Direct3D:

Version:  Direct3D 11.0 [level 11.1]

Renderer: Microsoft RemoteFX Graphics Device - WDDM (ID=0x2c1)

Vendor:   Microsoft

VRAM:     639 MB

Initialize engine version: 5.6.3f1 (d3101c3b8468)

'Example1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Example1VS.Debug_x86.xxxx\UnityEngineProxy.dll'. Cannot find or open the PDB file.
'Example1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Example1VS.Debug_x86.xxxx\System.Linq.dll'. Cannot find or open the PDB file.
'Example1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Example1VS.Debug_x86.xxxx\System.Reflection.Extensions.dll'. Module was built without symbols.
The following GlobalManagers were stripped from the build (Either because they're not used or not supported on this platform):
  NetworkManager
  MasterServerInterface
  UnityAdsManager
  ClusterInputManager
  CrashReportManager

If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.

(Filename: C:/buildslave/unity/build/Runtime/VR/VRDevice.cpp Line: 194)

但是,由於設置了斷點並單步執行代碼而使程序正確運行時,在輸出窗口中,上面列出的輸出之后將出現以下幾行

UnloadTime: 36.962299 ms

Setting up 1 worker threads for Enlighten.

  Thread -> id: 8d0 -> priority: 1 

The program '[1480] Example1.exe' has exited with code -1 (0xffffffff).

我的開發筆記本電腦有兩個適配器。

AMD Radeon HD 8790M
Intel HD Graphics 4600

我在redditt r / HoloLens上找到了一篇帖子,內容是“進入播放器設置->其他設置->顏色空間並將其交換為Gamma而不是線性”,但我的設置已經在Gamma上,因此似乎不適用。

有任何想法嗎?

我猜這是怎么回事,模擬器(使用hyper v DirectX加速)正在渲染到錯誤的適配器。 聽起來這與計時有關。 具有雙視頻卡設置的筆記本電腦大多數時候都使用低功耗的英特爾適配器,但是在渲染3d內容時切換到nvidia卡。 我猜測unity和/或hyperv在切換發生之前正在選擇適配器。

嘗試的事情:

  • 您應該能夠始終在某個地方的驅動程序中強制使用一個適配器。 看看這是否可以解決問題,如果您知道那是問題所在。
  • 嘗試將兩個適配器的驅動程序更新為最新版本。
  • 嘗試更新到最新的工具鏈(vs2017 / unity2017)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM