Otter-Co / TurnSignal

An anti-cable-twisting management utility for SteamVR.
MIT License
87 stars 13 forks source link

TurnSignal crashes when Citrix Workspace App is installed #40

Closed shadowcode0 closed 4 years ago

shadowcode0 commented 4 years ago

Hi,

TurnSignal crashes on startup if the Citrix Workspace App is installed. This software is often used to provide remote desktop access for corporations. More people may have this installed nowadays due to Covid19.

TurnSignal quietly exits with exception 0xC0000005 (Access Violation - The thread tried to read from or write to a virtual address for which it does not have the appropriate access.)

The issue is likely caused when Unity/TurnSignal is iterating through the different display adaptors available. Removing Citrix's virtual graphics adapter (temporarily) solves the problem. This could be a bug with the Unity engine, however, other Unity applications are fine. Perhaps as a workaround just skip any adaptors that share Citrix's device ID.

Faulting module name: UnityPlayer.dll, version: 2018.2.13.64476, time stamp: 0x5bbfb78f
Exception code: 0xc0000005
Fault offset: 0x00e61990
Faulting process ID: 0x30e0
Faulting application start time: 0x01d6426407255227
Faulting application path: D:\games\Steam\SteamLibrary\steamapps\common\TurnSignal\TurnSignal.exe
Faulting module path: D:\games\Steam\SteamLibrary\steamapps\common\TurnSignal\UnityPlayer.dll
Report ID: 8eb904db-72aa-4bda-bbf0-006974be8ce1

The callstack is as follows:

    UnityPlayer.dll![Frames below may be incorrect and/or missing, no symbols loaded for UnityPlayer.dll]   Unknown
    UnityPlayer.dll!798b93d0()  Unknown
    UnityPlayer.dll!793b6b38()  Unknown
    UnityPlayer.dll!793b6ce0()  Unknown
    UnityPlayer.dll!78c89da7()  Unknown
    UnityPlayer.dll!78c89925()  Unknown
    d3d11.dll!ATL::AtlInternalQueryInterface()  Unknown
    UnityPlayer.dll!78c89b74()  Unknown
    dxgi.dll!ATL::AtlInternalQueryInterface()   Unknown
    UnityPlayer.dll!78c89b74()  Unknown
    UnityPlayer.dll!793e0321()  Unknown
    UnityPlayer.dll!793cf639()  Unknown
    UnityPlayer.dll!78c89da7()  Unknown
    UnityPlayer.dll!78c89925()  Unknown
    UnityPlayer.dll!793c1ca5()  Unknown
    UnityPlayer.dll!78e2a7ee()  Unknown
    UnityPlayer.dll!793c3c86()  Unknown
    UnityPlayer.dll!793c45c5()  Unknown
    TurnSignal.exe!009b1015()   Unknown
    TurnSignal.exe!009b11d0()   Unknown
    kernel32.dll!@BaseThreadInitThunk@12() Unknown
    ntdll.dll!__RtlUserThreadStart()    Unknown
    ntdll.dll!__RtlUserThreadStart@8() Unknown

The adapter in question:

  Driver version: 12.40.44.247
  vidd.dll (7.210.183 Citrix Systems)
  Name: Citrix Indirect Display Adapter
  Device ID: PCI\VEN_5853&DEV_1003\1&1A590E2C&3&03
  Driver: C:\WINDOWS\system32\DRIVERS\UMDF\vidd.dll, 7.21.0000.0183 (English), 12/17/2019 
  00:41:32, 85624 bytes

