Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Assertion failed: "Standard C++ Libraries Out of Range" && 0

Discussion in 'VR' started by pbhalala, Jun 9, 2017.

  1. pbhalala

    pbhalala

    Joined:
    Jun 9, 2017
    Posts:
    1
    i am developing one demo application for mixed Reality Application. In that i am facing the same exception while i try to test application with Hololens Emulator 10.0.11082.1039.

    it is just showing the "Made With Unity" splash Screen and then application got crashed no more information provide or understandable logs are there to find the cause. the following things are logged:

    (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\DemoVS.Debug_x86.user\System.Linq.Expressions.dll'. Cannot find or open the PDB file.
    Starting the observer.
    0x5FEDFAD8 (UnityPlayer) DllGetActivationFactory
    0x5FEDF91E (UnityPlayer) DllGetActivationFactory
    0x5FEE2F70 (UnityPlayer) DllGetActivationFactory
    0x5DD41DAB (UnityPlayer) DllGetActivationFactory
    0x5DD42017 (UnityPlayer) DllGetActivationFactory
    0x5F7AFCF9 (UnityPlayer) DllGetActivationFactory
    0x5BCCE846 (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x084BE416 ((<unknown>))
    0x084BE31D ((<unknown>))
    0x084BE23D ((<unknown>))
    0x084BE1D1 ((<unknown>))
    0x084BE08A ((<unknown>))
    0x084BD921 ((<unknown>))
    0x084BD5DC ((<unknown>))
    0x084BD53B ((<unknown>))
    0x084BD4D2 ((<unknown>))
    0x00E479C0 ((<unknown>))
    0x008AD236 ((<unknown>))
    0x5EC3759F (UnityPlayer) DllGetActivationFactory
    0x5EC44688 (UnityPlayer) DllGetActivationFactory
    0x5EC03103 (UnityPlayer) DllGetActivationFactory
    0x5CDEEF10 (UnityPlayer) DllGetActivationFactory
    0x5F922F5E (UnityPlayer) DllGetActivationFactory
    0x5F91EE9D (UnityPlayer) DllGetActivationFactory
    0x5F929B57 (UnityPlayer) DllGetActivationFactory
    0x5F9223B3 (UnityPlayer) DllGetActivationFactory
    0x5D4F31E5 (UnityPlayer) DllGetActivationFactory
    0x5F8E3FC5 (UnityPlayer) DllGetActivationFactory
    0x5E056257 (UnityPlayer) DllGetActivationFactory
    0x5C72D7DF (UnityPlayer) DllGetActivationFactory
    0x5C7219CC (UnityPlayer) DllGetActivationFactory
    0x5C7217C8 (UnityPlayer) DllGetActivationFactory
    0x5C71DFBB (UnityPlayer) DllGetActivationFactory
    0x5C71DEDC (UnityPlayer) DllGetActivationFactory
    0x5C8D68F4 (UnityPlayer) DllGetActivationFactory
    0x5C8E15D2 (UnityPlayer) DllGetActivationFactory
    0x5C8E1974 (UnityPlayer) DllGetActivationFactory
    0x5C8F9CD2 (UnityPlayer) DllGetActivationFactory
    0x69854C6F (threadpoolwinrt)
    0x6985AFF6 (threadpoolwinrt) DllMain
    0x778EE981 (ntdll) RtlClearAllBits
    0x778EE941 (ntdll) RtlClearAllBits

    (Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)


    _CRT_ASSERT caught:
    '''
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\include\vector(1236) : Assertion failed: vector subscript out of range

    '''
    Stacktrace:

    0x5FEDFAD8 (UnityPlayer) DllGetActivationFactory
    0x5FEDF91E (UnityPlayer) DllGetActivationFactory
    0x5FEE2F70 (UnityPlayer) DllGetActivationFactory
    0x5C733ADE (UnityPlayer) DllGetActivationFactory
    0x634F12A2 (ucrtbased) VCrtDbgReportW
    0x634EFF04 (ucrtbased) CrtDbgReportW
    0x6370086E (MSVCP140D_APP) std::_Debug_message
    0x5CA22624 (UnityPlayer) DllGetActivationFactory
    0x5DA5B256 (UnityPlayer) DllGetActivationFactory
    0x5F8040F2 (UnityPlayer) DllGetActivationFactory
    0x5BD300BA (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x07FA4E78 ((<unknown>))
    0x0897284F ((<unknown>))
    0x089727B5 ((<unknown>))
    0x08971447 ((<unknown>))
    0x08971319 ((<unknown>))
    0x089712E7 ((<unknown>))
    0x00E479C0 ((<unknown>))
    0x008AD236 ((<unknown>))
    0x5EC3759F (UnityPlayer) DllGetActivationFactory
    0x5EC44688 (UnityPlayer) DllGetActivationFactory
    0x5EC03103 (UnityPlayer) DllGetActivationFactory
    0x5CDEEF10 (UnityPlayer) DllGetActivationFactory
    0x5E0D3EE0 (UnityPlayer) DllGetActivationFactory
    0x5E0D33F3 (UnityPlayer) DllGetActivationFactory
    0x5F91F559 (UnityPlayer) DllGetActivationFactory
    0x5F91F74A (UnityPlayer) DllGetActivationFactory
    0x5F924A50 (UnityPlayer) DllGetActivationFactory
    0x5F91EF1F (UnityPlayer) DllGetActivationFactory
    0x5F91FBB6 (UnityPlayer) DllGetActivationFactory
    0x5F91FC9F (UnityPlayer) DllGetActivationFactory
    0x5F80730A (UnityPlayer) DllGetActivationFactory
    0x5BD33086 (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x0897112E ((<unknown>))
    0x08970FF1 ((<unknown>))
    0x08970E8F ((<unknown>))
    0x084BEE42 ((<unknown>))
    0x00E479C0 ((<unknown>))
    0x008AD236 ((<unknown>))
    0x5EC3759F (UnityPlayer) DllGetActivationFactory
    0x5EC44688 (UnityPlayer) DllGetActivationFactory
    0x5EC03103 (UnityPlayer) DllGetActivationFactory
    0x5CDEEF10 (UnityPlayer) DllGetActivationFactory
    0x5F922F5E (UnityPlayer) DllGetActivationFactory
    0x5F91EE9D (UnityPlayer) DllGetActivationFactory
    0x5F929B57 (UnityPlayer) DllGetActivationFactory
    0x5F9223B3 (UnityPlayer) DllGetActivationFactory
    0x5D4F31E5 (UnityPlayer) DllGetActivationFactory
    0x5F8E3FC5 (UnityPlayer) DllGetActivationFactory
    0x5E056257 (UnityPlayer) DllGetActivationFactory
    0x5C72D7DF (UnityPlayer) DllGetActivationFactory
    0x5C7219CC (UnityPlayer) DllGetActivationFactory
    0x5C7217C8 (UnityPlayer) DllGetActivationFactory
    0x5C71DFBB (UnityPlayer) DllGetActivationFactory
    0x5C71DEDC (UnityPlayer) DllGetActivationFactory
    0x5C8D68F4 (UnityPlayer) DllGetActivationFactory
    0x5C8E15D2 (UnityPlayer) DllGetActivationFactory
    0x5C8E1974 (UnityPlayer) DllGetActivationFactory
    0x5C8F9CD2 (UnityPlayer) DllGetActivationFactory
    0x69854C6F (threadpoolwinrt)
    0x6985AFF6 (threadpoolwinrt) DllMain
    0x778EE981 (ntdll) RtlClearAllBits
    0x778EE941 (ntdll) RtlClearAllBits

    _CRT_ASSERT caught:
    '''
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\include\vector(1237) : Assertion failed: "Standard C++ Libraries Out of Range" && 0

    '''
    Stacktrace:

    0x5FEDFAD8 (UnityPlayer) DllGetActivationFactory
    0x5FEDF91E (UnityPlayer) DllGetActivationFactory
    0x5FEE2F70 (UnityPlayer) DllGetActivationFactory
    0x5C733ADE (UnityPlayer) DllGetActivationFactory
    0x634F12A2 (ucrtbased) VCrtDbgReportW
    0x634EFF04 (ucrtbased) CrtDbgReportW
    0x5CA2265B (UnityPlayer) DllGetActivationFactory
    0x5DA5B256 (UnityPlayer) DllGetActivationFactory
    0x5F8040F2 (UnityPlayer) DllGetActivationFactory
    0x5BD300BA (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x07FA4E78 ((<unknown>))
    0x0897284F ((<unknown>))
    0x089727B5 ((<unknown>))
    0x08971447 ((<unknown>))
    0x08971319 ((<unknown>))
    0x089712E7 ((<unknown>))
    0x00E479C0 ((<unknown>))
    0x008AD236 ((<unknown>))
    0x5EC3759F (UnityPlayer) DllGetActivationFactory
    0x5EC44688 (UnityPlayer) DllGetActivationFactory
    0x5EC03103 (UnityPlayer) DllGetActivationFactory
    0x5CDEEF10 (UnityPlayer) DllGetActivationFactory
    0x5E0D3EE0 (UnityPlayer) DllGetActivationFactory
    0x5E0D33F3 (UnityPlayer) DllGetActivationFactory
    0x5F91F559 (UnityPlayer) DllGetActivationFactory
    0x5F91F74A (UnityPlayer) DllGetActivationFactory
    0x5F924A50 (UnityPlayer) DllGetActivationFactory
    0x5F91EF1F (UnityPlayer) DllGetActivationFactory
    0x5F91FBB6 (UnityPlayer) DllGetActivationFactory
    0x5F91FC9F (UnityPlayer) DllGetActivationFactory
    0x5F80730A (UnityPlayer) DllGetActivationFactory
    0x5BD33086 (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x0897112E ((<unknown>))
    0x08970FF1 ((<unknown>))
    0x08970E8F ((<unknown>))
    0x084BEE42 ((<unknown>))
    0x00E479C0 ((<unknown>))
    0x008AD236 ((<unknown>))
    0x5EC3759F (UnityPlayer) DllGetActivationFactory
    0x5EC44688 (UnityPlayer) DllGetActivationFactory
    0x5EC03103 (UnityPlayer) DllGetActivationFactory
    0x5CDEEF10 (UnityPlayer) DllGetActivationFactory
    0x5F922F5E (UnityPlayer) DllGetActivationFactory
    0x5F91EE9D (UnityPlayer) DllGetActivationFactory
    0x5F929B57 (UnityPlayer) DllGetActivationFactory
    0x5F9223B3 (UnityPlayer) DllGetActivationFactory
    0x5D4F31E5 (UnityPlayer) DllGetActivationFactory
    0x5F8E3FC5 (UnityPlayer) DllGetActivationFactory
    0x5E056257 (UnityPlayer) DllGetActivationFactory
    0x5C72D7DF (UnityPlayer) DllGetActivationFactory
    0x5C7219CC (UnityPlayer) DllGetActivationFactory
    0x5C7217C8 (UnityPlayer) DllGetActivationFactory
    0x5C71DFBB (UnityPlayer) DllGetActivationFactory
    0x5C71DEDC (UnityPlayer) DllGetActivationFactory
    0x5C8D68F4 (UnityPlayer) DllGetActivationFactory
    0x5C8E15D2 (UnityPlayer) DllGetActivationFactory
    0x5C8E1974 (UnityPlayer) DllGetActivationFactory
    0x5C8F9CD2 (UnityPlayer) DllGetActivationFactory
    0x69854C6F (threadpoolwinrt)
    0x6985AFF6 (threadpoolwinrt) DllMain
    0x778EE981 (ntdll) RtlClearAllBits
    0x778EE941 (ntdll) RtlClearAllBits

    The program '[3540] demo.exe' has exited with code -1073740791 (0xc0000409).
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Can you file a bug report on this please?
     
  3. huze1337

    huze1337

    Joined:
    Nov 5, 2016
    Posts:
    2
    I had the same issue. For me, it was the RecalculateNormals() function from the Mesh class. When I removed the line, the deployment to the hololens emulator worked for me. Same issue exists if I try to assign normals to a mesh.
     
    Last edited: Jun 19, 2017
  4. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    It occurs to me that this might just be that you're using an older emulator. My oldest version of emulator that I have installed was from a year or more ago, and that was version 10.0.14342.1018. A slightly more recent one (the one listed for download on Microsoft's website here) is 10.0.14393.0, which I believe matches the version on the HoloLens itself.

    Would you mind downloading the newer emulator and trying that out? You seem to somehow be on an older version than I even knew existed.
     
  5. huze1337

    huze1337

    Joined:
    Nov 5, 2016
    Posts:
    2
    Oh sorry, maybe I should have mentioned it. I am using the 10.0.14393.0 emulator.

    I turned the mesh.RecalculateNormals() on and something unusual happened.

    It actually did deploy it with the normals. Now I tried to figure out when this error happens.

    Well, it happens when "Debug" is set when you try to deploy to the emulator.

    The error looks like this:

    ------------------------

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


    UnloadTime: 10.779799 ms

    _CRT_ASSERT caught:
    '''
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\include\vector(1236) : Assertion failed: vector subscript out of range

    '''
    Stacktrace:

    0x6389B658 (UnityPlayer) DllGetActivationFactory
    0x6389B49E (UnityPlayer) DllGetActivationFactory
    0x6389EAF0 (UnityPlayer) DllGetActivationFactory
    0x600C4DEE (UnityPlayer) DllGetActivationFactory
    0x5FA212A2 (ucrtbased) VCrtDbgReportW
    0x5FA1FF04 (ucrtbased) CrtDbgReportW
    0x5FC1086E (MSVCP140D_APP) std::_Debug_message
    0x603B40D4 (UnityPlayer) DllGetActivationFactory
    0x613EC196 (UnityPlayer) DllGetActivationFactory
    0x631BD892 (UnityPlayer) DllGetActivationFactory
    0x5F15216A (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x03E37018 ((<unknown>))
    0x077B64BF ((<unknown>))
    0x077B4B3A ((<unknown>))
    0x077B48C9 ((<unknown>))
    0x077B4897 ((<unknown>))
    0x00B27CC8 ((<unknown>))
    0x001CD236 ((<unknown>))
    0x625F4F6F (UnityPlayer) DllGetActivationFactory
    0x62602058 (UnityPlayer) DllGetActivationFactory
    0x625BDBF3 (UnityPlayer) DllGetActivationFactory
    0x6077E7F0 (UnityPlayer) DllGetActivationFactory
    0x61A69100 (UnityPlayer) DllGetActivationFactory
    0x61A68613 (UnityPlayer) DllGetActivationFactory
    0x632D89A9 (UnityPlayer) DllGetActivationFactory
    0x632D8B9A (UnityPlayer) DllGetActivationFactory
    0x632D92CA (UnityPlayer) DllGetActivationFactory
    0x631C07DD (UnityPlayer) DllGetActivationFactory
    0x5F155312 (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x077B482E ((<unknown>))
    0x077B470B ((<unknown>))
    0x077B2FF0 ((<unknown>))
    0x077B02AD ((<unknown>))
    0x03E3E526 ((<unknown>))
    0x03E3E4A0 ((<unknown>))
    0x00B27CC8 ((<unknown>))
    0x001CD236 ((<unknown>))
    0x625F4F6F (UnityPlayer) DllGetActivationFactory
    0x62602058 (UnityPlayer) DllGetActivationFactory
    0x625BDBF3 (UnityPlayer) DllGetActivationFactory
    0x6077E7F0 (UnityPlayer) DllGetActivationFactory
    0x632DC3AE (UnityPlayer) DllGetActivationFactory
    0x632D82ED (UnityPlayer) DllGetActivationFactory
    0x632E2FB7 (UnityPlayer) DllGetActivationFactory
    0x632DB803 (UnityPlayer) DllGetActivationFactory
    0x60E82DB5 (UnityPlayer) DllGetActivationFactory
    0x6329D385 (UnityPlayer) DllGetActivationFactory
    0x619EB307 (UnityPlayer) DllGetActivationFactory
    0x600BEB9F (UnityPlayer) DllGetActivationFactory
    0x600B2C18 (UnityPlayer) DllGetActivationFactory
    0x600B2A08 (UnityPlayer) DllGetActivationFactory
    0x600AF21B (UnityPlayer) DllGetActivationFactory
    0x600AF13C (UnityPlayer) DllGetActivationFactory
    0x60267644 (UnityPlayer) DllGetActivationFactory
    0x60272532 (UnityPlayer) DllGetActivationFactory
    0x602728F4 (UnityPlayer) DllGetActivationFactory
    0x6028AC52 (UnityPlayer) DllGetActivationFactory
    0x73394C6F (threadpoolwinrt)
    0x7339AFF6 (threadpoolwinrt) DllMain
    0x7797E981 (ntdll) RtlClearAllBits
    0x7797E941 (ntdll) RtlClearAllBits

    _CRT_ASSERT caught:
    '''
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\include\vector(1237) : Assertion failed: "Standard C++ Libraries Out of Range" && 0

    '''
    Stacktrace:

    0x6389B658 (UnityPlayer) DllGetActivationFactory
    0x6389B49E (UnityPlayer) DllGetActivationFactory
    0x6389EAF0 (UnityPlayer) DllGetActivationFactory
    0x600C4DEE (UnityPlayer) DllGetActivationFactory
    0x5FA212A2 (ucrtbased) VCrtDbgReportW
    0x5FA1FF04 (ucrtbased) CrtDbgReportW
    0x603B410B (UnityPlayer) DllGetActivationFactory
    0x613EC196 (UnityPlayer) DllGetActivationFactory
    0x631BD892 (UnityPlayer) DllGetActivationFactory
    0x5F15216A (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x03E37018 ((<unknown>))
    0x077B64BF ((<unknown>))
    0x077B4B3A ((<unknown>))
    0x077B48C9 ((<unknown>))
    0x077B4897 ((<unknown>))
    0x00B27CC8 ((<unknown>))
    0x001CD236 ((<unknown>))
    0x625F4F6F (UnityPlayer) DllGetActivationFactory
    0x62602058 (UnityPlayer) DllGetActivationFactory
    0x625BDBF3 (UnityPlayer) DllGetActivationFactory
    0x6077E7F0 (UnityPlayer) DllGetActivationFactory
    0x61A69100 (UnityPlayer) DllGetActivationFactory
    0x61A68613 (UnityPlayer) DllGetActivationFactory
    0x632D89A9 (UnityPlayer) DllGetActivationFactory
    0x632D8B9A (UnityPlayer) DllGetActivationFactory
    0x632D92CA (UnityPlayer) DllGetActivationFactory
    0x631C07DD (UnityPlayer) DllGetActivationFactory
    0x5F155312 (UnityEngineDelegates) GameObject_CUSTOM_GetComponentInChildren
    0x077B482E ((<unknown>))
    0x077B470B ((<unknown>))
    0x077B2FF0 ((<unknown>))
    0x077B02AD ((<unknown>))
    0x03E3E526 ((<unknown>))
    0x03E3E4A0 ((<unknown>))
    0x00B27CC8 ((<unknown>))
    0x001CD236 ((<unknown>))
    0x625F4F6F (UnityPlayer) DllGetActivationFactory
    0x62602058 (UnityPlayer) DllGetActivationFactory
    0x625BDBF3 (UnityPlayer) DllGetActivationFactory
    0x6077E7F0 (UnityPlayer) DllGetActivationFactory
    0x632DC3AE (UnityPlayer) DllGetActivationFactory
    0x632D82ED (UnityPlayer) DllGetActivationFactory
    0x632E2FB7 (UnityPlayer) DllGetActivationFactory
    0x632DB803 (UnityPlayer) DllGetActivationFactory
    0x60E82DB5 (UnityPlayer) DllGetActivationFactory
    0x6329D385 (UnityPlayer) DllGetActivationFactory
    0x619EB307 (UnityPlayer) DllGetActivationFactory
    0x600BEB9F (UnityPlayer) DllGetActivationFactory
    0x600B2C18 (UnityPlayer) DllGetActivationFactory
    0x600B2A08 (UnityPlayer) DllGetActivationFactory
    0x600AF21B (UnityPlayer) DllGetActivationFactory
    0x600AF13C (UnityPlayer) DllGetActivationFactory
    0x60267644 (UnityPlayer) DllGetActivationFactory
    0x60272532 (UnityPlayer) DllGetActivationFactory
    0x602728F4 (UnityPlayer) DllGetActivationFactory
    0x6028AC52 (UnityPlayer) DllGetActivationFactory
    0x73394C6F (threadpoolwinrt)
    0x7339AFF6 (threadpoolwinrt) DllMain
    0x7797E981 (ntdll) RtlClearAllBits
    0x7797E941 (ntdll) RtlClearAllBits

    The program '[600] Prototyping.exe' has exited with code -1073740791 (0xc0000409).

    ------------------------

    It is odd since it does work when it is set to "Release".

    It only works when it is run for the first time. Afterwards, you have to close the emulator and start it again, or else this error shows up:

    ------------------------

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


    d3d11: failed to create buffer (target 0x2 mode 2 size 65536) [0x887A0005]

    d3d11: attempt to lock null buffer

    The program '[3660] Prototyping.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

    ------------------------

    or this:

    ------------------------

    Initialize engine version: 5.6.1f1 (2860b30f0b54)

    'Prototyping.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\PrototypingVS.Release_x86.Huzeyfe\UnityEngineProxy.dll'. Cannot find or open the PDB file.
    'Prototyping.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\PrototypingVS.Release_x86.Huzeyfe\System.Linq.dll'. Cannot find or open the PDB file.
    'Prototyping.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\PrototypingVS.Release_x86.Huzeyfe\System.Reflection.Extensions.dll'. Module was built without symbols.
    The program '[4072] Prototyping.exe' has exited with code -1073740791 (0xc0000409).

    ------------------------

    I hope this helps.
     
    Last edited: Jun 22, 2017
  6. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    @huze1337 - What version of Unity are you on? I wanted looking through the code emitting that error to try to diagnose what's going on, but that code is different enough in the version I'm synced to that error messages have changed and line numbers don't line up, so it makes digging through the code quite a bit harder.