Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu

#94 freeze on GeForce GTX 1060

v1.0_(example)
open
nobody
None
5
2020-12-30
2018-11-04
Imai2
No
  • VcXsrv 1.20.1.3(64bit) (Native opengl: enabled)
  • Windows 10 Pro 1803(Build 17134.345) (64bit)
  • NVIDIA GeForce GTX 1060 (Driver: 25.21.14.1634 (64bit))
  • Ubuntu 18.04 on WSL (LIBGL_ALWAYS_INDIRECT is set)

When I launch glxinfo(or glxgears, cool-retro-term) from Ubuntu, launched application and VcXsrv are freezed.
And when VcXsrv icon on notification area is clicked by right mouse button, no context menu is shown.

Discussion

  • Martin Hintermann

    Same here with Nvidia Quadro P400.

     
  • Imai2

    Imai2 - 2018-11-24

    Still freezes on 1.20.1.4(64bit)

     
  • Michael Roßberg

    Same here.
    VcXsrv 1.20.1.4(64bit) on Windows 10 with GTX 1060.
    Remote host: OpenSuSE Leap 42.2
    Applications tested that freeze the server:
    firefox (52.6.0.ESR 64 bit)
    glxinfo
    glxgears

    Logfile (before crash)
    Welcome to the VcXsrv X Server
    Vendor: The VcXsrv Project
    Release: 1.20.1.4

    OS: Windows NT 6.2 build 9200 (64-bit)
    Contact: marha@users.sourceforge.net

    LoadPreferences: C:\Users\rossi\AppData\Roaming.XWinrc not found
    LoadPreferences: Loading C:\Program Files\VcXsrv\system.XWinrc
    Warning: Locale not supported by X, falling back to 'C' locale.
    (II) AIGLX: Testing pixelFormatIndex 5
    (II) GLX: enabled GLX_SGI_make_current_read
    (II) GLX: enabled GLX_SGI_swap_control
    (II) GLX: enabled GLX_MESA_swap_control
    (II) GLX: enabled GLX_SGIX_pbuffer
    (II) GLX: enabled GLX_ARB_multisample
    (II) GLX: enabled GLX_SGIS_multisample
    (II) GLX: enabled GLX_ARB_fbconfig_float
    (II) GLX: enabled GLX_EXT_fbconfig_packed_float
    (II) GLX: enabled GLX_ARB_create_context
    (II) GLX: enabled GLX_ARB_create_context_profile
    (II) GLX: enabled GLX_ARB_create_context_robustness
    (II) GLX: enabled GLX_EXT_create_context_es2_profile
    (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    (II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
    (II) GLX: Initialized Win32 native WGL GL provider for screen 0
    winClipboardThreadProc - DISPLAY=127.0.0.1:0.0
    Using Composite redirection
    OS maintains clipboard viewer chain: yes

     

    Last edit: Michael Roßberg 2018-12-14
  • sL1pKn07

    sL1pKn07 - 2018-12-21

    same here in win10pro 1809
    Microsoft Windows [Versión 10.0.17763.195]
    Nvidia GTX 1070ti (25.21.14.1742 (Vulkan driver))
    Archlinux on WSL

    ~~~Welcome to the VcXsrv X Server

    Vendor: The VcXsrv Project
    Release: 1.20.1.4

    OS: Windows NT 6.2 build 9200 (64-bit)
    Contact: marha@users.sourceforge.net

    LoadPreferences: C:\Users\sL1pKn07\AppData\Roaming.XWinrc not found
    LoadPreferences: Loading C:\Program Files\VcXsrv\system.XWinrc
    Warning: Locale not supported by X, falling back to 'C' locale.
    (II) AIGLX: Testing pixelFormatIndex 5
    (II) GLX: enabled GLX_SGI_make_current_read
    (II) GLX: enabled GLX_SGI_swap_control
    (II) GLX: enabled GLX_MESA_swap_control
    (II) GLX: enabled GLX_SGIX_pbuffer
    (II) GLX: enabled GLX_ARB_multisample
    (II) GLX: enabled GLX_SGIS_multisample
    (II) GLX: enabled GLX_ARB_fbconfig_float
    (II) GLX: enabled GLX_EXT_fbconfig_packed_float
    (II) GLX: enabled GLX_ARB_create_context
    (II) GLX: enabled GLX_ARB_create_context_profile
    (II) GLX: enabled GLX_ARB_create_context_robustness
    (II) GLX: enabled GLX_EXT_create_context_es2_profile
    (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    (II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
    (II) GLX: Initialized Win32 native WGL GL provider for screen 0
    winClipboardThreadProc - DISPLAY=127.0.0.1:0.0
    Using Composite redirection
    OS maintains clipboard viewer chain: yes
    glxWinSetPixelFormat: having second thoughts: cColorbits 24, bppOveride 0; config->drawableType 5, drawableTypeOverride 1
    wglChoosePixelFormat: chose pixelFormatIndex 9 (rather than 9 as originally planned)
    ~~~

     

    Last edit: sL1pKn07 2018-12-21
  • Daniel R Slater

    Daniel R Slater - 2019-01-11

    Same for me running under Windows 7 (x64) and VcxSrv in multiwindow mode. It works fine in non-multiwindow mode. vcxsrv.exe doesn't crash. Instead, it hangs, using a constant 12% of my total CPU, and has to be killed with taskmgr.

    Microsoft Windows [Version 6.1.7601]
    NVIDIA Quadro M1200 (Driver version: 21.21.13.7864)
    Running Ubuntu 18.04 on vmware workstation.
    Linux ubuntu 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    Running with -wgl or -swrastwgl gives the same result.

    [daniel.slater@USTEW-F6QHNH2:c:\Program Files\VcXsrv]
    Σ .\vcxsrv.exe -logfile vcxsrv.log -logverbose 3 -multiwindow -wgl
    [daniel.slater@USTEW-F6QHNH2:c:\Program Files\VcXsrv]
    Σ Welcome to the VcXsrv X Server
    Vendor: The VcXsrv Project
    Release: 1.20.1.4

    OS: Windows NT 6.1 build 7601 (64-bit)
    Contact: marha@users.sourceforge.net

    LoadPreferences: C:\Users\daniel.slater.XWinrc not found
    LoadPreferences: Loading c:\Program Files\VcXsrv\system.XWinrc
    x: 1920, y: 0, w: 1920, h: 1080
    x: 0, y: 0, w: 1920, h: 1080
    x: 3840, y: 0, w: 1920, h: 1080
    Warning: Locale not supported by X, falling back to 'C' locale.
    (II) Initializing extension Generic Event Extension
    (II) Initializing extension SHAPE
    (II) Initializing extension XInputExtension
    (II) Initializing extension XTEST
    (II) Initializing extension BIG-REQUESTS
    (II) Initializing extension SYNC
    (II) Initializing extension XKEYBOARD
    (II) Initializing extension XC-MISC
    (II) Initializing extension SECURITY
    (II) Initializing extension XFIXES
    (II) Initializing extension XFree86-Bigfont
    (II) Initializing extension RENDER
    (II) Initializing extension RANDR
    (II) Initializing extension COMPOSITE
    (II) Initializing extension DAMAGE
    (II) Initializing extension MIT-SCREEN-SAVER
    (II) Initializing extension DOUBLE-BUFFER
    (II) Initializing extension RECORD
    (II) Initializing extension DPMS
    (II) Initializing extension Present
    (II) Initializing extension X-Resource
    (II) Initializing extension GLX
    (II) AIGLX: Testing pixelFormatIndex 5
    (II) GLX: enabled GLX_SGI_make_current_read
    (II) GLX: enabled GLX_SGI_swap_control
    (II) GLX: enabled GLX_MESA_swap_control
    (II) GLX: enabled GLX_SGIX_pbuffer
    (II) GLX: enabled GLX_ARB_multisample
    (II) GLX: enabled GLX_SGIS_multisample
    (II) GLX: enabled GLX_ARB_fbconfig_float
    (II) GLX: enabled GLX_EXT_fbconfig_packed_float
    (II) GLX: enabled GLX_ARB_create_context
    (II) GLX: enabled GLX_ARB_create_context_profile
    (II) GLX: enabled GLX_ARB_create_context_robustness
    (II) GLX: enabled GLX_EXT_create_context_es2_profile
    (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    (II) 1071 pixel formats reported by wglGetPixelFormatAttribivARB
    (II) GLX: Initialized Win32 native WGL GL provider for screen 0
    winClipboardThreadProc - DISPLAY=127.0.0.1:0.0
    OS maintains clipboard viewer chain: yes
    Using Composite redirection
    glxWinSetPixelFormat: having second thoughts: cColorbits 24, bppOveride 0; config->drawableType 5, drawableTypeOverride 1
    wglChoosePixelFormat: chose pixelFormatIndex 5 (rather than 5 as originally planned)

    =============
    Interestingly, If I try the same thing with the CygwinX server, then CygwinX doesn't crash/hang. However, glxinfo can't get a valid context:
    slaterd@ubuntu:~$ glxinfo
    name of display: localhost:10.0
    X Error of failed request: GLXBadContext
    Major opcode of failed request: 148 (GLX)
    Minor opcode of failed request: 6 (X_GLXIsDirect)
    Serial number of failed request: 38
    Current serial number in output stream: 37

     

    Last edit: Daniel R Slater 2019-01-11
  • Ameisen Carbide

    Ameisen Carbide - 2019-01-11

    This also occurs on a GTX 1070 on Windows 10.

    I am presently looking into the issue locally. Unfortunately, this project is somewhat difficult to build, so progress isn't very quick. It's effectively a GNU project that has been sort of forced to build for Windows - it isn't Visual Studio-friendly, nor is it particularly MinGW/MSYS-friendly. Debugging via Linux is not trivial, even with a MinGW toolchain. Haven't tried Clang for Windows, yet.

    If I fix it, I will submit it here, and probably on a GitHub fork, as I'm not sure how active this project is (it is on SourceForge, after all).

    The only present workaround I've found is to disable hardware acceleration altogether and use software rasterization. This is, as one would imagine, quite slow.

     

    Last edit: Ameisen Carbide 2019-01-11
  • Daniel R Slater

    Daniel R Slater - 2019-02-22

    I believe I've found the hang. In xorg-server/hw/xwin/glx/indirect.c, there is a function GetShift():

    /* ---------------------------------------------------------------------- */
    /*
     * Utility functions
     */
    
    static int
    GetShift(int mask)
    {
        int shift = 0;
    
        while ((mask & 1) == 0) {
        shift++;
            mask >>= 1;
        }
    
        return shift;
    }
    

    It can be called with mask == 0 from this line, also in indirect.c, when the pixel format doesn't support alpha:
    pfd.cAlphaShift = GetShift(mode->alphaMask);

    Changing it to this:

    /* ---------------------------------------------------------------------- */
    /*
     * Utility functions
     */
    
    static int
    GetShift(int mask)
    {
        int shift = 0;
    
        /*  prevent an infinite loop if passed in mask is 0 */
        if (mask != 0)
        {
            while ((mask & 1) == 0) {
                shift++;
                mask >>= 1;
            }
        }
        return shift;
    }
    

    fixes the hang.
    With this change, glxinfo will return the supported pixel formats. However, even though glxgears appears to run, it only displays the first frame - no animation.

     

    Last edit: Daniel R Slater 2019-02-22
  • saeed

    saeed - 2020-12-30

    its not fixed yet i also have 1060 with same issue
    applications that trigger freeze on kali in kex --sl
    firefox
    web browser
    vulnhub
    probably several more

     

    Last edit: saeed 2020-12-30

Log in to post a comment.