Windows Store & Phone - Exception in msvcr120d_app.dll

I’m having a really hard time figuring out where this crash is coming from. It only happens in Windows Phone and Windows Store builds, never in the Editor or other platforms (eg., iOS, Android.)

It appears to be something to do with Unity’s gfxdeviceworker.cpp. I’ve attached a screenshot of the call stack, and will happily provide more info if it helps…

It happens randomly and unfortunately there doesn’t seem to be one consistent method to reproduce it. I can’t upload this project for repro for legal reasons. Anyone have any ideas on what to do, what might cause this type of exception?

Hi,

could you post the player log or Visual Studio output? The latter would be preferable.

When you say it happens randomly, how easy is it to reproduce it? Does it happen like every 5 minutes or more like 5 hours?

Which Unity version are you on? What kind of devices do you get the crashed on (for example, were you able to reproduce it both on phone and PC, or just phone and tablets)?

And finally, could you try adding the following line at the end of App class constructor, in App.xaml.cs file - it will disable multithreaded renderer, so the stacktrace information will contain everything that lead up to the crash point:

appCallbacks.AddCommandLineArg("-force-gfx-direct");

Thank you for the speedy reply!

Building using Unity 4.5.5f1 (latest stable). The game crashes every few minutes or so. Pretty consistent during the main gameplay scene.

Consistently crashes on a Dell XPS Desktop and Surface Pro 3, and phone devices including a Nokia Lumia 520 and a Nokia Lumia 630. Building for Windows Store Universal 8.1

Here is the Call Stack with the added command line arg to disable the multithreaded renderer:

     msvcr120d_app.dll!_memcpy()    Unknown
>    UnityPlayer.dll!Mesh::CreateSharedVBO(unsigned int wantedChannels) Line 1895    C++
     UnityPlayer.dll!BatchRenderer::Flush() Line 76    C++
     UnityPlayer.dll!ForwardShaderRenderLoop::PerformRendering(const ActiveLight * mainDirShadowLight, RenderTexture * existingShadowMap, const ShadowCullData & shadowCullData, bool disableDynamicBatching, bool sRGBrenderTarget, bool clearFrameBuffer) Line 594    C++
     UnityPlayer.dll!DoForwardShaderRenderLoop(RenderLoopContext & ctx, dynamic_array<RenderObjectData,4> & objects, bool opaque, bool disableDynamicBatching, RenderTexture * mainShadowMap, ActiveLights & activeLights, bool linearLighting, bool clearFrameBuffer) Line 1399    C++
     UnityPlayer.dll!DoRenderLoop(RenderLoop & loop, RenderingPath renderPath, CullResults & contents, bool dontRenderRenderables) Line 406    C++
     UnityPlayer.dll!Camera::smile:oRender(CullResults & cullResults, void (Camera &, RenderLoop &, CullResults &) * customRender, int renderFlags) Line 1130    C++
     UnityPlayer.dll!Camera::Render(CullResults & cullResults, int renderFlags) Line 1673    C++
     UnityPlayer.dll!RenderManager::RenderCameras() Line 95    C++
     UnityPlayer.dll!PlayerRender(bool present) Line 1559    C++
     UnityPlayer.dll!PlayerLoop(bool batchMode, bool performRendering, IHookEvent * pHookEvt) Line 2001    C++
     UnityPlayer.dll!metro::MainLoop(bool performRendering) Line 163    C++
     UnityPlayer.dll!UnityPlayer::AppCallbacks::MetroMainLoop() Line 1091    C++
     UnityPlayer.dll!UnityPlayer::AppCallbacks::PerformUpdateAndRender() Line 1154    C++
     UnityPlayer.dll!UnityPlayer::AppCallbacks::_AppThreadImplementation(void * param) Line 145    C++
     UnityPlayer.dll!UnityPlayer::AppCallbacks::_AppThread(void * param) Line 159    C++
     UnityPlayer.dll!win32::CreateThread::__l22::<lambda>(Windows::Foundation::IAsyncAction ^ __formal) Line 273    C++
     [External Code]

