Hi
I’m recently upgrading to Unity 5.3.8f1 and recently I got the issue of the app crash during the startup on Windows phone device.
Code
_bridge = new WinRTBridge.WinRTBridge();
appCallbacks.SetBridge(_bridge); <----- Exception at this.
Here is the error log I got from Visual Studio:
‘FVCE.exe’ (CoreCLR: DefaultDomain): Loaded ‘C:\windows\system32\mscorlib.ni.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\FVCE.exe’. Symbols loaded.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.RUNTIME.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\WinMetadata\Windows.winmd’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\UnityPlayer.winmd’. Module was built without symbols.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.RUNTIME.INTEROPSERVICES.WINDOWSRUNTIME.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\System.Runtime.WindowsRuntime.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\WinRTBridge.winmd’. Cannot find or open the PDB file.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\BridgeInterface.winmd’. Module was built without symbols.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\data\ProgramData\Microsoft\Windows\AppRepository\Packages\D52A8D61.BarnStormer_0.9.1000.0_arm__jwbwg6xx0377a\NI\Assembly-CSharp-firstpass.ni.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\MarkerMetro.Unity.WinIntegration.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.COLLECTIONS.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.THREADING.TASKS.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.RUNTIME.EXTENSIONS.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\en-US\mscorlib.debug.resources.dll’. Module was built without symbols.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\UnityEngine.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\Assembly-CSharp.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.IO.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.TEXT.ENCODING.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\Data\SharedData\PhoneTools\AppxLayouts\D52A8D61.BarnStormerVS.Debug_ARM.nahirsch\protobuf-net.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘FVCE.exe’ (CoreCLR: .): Loaded ‘C:\windows\system32\SYSTEM.OBJECTMODEL.NI.DLL’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
Exception thrown: ‘System.TypeInitializationException’ in FVCE.exe
I found the (sort-of) similar thread System.TypeInitializationException at appCallbacks.SetBridge(_bridge) - Unity Engine - Unity Discussions. However it doesn’t actually pinpoint the exact cause and it looked like the issue was resolved with 5.3.5p2, but I’m already on 5.3.8f1. Isn’t the fix being ported over?