Search Unity

Question Steam Overlay Crashing Windows

Discussion in 'Windows' started by ADaurio, Jun 30, 2020.

  1. ADaurio

    ADaurio

    Joined:
    Jul 12, 2015
    Posts:
    21
    Hey there. We recently ported our game from WebGL to Windows (on Steam) and we're getting very regular crashes during scene transitions from Steam Overlay.

    This is a crash log (they're all identical).

    Code (CSharp):
    1. Stack Trace of Crashed Thread 16744:
    2. ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 00007FFA507B16F5)
    3. ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 00007FFA507B16F5)
    4. 0x00007FFA507B16F5 ((<unknown>)) (function-name not available)
    5. 0x00007FF9E8EAF5E2 (gameoverlayrenderer64) VulkanSteamOverlayProcessCapturedFrame
    6. 0x00007FF9D52CF317 (UnityPlayer) win::RawInput::Process
    7. 0x00007FF9D52CFE78 (UnityPlayer) ResetInput
    8. 0x00007FF9D58854D5 (UnityPlayer) LoadSceneOperation::PlayerLoadSceneFromThread
    9. 0x00007FF9D5883E0F (UnityPlayer) LoadSceneOperation::IntegrateMainThread
    10. 0x00007FF9D5886677 (UnityPlayer) PreloadManager::UpdatePreloadingSingleStep
    11. 0x00007FF9D5886B26 (UnityPlayer) PreloadManager::WaitForAllAsyncOperationsToComplete
    12. 0x00007FF9D5886386 (UnityPlayer) PreloadManager::UpdatePreloading
    13. 0x00007FF9D5871356 (UnityPlayer) `InitPlayerLoopCallbacks'::`2'::EarlyUpdateUpdatePreloadingRegistrator::Forward
    14. 0x00007FF9D586267E (UnityPlayer) ExecutePlayerLoop
    15. 0x00007FF9D586274F (UnityPlayer) ExecutePlayerLoop
    16. 0x00007FF9D58656F0 (UnityPlayer) PlayerLoop
    17. 0x00007FF9D52DE2F2 (UnityPlayer) PerformMainLoop
    18. 0x00007FF9D52DC96A (UnityPlayer) MainMessageLoop
    19. 0x00007FF9D52E19C6 (UnityPlayer) UnityMainImpl
    20. 0x00007FF9D52E3DBB (UnityPlayer) UnityMain
    21. 0x00007FF78DE511FA (<GameName>) __scrt_common_main_seh
    22. 0x00007FFA53A27BD4 (KERNEL32) BaseThreadInitThunk
    23. 0x00007FFA557ECE51 (ntdll) RtlUserThreadStart
    [Edit]: I've updated the crash log above with more information. We now know this is a specific crash caused by having an Xbox One Controller plugged in during a scene transition with Steam Overlay active.

    If anybody has any insight we'd appreciate it.
     
    Last edited: Jun 30, 2020
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Did you try switching graphics APIs to DirectX? It could be the overlay is interacting badly with our Vulkan implementation (I'm just speculating, I've not seen it before, but it is definitely possible with these DLL injection hacks).
     
  3. ADaurio

    ADaurio

    Joined:
    Jul 12, 2015
    Posts:
    21
    Thanks for responding Tautvydas-Zilys. I just tried a build with DX11 specified and ran into the same issue with the exact same crash log.

    I have found the same issue here: https://forum.unity.com/threads/crash-on-scene-transition-windows-steam.715346/

    After seeing that thread, I tried without my controller plugged in and it didn't crash. I've edited the top post's crash log to include PDB files. This is looking like a bug specifically with the combination of resetting xbox one controller inputs while steam overlay is running. It still has to be resolved as the Xbox One controller is one of the most common controllers for windows gaming.
     
    Last edited: Jun 30, 2020
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Can you report a bug on this?
     
  5. ADaurio

    ADaurio

    Joined:
    Jul 12, 2015
    Posts:
    21
    I have reported a bug, although I wasn't comfortable including our entire commercial game project, so I included the crash files instead.

    Is there any chance of a workaround being found in the next few weeks? Our game launches in a month and a half and we need to get it out to influencers and review sites a few weeks before then.
     
    Last edited: Jul 1, 2020
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    What's the case #?
     
  7. ADaurio

    ADaurio

    Joined:
    Jul 12, 2015
    Posts:
    21
    Sorry, case # is 1260043
     
    Last edited: Jul 1, 2020
  8. ADaurio

    ADaurio

    Joined:
    Jul 12, 2015
    Posts:
    21
    This has been resolved. I went through a series of additional steps and narrowed down the issue to XInput being enabled through a plugin (InControl). Disabling XInput fixed it.

    So this was a combination of: Steam Overlay + Unloading a scene + Xbox One Controller + XInput (through InControl).
     
    kingbreedicus likes this.