and the relevant output from VS:

'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Template.exe'. 
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mscoree.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
The thread 0x18c0 has exited with code 0 (0x0).
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120_clr0400.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.ApplicationModel.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\SHCore.dll'
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\WinTypes.dll'
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\Windows.ApplicationModel.dll'
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\c90ef9a73ea0044641d31b19023aad61\mscorlib.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Template.exe'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runtime\7bf2203bf2d88857c463948cccf6156c\System.Runtime.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.appcore.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Windows.UI.Xaml\90a4331ab5b5bb3ead23d75d4349a491\Windows.UI.Xaml.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.UI.Xaml.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runtbff93e24#\1849d6bdd0f61a224d41ac2963221204\System.Runtime.InteropServices.WindowsRuntime.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices.WindowsRuntime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.WindowsRuntime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.UI.Xaml.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\UIAutomationCore.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ninput.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wininet.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\xmllite.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\urlmon.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\iertutil.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\userenv.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\actxprxy.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\DWrite.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\aticfx32.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\atiuxpag.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\atiuxpag.dll'
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\atiuxpag.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\atidxx32.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. 
'Template.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. 
'Template.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'Template.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Windows.App640a3541#\6e37f358bf8363dad51e2333292d61a9\Windows.ApplicationModel.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.ApplicationModel.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityPlayer.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityPlayer.winmd'. Module was built without symbols.
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityPlayer.winmd'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityPlayer.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d2d1.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dcomp.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityPlayer.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\XInput1_4.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\D3DCompiler_47.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mfreadwrite.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.120.00.Debug_12.0.21005.1_x86__8wekyb3d8bbwe\vccorlib120d_app.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.120.00.Debug_12.0.21005.1_x86__8wekyb3d8bbwe\msvcp120d_app.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.120.00.Debug_12.0.21005.1_x86__8wekyb3d8bbwe\msvcr120d_app.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mfplat.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\RTWorkQ.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avrt.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\threadpoolwinrt.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\MrmCoreR.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\BCP47Langs.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.UI.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.ApplicationModel.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\propsys.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Storage.ApplicationData.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System\1c5fe4cb68f67046baec4c3a854f722f\System.ni.dll'. 
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runt0d283adf#\291b5c55c40ec0ad886caaa65a5319fa\System.Runtime.WindowsRuntime.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.WindowsRuntime\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.WindowsRuntime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\WinRTBridge.winmd'. 
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\WinRTBridge.winmd'. 
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\WinRTBridge.winmd'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\WinRTBridge.winmd'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\BridgeInterface.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\BridgeInterface.winmd'. Module was built without symbols.
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\BridgeInterface.winmd'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\BridgeInterface.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinMetadata\Windows.UI.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinMetadata\Windows.UI.winmd'. Module was built without symbols.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\WinMetadata\Windows.UI.winmd'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.UI.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Windows.Foundation\f7e726805e56676bd7b8662a3d842b0e\Windows.Foundation.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinMetadata\Windows.System.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinMetadata\Windows.System.winmd'. Module was built without symbols.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\WinMetadata\Windows.System.winmd'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.System.winmd'. Module was built without symbols.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Collections\ebeafb298ff3f25b6291e44deceb1d0c\System.Collections.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Collections\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Thre7bb2aad0#\7ab875026ab88e106bf40c8db4f640a1\System.Threading.Tasks.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Windows.Storage\f0a2c10499402eff632a7a7df0b4afef\Windows.Storage.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runt1e58aa76#\7ea522010e4f517cf62d62292d3f68b2\System.Runtime.Extensions.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Graphics.dll'. Symbols loaded.
[0.005361 / 0.636230] - AppCallbacks::SetCoreWindowEvents
[0.000024 / 0.637202] - AppCallbacks::InitializeD3DXAML
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WindowsCodecs.dll'. Symbols loaded.
[0.642450 / 0.642450] - OnVisibilityChanged event - Visible.
[0.000545 / 0.642995] - OnWindowActivated event - CodeActivated.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runt9e372c89#\b3ad6730fe2c9bc26d2656994615e29e\System.Runtime.InteropServices.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Threading\88c5bb75b5fc29305a51f21d77640cba\System.Threading.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Diagaa8d7fa5#\a374d5cee262e00ef48bb80a46ef261b\System.Diagnostics.Debug.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Debug\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Configuration\00fc7d14bbb38db00e4103912c041adf\System.Configuration.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml\43edd630a9f8cd6ac38c527b106ec94f\System.Xml.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Module information:
 Built with Compiler Ver '180030324'
 Built from 'release/4.5/release' branch
 Version is '4.5.5f1 (7684ad0c5a44)'
 Debug build
 Application type 'XAML'
 Used 'SDK 8.1'