DXDIAG blurb:

        Manufacturer: Citrix Systems Inc.
           Chip type: Unknown
            DAC type: Unknown
         Device Type: Display-Only Device
          Device Key: Enum\PCI\VEN_5853&DEV_1003
       Device Status: 0180600A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_REMOVABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER] 
 Device Problem Code: No Problem
 Driver Problem Code: Unknown
      Display Memory: 16195 MB
    Dedicated Memory: 8031 MB
       Shared Memory: 8164 MB
        Current Mode: Unknown
         HDR Support: Unknown
    Display Topology: Unknown
 Display Color Space: Unknown
     Color Primaries: Unknown
   Display Luminance: Unknown
         Driver Name: c:\windows\system32\drivers\umdf\vidd.dll,c:\windows\system32\drivers\wudfrd.sys
 Driver File Version: 7.21.0000.0183 (English)
      Driver Version: 12.40.44.247
         DDI Version: 12
      Feature Levels: 12_1,12_0,11_1,11_0,10_1,10_0,9_3,9_2,9_1
        Driver Model: WDDM 1.3
 Hardware Scheduling: Supported:False Enabled:False 
 Graphics Preemption: DMA
  Compute Preemption: DMA
            Miracast: Not Supported
      Detachable GPU: No
 Hybrid Graphics GPU: Not Supported
      Power P-states: Not Supported
      Virtualization: Not Supported
          Block List: No Blocks
  Catalog Attributes: Universal:True Declarative:True 
   Driver Attributes: Final Retail
    Driver Date/Size: 23/01/2019 02:00:00, 85624 bytes
         WHQL Logo'd: n/a
     WHQL Date Stamp: n/a
   Device Identifier: Unknown
           Vendor ID: 0x10DE
           Device ID: 0x1F06
           SubSys ID: 0xC7541462
         Revision ID: 0x00A1
  Driver Strong Name: oem1.inf:467b626d1b5d690c:ViddDev_Install.NT:12.40.44.247:PCI\VEN_5853&DEV_1003
      Rank Of Driver: 00FF0000
         Video Accel: Unknown
         DXVA2 Modes: {86695F12-340E-4F04-9FD3-9253DD327460}  DXVA2_ModeMPEG2_VLD  {6F3EC719-3735-42CC-8063-65CC3CB36616}  DXVA2_ModeVC1_D2010  DXVA2_ModeVC1_VLD  {32FCFE3F-DE46-4A49-861B-AC71110649D5}  DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT  DXVA2_ModeH264_VLD_Stereo_NoFGT  DXVA2_ModeH264_VLD_NoFGT  DXVA2_ModeHEVC_VLD_Main  DXVA2_ModeHEVC_VLD_Main10  {20BB8B0A-97AA-4571-8E99-64E60606C1A6}  {15DF9B21-06C4-47F1-841E-A67C97D7F312}  DXVA2_ModeMPEG4pt2_VLD_Simple  DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC  {9947EC6F-689B-11DC-A320-0019DBBC4184}  {33FCFE41-DE46-4A49-861B-AC71110649D5}  DXVA2_ModeVP9_VLD_Profile0  DXVA2_ModeVP9_VLD_10bit_Profile2  {DDA19DC7-93B5-49F5-A9B3-2BDA28A2CE6E}  {6AFFD11E-1D96-42B1-A215-93A31F09A53D}  {914C84A3-4078-4FA9-984C-E2F262CB5C9C}  {8A1A1031-29BC-46D0-A007-E9B092CA6767}  
      Deinterlace Caps: n/a
        D3D9 Overlay: Unknown
             DXVA-HD: Unknown
        DDraw Status: Enabled
          D3D Status: Enabled
          AGP Status: Enabled
       MPO MaxPlanes: 0
            MPO Caps: Not Supported
         MPO Stretch: Not Supported
     MPO Media Hints: Not Supported
         MPO Formats: Not Supported
    PanelFitter Caps: Not Supported
 PanelFitter Stretch: Not Supported

Here is the DMP (p/w is 'turnsignal'): TurnSignal.exe_200614_175404.zip I didn't see any logfiles from TurnSignal.

shadowcode0 commented 4 years ago

Actually, never mind. Looks like other Unity projects also have this issue: https://support.paradoxplaza.com/hc/en-us/articles/360019138814-Citrix-Workspace-and-Unity-games

I guess it depends on the version of the Unity runtime, since some of my older games are fine. If you guys could sticky a similar thread in the Steam forums so that other people also know, that would be great.