Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

winndows store 8.1 crash

Discussion in 'Windows' started by thxu2, Jan 19, 2016.

  1. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    when apllication run in visual studio i have this : Unhandled exception at 0x5071ED00 (UnityPlayer.dll)


    Output:
    apermates.exe' (Win32): Loaded 'C:\Users\user\Desktop\WinPhone Build\Papermates\bin\x86\Release\AppX\gvclient_stub.dll'.
    'Papermates.exe' (Win32): Loaded 'C:\Users\user\Desktop\WinPhone Build\Papermates\bin\x86\Release\AppX\gvclient_stub.dll'.
    'Papermates.exe' (Win32): Unloaded 'C:\Users\user\Desktop\WinPhone Build\Papermates\bin\x86\Release\AppX\gvclient_stub.dll'
    'Papermates.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\Users\user\Desktop\WinPhone Build\Papermates\bin\x86\Release\AppX\gvclient_stub.DLL'. Cannot find or open the PDB file.
    'Papermates.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll'. Module was built without symbols.
    'Papermates.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll'. Module was built without symbols.
    'Papermates.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll'
    'Papermates.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll'. Module was built without symbols.
    'Papermates.exe' (Win32): Loaded 'C:\Users\user\Desktop\WinPhone Build\Papermates\bin\x86\Release\AppX\UnityEngineDelegates.dll'. Cannot find or open the PDB file.
    Exception thrown at 0x5071ED00 (UnityPlayer.dll) in Papermates.exe: 0xC0000005: Access violation reading location 0x00000001.

    Unhandled exception at 0x5071ED00 (UnityPlayer.dll) in Papermates.exe: 0xC0000005: Access violation reading location 0x00000001.

    Exception thrown at 0x5071ED00 (UnityPlayer.dll) in Papermates.exe: 0xC0000005: Access violation reading location 0x00000001.

    Unhandled exception at 0x5071ED00 (UnityPlayer.dll) in Papermates.exe: 0xC0000005: Access violation reading location 0x00000001.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Do you have a stacktrace for that?
     
  3. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    i cant get stack trace because it given me unthrow exception, maby i do smething wrong?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    You should be able to see the callstack in the callstack window when the debugger breaks during the exception.
     
  5. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    > msvcr120d_app.dll!strcmp(unsigned char * str1, unsigned char * str2) Line 125 Unknown
    UnityPlayer.dll!070a327e() Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for UnityPlayer.dll]
    UnityPlayer.dll!070a2cbb() Unknown
    UnityPlayer.dll!070a2062() Unknown
    UnityPlayer.dll!070a2010() Unknown
    UnityPlayer.dll!070a1752() Unknown
    UnityPlayer.dll!0709b22a() Unknown
    UnityPlayer.dll!071daa22() Unknown
    UnityPlayer.dll!071da8ae() Unknown
    UnityPlayer.dll!0728134c() Unknown
    UnityPlayer.dll!0727ee8d() Unknown
    UnityPlayer.dll!0727ad40() Unknown
    UnityPlayer.dll!06b95c6d() Unknown
    UnityPlayer.dll!0716907d() Unknown
    UnityPlayer.dll!073bcf2e() Unknown
    UnityPlayer.dll!0737b813() Unknown
    UnityPlayer.dll!0739496e() Unknown
    UnityPlayer.dll!06b4bccf() Unknown
    UnityPlayer.dll!0739200c() Unknown
    UnityPlayer.dll!073761da() Unknown
    UnityPlayer.dll!0737615c() Unknown
    UnityPlayer.dll!0741e3b8() Unknown
    UnityPlayer.dll!074245d2() Unknown
    UnityPlayer.dll!07424643() Unknown
    UnityPlayer.dll!07427f22() Unknown
    [External Code]
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Which you Unity version are you on? Right click on UnityPlayer.dll and press "Load symbols".
     
  7. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    unity 5.3.1 vs 2015 Where i should right click? on dll in project?
    upload_2016-1-19_14-45-15.png
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    On any of the stackframes in the callstack that starts with "UnityPlayer.dll".
     
  9. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    Cant find UnityPlayer_Windows81_x86_d.pdb, i switch to x86 from Arm in visual stuidio when try to run build, mb problem in this? I build with windows store windows 8.1. development build enabling
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    That PDB file should be in your editor installation directory:

    <UnityInstallationDir>\Editor\Data\PlaybackEngines\MetroSupport\Players\Windows81\X86\debug\UnityPlayer_Windows81_x86_d.pdb
     
  11. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    I load pdb get this in call Stack

    > msvcr120d_app.dll!strcmp(unsigned char * str1, unsigned char * str2) Line 125 Unknown
    UnityPlayer.dll!operator==(const DotNetAssembly & left, const DotNetAssembly & right) Line 52 C++
    UnityPlayer.dll!EqualTo<DotNetAssembly,DotNetAssembly>::eek:perator()(const DotNetAssembly & x, const DotNetAssembly & y) Line 50 C++
    UnityPlayer.dll!BinarySearch<DotNetAssembly,DotNetAssembly *,EqualTo<DotNetAssembly,DotNetAssembly> >(DotNetAssembly * first, DotNetAssembly * last, const DotNetAssembly & value, const EqualTo<DotNetAssembly,DotNetAssembly> & predicate) Line 167 C++
    UnityPlayer.dll!BinarySearch<DotNetAssembly,DotNetAssembly *>(DotNetAssembly * first, DotNetAssembly * last, const DotNetAssembly & value) Line 180 C++
    UnityPlayer.dll!ScriptingTypeProvider_DotNet::provide(const char * assemblyName, const char * namespaze, const char * name) Line 246 C++
    UnityPlayer.dll!scripting_class_from_fullname(const char * assembly, const char * namespaze, const char * name) Line 269 C++
    UnityPlayer.dll!MonoScript::RebuildFromAwake() Line 170 C++
    UnityPlayer.dll!MonoScript::AwakeFromLoadThreaded() Line 190 C++
    UnityPlayer.dll!PersistentManager::postReadActivationQueue(int instanceID, const TypeTree * oldType, bool didTypeTreeChange) Line 1158 C++
    UnityPlayer.dll!PersistentManager::LoadFileCompletelyThreaded(const std::basic_string<char,std::char_traits<char>,stl_allocator<char,65,16> > & pathname, __int64 * fileIDs, int * instanceIDs, int size, bool loadScene, LoadProgress & loadProgress) Line 1626 C++
    UnityPlayer.dll!PersistentManager::LoadFileCompletely(const std::basic_string<char,std::char_traits<char>,stl_allocator<char,65,16> > & path) Line 1653 C++
    UnityPlayer.dll!PlayerLoadGlobalManagers(const char * globalManagerPath, const char * globalManagerAssetPath, unsigned int loadManagerMask) Line 112 C++
    UnityPlayer.dll!PlayerInitEngineGraphics(bool batchmode) Line 737 C++
    UnityPlayer.dll!metro::InitializeGfxWindow(void * swapChain, bool xaml, int width, int height, bool fullScreen) Line 131 C++
    UnityPlayer.dll!UnityPlayer::AppCallbacks::InitializeD3DXAML::__l76::<lambda>() Line 1072 C++
    [External Code]
    UnityPlayer.dll!UnityPlayer::AppCallbacks::ExecuteQueuedCallbacks() Line 346 C++
    UnityPlayer.dll!UnityPlayer::AppCallbacks::_AppThreadImplementation(void * param) Line 161 C++
    UnityPlayer.dll!UnityPlayer::AppCallbacks::_AppThread(void * param) Line 191 C++
    UnityPlayer.dll!win32::CreateThread::__l26::<lambda>(Windows::Foundation::IAsyncAction ^ __formal) Line 276 C++
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Eh, that looks like a bug in Unity. Can we get a bug report?

    Since it will take a while before we fix this, we should look for a workaround for you. Do you have any DLLs in your project that contain monobehaviours?
     
  13. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    yes, DoTween have monobeh inheritance
     
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Is there any chance you marked any of those plugins as "Don't process"?
     
  15. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    When i firs tyme run application after build i have this

    WinRTBridge.winmd!WinRTBridge.WinRTBridge.ExceptionHandling.get() Line 115 C#
    [External Code]
    UnityPlayer.dll!WinRT::Bridge::Setup(BridgeInterface::IBridge ^ bridge) Line 195 C++
    UnityPlayer.dll!UnityPlayer::AppCallbacks::[UnityPlayer::__IAppCallbacksPublicNonVirtuals]::SetBridge(BridgeInterface::IBridge ^ bridge) Line 448 C++
    [External Code]
    > Papermates.exe!Papermates.MainPage.MainPage() Line 44 C#
    [External Code]
    Papermates.exe!Papermates.App.InitializeUnity(string args) Line 120 C#
    Papermates.exe!Papermates.App.OnLaunched(Windows.ApplicationModel.Activation.LaunchActivatedEventArgs args) Line 93 C#
    [External Code]
     
  16. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Sorry, I lost you there. You get what? An exception? Is it a first-chance exception?

    What about my previous question? Are any of those plugins marked as "don't process" in the plugin inspector?
     
  17. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    I marked all this plugin don't process" in the plugin inspector, it dont't help. Is a not first-chance exception its same, sorry for my bad understanding win store build i do it first time )
     
  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Yeah you're not supposed to be marking them as don't process - that's why I asked whether any of them are marked as such.
     
  19. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    hi, i do some manipulations and now have this, game start, but throw this exception.

    TargetInvocationException: Exception has been thrown by the target of an invocation.
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at NodeCanvas.Tasks.Actions.ExecuteFunction_Multiplatform.OnExecute()
    at NodeCanvas.Framework.ActionTask.ExecuteAction(Component agent, IBlackboard blackboard)
    at NodeCanvas.Framework.ActionList.OnUpdate()
    at NodeCanvas.Framework.ActionList.OnExecute()
    at NodeCanvas.Framework.ActionTask.ExecuteAction(Component agent, IBlackboard blackboard)
    at NodeCanvas.StateMachines.SuperActionState.OnUpdate()
    at NodeCanvas.StateMachines.SuperActionState.OnEnter()
    at NodeCanvas.StateMachines.FSMState.OnExecute(Component agent, IBlackboard bb)
    at NodeCanvas.Framework.Node.Execute(Component agent, IBlackboard blackboard)
    at NodeCanvas.StateMachines.FSM.EnterState(FSMState newState)
    at NodeCanvas.StateMachines.FSM.OnGraphStarted()
    at NodeCanvas.Framework.Graph.StartGraph(Component agent, IBlackboard blackboard, Action`1 callback)
    at NodeCanvas.Framework.GraphOwner`1.StartBehaviour()
    at NodeCanvas.Framework.GraphOwner.Start()
    at NodeCanvas.Framework.GraphOwner.$Invoke21(Int64 instance, Int64* args)
    at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
    (Filename: <Unknown> Line: 0)
     
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    That looks like your code is throwing an exception. Did you check the inner exception of the target invocation exception? When you call a method through reflection and it throws an exception, it is wrapped into TargetInvocationException.
     
  21. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    I can see exeprion only in devconsole in game or in a debug file, visual studio havent exaption?
    upload_2016-1-20_12-47-30.png
     
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Are you saying visual studio isn't breaking on exception?
     
  23. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    Is debugger type set to "managed" in the Project Settings -> Debug?
     
  25. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
  26. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    I'd place a breakpoint inside the function that you're invoking through reflection and debug from there.
     
  27. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    i switch in vs 2013 and now, its ok with exception.

    I get this in NodeCanvas ReflectionTools.cs, cant load BadImageFormatExeption, i can skip it, game load, but node canvas work incorrect after this, dont load UI prefab . Its nodeCavas Problem?

    upload_2016-1-20_17-48-25.png
     
  28. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,637
    BadImageFormatException indicates that the dll you try to load is either native (hence impossible to load Assembly) or is incompatible/corrupted.
     
  29. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,503
    The comment below is saying exactly what's going on. BridgeInterface.dll is written in C++.
     
  30. thxu2

    thxu2

    Joined:
    Jan 12, 2016
    Posts:
    33
    Hi, its me, again ), i fix some bag and now i have problems, any code with Instantiate(prefab) have null ref prefab inside.