PlayerConnection initialized from C:/Users/devel_000/Documents/smrt/Windows Universal/Road Trip/Road Trip.Windows/bin/x86/Debug/AppX/Data (debug = 0)

'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Networking.Connectivity.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Networking.HostName.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wshbth.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dnsapi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winnsi.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dhcpcsvc6.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dhcpcsvc.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rasadhlp.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'. Symbols loaded.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\wshbth.dll'
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'
PlayerConnection initialized network socket : 0.0.0.0 55135

Capability 'internetClientServer' is required, please enable it in Package.appxmanifest, to enable Editor Profiler functionality.

(Filename: C:/BuildAgent/work/d63dfc6385190b60/PlatformDependent/MetroPlayer/MetroCapabilities.cpp Line: 96)


'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wshbth.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'. Symbols loaded.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\wshbth.dll'
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'
Capability 'privateNetworkClientServer' is required, please enable it in Package.appxmanifest, to enable Editor Profiler functionality.

(Filename: C:/BuildAgent/work/d63dfc6385190b60/PlatformDependent/MetroPlayer/MetroCapabilities.cpp Line: 96)


Unable to setup multicast socket for player connection.

(Filename: C:/BuildAgent/work/d63dfc6385190b60/Runtime/Network/PlayerCommunicator/PlayerConnection.cpp Line: 177)


Multi-casting "[IP] 192.168.1.184 [Port] 55135 [Flags] 2 [Guid] 3478075803 [EditorId] 3189169218 [Version] 1048832 [Id] MetroPlayerX86(SagoSago) [Debug] 0" to [225.0.0.222:54997]...

Disabling Low Latency presentation API.

'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgidebug.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11_2sdklayers.dll'. Cannot find or open the PDB file.
'Template.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\d3d11_2sdklayers.dll'
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11_2sdklayers.dll'. Cannot find or open the PDB file.
Direct3D:

    Version:  Direct3D 11.0 [level 11.0]

    Renderer: AMD Radeon HD 7500 Series (ID=0x675d)

    Vendor:   ATI

    VRAM:     1007 MB

[0.715428 / 1.412489] - Initialize
Initialize engine version: 4.5.5f1 (7684ad0c5a44)

