当我尝试在 Unity for Hololens 中运行视频播放器时,应用程序崩溃(内存溢出)。有没有办法在 Hololens 中运行视频播放器。
更新:“VideoPlayer.exe”(CoreCLR:DefaultDomain):已加载“c:\data\Programs\WindowsApps\Microsoft.NET.CoreRuntime.1.0_1.0.23819.0_x86__8wekyb3d8bbwe\mscorlib.ni.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\entrypoint\VideoPlayer.exe”。已加载符号。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Runtime.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。'VideoPlayer.exe'(CoreCLR:CoreCLR_UWP_Domain):已加载' C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\WinMetadata\Windows.winmd'。模块是在没有符号的情况下构建的。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityPlayer.winmd”。模块是在没有符号的情况下构建的。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Runtime.InteropServices.WindowsRuntime.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86。Web_User\System.Runtime.WindowsRuntime.dll'。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\WinRTBridge.winmd”。无法找到或打开 PDB 文件。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\BridgeInterface.winmd”。模块是在没有符号的情况下构建的。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Collections.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityEngine.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\Assembly-CSharp.dll”。已加载符号。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityEngine.Networking.dll”。跳过加载符号。模块经过优化,调试器选项“只是我的代码” 已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityEngine.HoloLens.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityEngine.UI.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.IO.dll”。跳过加载符号。模块已优化且调试器选项 ' 启用了“仅我的代码”。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Net.Primitives.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Private.Networking.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\Microsoft.Win32.Primitives.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Reflection.Primitives.dll”。模块是在没有符号的情况下构建的。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Reflection.dll”。模块是在没有符号的情况下构建的。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Runtime.Extensions.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。'视频播放器。exe' (CoreCLR: CoreCLR_UWP_Domain): 加载'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Threading.Tasks.dll'。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Private.Uri.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Text.Encoding.dll”。模块是在没有符号的情况下构建的。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityEngine.VR.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Runtime.InteropServices.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Threading.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。'视频播放器.exe' (CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Diagnostics.Debug.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。模块信息:使用编译器版本“190023918”构建从“5.6/release”分支版本为“5.6.0b3 (358ff4ed3952)”调试构建应用程序类型“D3D11”使用“UWP”
操作系统“Windows 10 (10.0.14393)”
PlayerConnection 从 C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/VideoPlayerVS.Debug_x86.Web_User/Data 初始化(调试 = 0)
PlayerConnection 初始化网络套接字:0.0.0.0 55348
多播“[IP] 172.16.80.2 [Port] 55348 [Flags] 2 [Guid] 3675464893 [EditorId] 4294967295 [Version] 1048832 [Id] MetroPlayerX86(HoloLens-SP0ED) [Debug] 0”到[225.0.0.222: 54997]...
开始收听 [0.0.0.0:55348]
GfxDevice:创建设备客户端;线程=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: Microsoft RemoteFX Graphics Device - WDDM (ID=0x2c1)
Vendor: Microsoft
VRAM: 639 MB
初始化引擎版本:5.6.0b3 (358ff4ed3952)
“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\UnityEngineProxy.dll”。无法找到或打开 PDB 文件。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Linq.dll”。跳过加载符号。模块已优化,调试器选项“仅我的代码”已启用。“VideoPlayer.exe”(CoreCLR:CoreCLR_UWP_Domain):已加载“C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\VideoPlayerVS.Debug_x86.Web_User\System.Reflection.Extensions.dll”。模块是在没有符号的情况下构建的。逻辑屏幕 DPI 为 144.00。
以下 GlobalManagers 已从构建中删除(因为在此平台上未使用或不支持它们): NetworkManager MasterServerInterface UnityAdsManager ClusterInputManager UnityAnalyticsManager CrashReportManager PerformanceReportingManager
如果您的机器有多个图形适配器,Unity 可能在错误的适配器上创建了 WindowContext。如果您在播放时遇到黑屏,请重新启动编辑器。
(文件名:C:/buildslave/unity/build/Runtime/VR/VRDevice.cpp 行:179)
程序“[2292] VideoPlayer.exe”已退出,代码为 -1073741819 (0xc0000005)“访问冲突”。