Windows Store App build crashing

We have a unity game which we need to build for Windows Store.

Many of the scripts have been completely left out just so that the game can compile for Windows Store apps.

The game compiles and buildsfor Windows Store. When I launch the app the game throws exceptions which seem to be coming from native code. I don’t find them meaningful or helpful.

The log is as follows

Module information:
Built with Compiler Ver '190023026'
Built from '5.2/patch-release' branch
Version is '5.2.1p2 (008af436a8e0)'
Debug build
Application type 'XAML'
Used 'UWP'

PlayerConnection initialized from C:/Code/My App1Live 3D Win10/My App Name/bin/x64/Debug/AppX/Data (debug = 0)

'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Users\Ankit\AppData\Local\Temp\VisualStudio.XamlUIDebugger.My App13D_1.0.0.0_x64__8hw05ha0njsfa\XamlDiagnostics.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Users\Ankit\AppData\Local\Temp\VisualStudio.XamlUIDebugger.My App13D_1.0.0.0_x64__8hw05ha0njsfa\WindowsXamlDiagnosticsTap.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.HostName.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Users\Ankit\AppData\Local\Temp\VisualStudio.XamlUIDebugger.My App13D_1.0.0.0_x64__8hw05ha0njsfa\XamlDiagnosticsTap.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\mscoree.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\rasadhlp.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'. User canceled automatic symbol loading.
PlayerConnection initialized network socket : 0.0.0.0 55089

Multi-casting "[IP] 192.168.1.194 [Port] 55089 [Flags] 2 [Guid] 3890524170 [EditorId] 1338847910 [Version] 1048832 [Id] MetroPlayerX86(Archit_System) [Debug] 0" to [225.0.0.222:54997]...

'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\NapiNSP.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\pnrpnsp.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\winrnr.dll'. User canceled automatic symbol loading.
GfxDevice: creating device client; threaded=1

Disabling Low Latency presentation API.

'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Unloaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'. User canceled automatic symbol loading.
Direct3D:

    Version:  Direct3D 11.0 [level 10.0]

    Renderer: Intel(R) HD Graphics (ID=0x42)

    Vendor:   Intel

    VRAM:     128 MB

'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Enumeration.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. User canceled automatic symbol loading.
Initialize engine version: 5.2.1p2 (008af436a8e0)

PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


The resource Internal-ErrorShader.shader could not be loaded from the resource file!
(Filename: C:/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1066)


gDefaultShader
(Filename: C:/buildslave/unity/build/Runtime/Shaders/Shader.cpp Line: 88)

At this point I get an exception -

EmbeddedBreakpoint occurred
Message: My App Name.exe has triggered a breakpoint.

If I continue at this point, I get the following log -

PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


The resource Sprites-Default.mat could not be loaded from the resource file!
(Filename: C:/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1066)


'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\DevDispItemProvider.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\DDORes.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\DefaultDeviceManager.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'. User canceled automatic symbol loading.
The thread 0x2664 has exited with code 0 (0x0).
The thread 0x20cc has exited with code 0 (0x0).
The thread 0xd1c has exited with code 0 (0x0).
The thread 0xacc has exited with code 0 (0x0).
'My App Name.exe' (Win32): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\UnityEngineProxy.dll'. User canceled automatic symbol loading.
'My App Name.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\UnityEngineProxy.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\Boo.Lang.dll'. Module was built without symbols.
'My App Name.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\Boo.Lang.dll'. Module was built without symbols.
'My App Name.exe' (Win32): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\UnityScript.Lang.dll'. Module was built without symbols.
'My App Name.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\UnityScript.Lang.dll'. Module was built without symbols.
'My App Name.exe' (Win32): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\System.Linq.dll'. User canceled automatic symbol loading.
'My App Name.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\System.Linq.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Code\My App1Live 3D Win10\My App Name\bin\x64\Debug\AppX\UnityEngineDelegates.dll'. User canceled automatic symbol loading.
Disabling independent input source.

Logical Screen DPI is 96.00.

'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\SensorsNativeApi.dll'. User canceled automatic symbol loading.
ERROR FindDefaultInterface:CM_Get_Device_Interface_List_Size failed:0x00000000, InterfaceListSize = 1
ERROR SensorOpenByType:Failed to open sensor error:0x00000490
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\edputil.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\policymanager.dll'. User canceled automatic symbol loading.
'My App Name.exe' (Win32): Loaded 'C:\Windows\System32\xmllite.dll'. User canceled automatic symbol loading.
Exception thrown at 0x00007FFC1D3FA1C8 (KernelBase.dll) in My App Name.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000F46D3FECB0).
Exception thrown at 0x00007FFC1D3FA1C8 (KernelBase.dll) in My App Name.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000F46D3FEB80).
PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


The resource Soft.psd could not be loaded from the resource file!
(Filename: C:/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1066)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


The referenced script on this Behaviour is missing!
(Filename: C:/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1496)


MainApplication
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/UnityEngineDebugBindings.gen.cpp Line: 70)


Reached
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/UnityEngineDebugBindings.gen.cpp Line: 70)


The referenced script on this Behaviour is missing!
(Filename: C:/buildslave/unity/build/Runtime/Mono/MonoBehaviour.cpp Line: 1649)


ColorData
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/UnityEngineDebugBindings.gen.cpp Line: 70)


ColorData End
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/UnityEngineDebugBindings.gen.cpp Line: 70)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


PersistentManager: Failed to open file at path: library/unity default resources
(Filename: C:/buildslave/unity/build/Runtime/Serialize/PersistentManager.cpp Line: 1953)


The resource Internal-ErrorShader.shader could not be loaded from the resource file!
(Filename: C:/buildslave/unity/build/Runtime/Misc/ResourceManager.cpp Line: 1066)


gDefaultShader
(Filename: C:/buildslave/unity/build/Runtime/Shaders/Shader.cpp Line: 88)


Exception thrown at 0x00007FFBDEE4BCAB (UnityPlayer.dll) in My App Name.exe: 0xC0000005: Access violation reading location 0x00000000000000B8.
Exception thrown at 0x00007FFC1D3FA1C8 (KernelBase.dll) in My App Name.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000F46D3FEC60).
Exception thrown at 0x00007FFBDEE4BCAB (UnityPlayer.dll) in My App Name.exe: 0xC0000005: Access violation reading location 0x00000000000000B8.
Exception thrown at 0x00007FFBDEE4BCAB (UnityPlayer.dll) in My App Name.exe: 0xC0000005: Access violation reading location 0x00000000000000B8.
The program '[716] My App Name.exe' has exited with code 0 (0x0).

Also, the following thread mentions some problems with shaders on older computers.

So, before I waste anymore time debugging the app, I wanted to make sure this isn’t a bug in any of the shaders or a bug not in the code.

All help is greatlt appreciated :slight_smile:

Try building to empty folder… It’s weird that it fails to load default resources, if the issue persists, please submit a bug with repro project.