'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Media.Devices.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Devices.Enumeration.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\StructuredQuery.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\MSWB7.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\DevDispItemProvider.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\DDORes.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\DefaultDeviceManager.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\AudioSes.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Symbols loaded.
[0.893560 / 1.536556] - MonoManager::ctor
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Reflection\66943ffdb6c6209cf0340c6a256bf169\System.Reflection.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngine.dll'. 
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngine.dll'. 
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngine.dll'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngine.DLL'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngineProxy.dll'. 
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngineProxy.dll'. 
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngineProxy.dll'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngineProxy.DLL'. Cannot find or open the PDB file.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp.dll'. 
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp.dll'. 
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp.dll'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp.DLL'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp-firstpass.dll'. 
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp-firstpass.dll'. 
'Template.exe' (Win32): Unloaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp-firstpass.dll'
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\Assembly-CSharp-Firstpass.DLL'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Linq\5c5aaf5812afcf70f2136a13213c9d57\System.Linq.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Core\483443985708dc5439abe7fd6350abe4\System.Core.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.IO\232833346ca4e705c2a15dd57af73bac\System.IO.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
[0.430626 / 1.967181] - MonoManager::FillCommonScriptingClasses begin...
[0.043875 / 2.011057] - MonoManager::FillCommonScriptingClasses end...
'Template.exe' (Win32): Loaded 'C:\Users\devel_000\Documents\smrt\Windows Universal\Road Trip\Road Trip.Windows\bin\x86\Debug\AppX\UnityEngineDelegates.dll'. Cannot find or open the PDB file.
Disabling independent input source.

Logical Screen DPI is 96.00.

[0.000039 / 2.131458] - AppCallbacks::SetupInputEvents
[0.000158 / 2.131784] - AppCallbacks::SetupDeviceWatcherEvents
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Devices.Sensors.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profext.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
First-chance exception at 0x75D21D4D (KernelBase.dll) in Template.exe: 0x40080201: WinRT originate error (parameters: 0x80070490, 0x00000064, 0x054EEBB4).
First-chance exception at 0x75D21D4D (KernelBase.dll) in Template.exe: 0x40080202: WinRT transform error (parameters: 0x80070490, 0x00000000, 0x0000001D, 0x054EEFE8).
[0.061504 / 2.193444] - AppCallbacks::SetupOrientationSensorEvents
[0.182630 / 2.193687] - Starting to load first level
GlobalManager 'NetworkManager' is not included.

GlobalManager 'MasterServerInterface' is not included.

'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\DefaultPrinterProvider.dll'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winspool.drv'. Symbols loaded.
'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Text.Encoding\8b843c36b88d5c581c163a6f26432aa5\System.Text.Encoding.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
[1.233473 / 3.427160] - First level loaded
[1.346785 / 3.427410] - AppCallbacks::Load
[0.000407 / 3.427567] - PerformUpdateAndRender started
'Template.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Windows.Globalization.dll'. Symbols loaded.
First-chance exception at 0x75D21D4D (KernelBase.dll) in Template.exe: 0x40080201: WinRT originate error (parameters: 0x80070490, 0x00000064, 0x0707ED28).
First-chance exception at 0x75D21D4D (KernelBase.dll) in Template.exe: 0x40080202: WinRT transform error (parameters: 0x80070490, 0x00000000, 0x0000001D, 0x0707F178).
The thread 0x19f8 has exited with code 0 (0x0).
The thread 0x1f50 has exited with code 0 (0x0).
The thread 0x1eb0 has exited with code 0 (0x0).
The thread 0xca4 has exited with code 0 (0x0).
Unloading 5 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)


Unloading 118 unused Assets to reduce memory usage. Loaded Objects now: 1632. Operation took 81.139435 ms.

System memory in use: 17.2 MB.

'Template.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Text2f5a8366#\5fe841aca0e2050c16053dc1e744e43b\System.Text.RegularExpressions.ni.dll'. 
'Template.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x1a98 has exited with code 0 (0x0).
Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)


Unloading 8 unused Assets to reduce memory usage. Loaded Objects now: 1584. Operation took 41.643436 ms.

System memory in use: 16.3 MB.

The thread 0x1dd0 has exited with code 0 (0x0).
Unloading 4 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)


Unloading 209 unused Assets to reduce memory usage. Loaded Objects now: 2239. Operation took 68.929497 ms.

System memory in use: 16.4 MB.

First-chance exception at 0x75D21D4D (KernelBase.dll) in Template.exe: 0x800706BA: The RPC server is unavailable.
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)


Unloading 132 unused Assets to reduce memory usage. Loaded Objects now: 2090. Operation took 73.021812 ms.

System memory in use: 19.4 MB.

New trip: Medium Length, Random

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)


Unloading 4 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)


Unloading 276 unused Assets to reduce memory usage. Loaded Objects now: 19891. Operation took 247.427307 ms.

System memory in use: 71.3 MB.

The thread 0x1aa8 has exited with code 0 (0x0).
The thread 0x1db0 has exited with code 0 (0x0).
D3D11 ERROR: ID3D11DeviceContext::Map: Map cannot be called with MAP_WRITE_DISCARD access, because the Resource was not created with the D3D11_CPU_ACCESS_WRITE flag. [ RESOURCE_MANIPULATION ERROR #2097210: RESOURCE_MAP_INVALIDMAPTYPE]
SUCCEEDED(hr)

(Filename: C:/BuildAgent/work/d63dfc6385190b60/Runtime/GfxDevice/d3d11/D3D11VBO.cpp Line: 274)


First-chance exception at 0x5EE9231A (msvcr120d_app.dll) in Template.exe: 0xC0000005: Access violation writing location 0x00000000.

There’s your issue:

D3D11 ERROR: ID3D11DeviceContext::Map: Map cannot be called with MAP_WRITE_DISCARD access, because the Resource was not created with the D3D11_CPU_ACCESS_WRITE flag. [ RESOURCE_MANIPULATION ERROR #2097210: RESOURCE_MAP_INVALIDMAPTYPE]
SUCCEEDED(hr)

(Filename: C:/BuildAgent/work/d63dfc6385190b60/Runtime/GfxDevice/d3d11/D3D11VBO.cpp Line: 274

Looks like Unity for some reason tries to access a vertex buffer after it’s been created and the buffer is not dynamic. It tries to map the resource to main memory, and when the mapping fails, it tries to write to invalid memory location, and thus producing a crash.

I can’t tell you exactly what is causing it - it most likely is a Unity bug. Just a wild stab in the dark - do you have dynamic batching enabled? If so, could you try disabling it?

I’ll think about this tomorrow and get back to you. It’s getting late here :).

Thanks again. I did indeed have Dynamic Batching enabled. I disabled it and unfortunately got the same crash after a couple minutes. Looks to me like this is pretty much the same:

D3D11 ERROR: ID3D11DeviceContext::Map: Map cannot be called with MAP_WRITE_DISCARD access, because the Resource was not created with the D3D11_CPU_ACCESS_WRITE flag. [ RESOURCE_MANIPULATION ERROR #2097210: RESOURCE_MAP_INVALIDMAPTYPE]
SUCCEEDED(hr)

(Filename: C:/BuildAgent/work/d63dfc6385190b60/Runtime/GfxDevice/d3d11/D3D11VBO.cpp Line: 274)


First-chance exception at 0x5EE9231A (msvcr120d_app.dll) in Template.exe: 0xC0000005: Access violation writing location 0x00000000.

Thanks again for looking into this, I’m completely stumped personally, but I will keep on poking.

Took a lot of digging, but I found a workaround. The issue is likely in Unity’s code for shared vertex buffers. But we can avoid them being created

Mesh.CreateSharedVBO only occurs when you have a Mesh marked for updating every frame, as in when you use Unity - Scripting API: Mesh.MarkDynamic. You can avoid CreateSharedVBO being called by simply not using this function.

I expected a performance hit, but it also turns out that Mesh.MarkDynamic() actually makes everything slower according to this thread: Huge performance loss in Mesh.CreateVBO for dynamic meshes [ IOS ] - Unity Engine - Unity Discussions

So for now, the workaround appears to be simply - don’t use Mesh.MarkDynamic().

Hi,

this looks like a bug in Unity, indeed. Thanks for heads up. Do you think you could submit a bug report with a repro attached?