lmstudio-ai / lmstudio-bug-tracker

Bug tracking for the LM Studio desktop application
2 stars 2 forks source link

X11 Forwarding Issue on Windows Client for lmstudio #37

Open jugal-sheth opened 3 weeks ago

jugal-sheth commented 3 weeks ago

I am encountering an issue where lmstudio fails to run via X11 forwarding from a Linux server to a Windows client. The application works correctly when both the server and the client are Linux machines, but it does not work with a Windows client using Xming and PuTTY for X11 forwarding. Simpler applications like gedit and nautilus run without issues.

Steps to Reproduce: Setup:

Linux Server: Ubuntu 20.04 Windows Client: Windows 11 Xming: Version 6.9.0.31 PuTTY: Version 0.76 Xming Configuration:

Started Xming with the -ac option to disable access control. PuTTY Configuration:

Enabled X11 forwarding with X display location set to localhost:0. Linux Server Configuration:

Ensured the following lines are present and uncommented in /etc/ssh/sshd_config:

X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes

Restarted the SSH service. Running lmstudio: Connected to the Linux server via PuTTY. Exported the DISPLAY variable: export DISPLAY=localhost:10.0 Attempted to run lmstudio with indirect rendering: LIBGL_ALWAYS_INDIRECT=1 ./lmstudio

Observed Behavior: lmstudio fails to start, with errors indicating issues related to OpenGL and EGL initialization. Relevant error messages include:

./lmstudio
14:55:02.357 › GPU info: '04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)'
14:55:02.377 › Got GPU Type: unknown
14:55:02.378 › LM Studio: gpu type = Unknown
14:55:02.401 › App starting...
[525067:0607/145507.633420:ERROR:(-1)] Check failed: false.
[525067:0607/145507.633459:ERROR:(-1)] Check failed: false.
14:55:07.760 › Downloads folder from settings.json: /home/jugs/.cache/lm-studio/models
[525124:0607/145520.105959:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
[525124:0607/145520.110539:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Unsupported GLX version (requires at least 1.3).
[525124:0607/145520.110744:ERROR:gl_display.cc(793)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[525124:0607/145520.125369:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
[525124:0607/145520.125660:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Unsupported GLX version (requires at least 1.3).
[525124:0607/145520.125755:ERROR:gl_display.cc(793)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[525124:0607/145520.125843:ERROR:gl_display.cc(819)] Initialization of all EGL display types failed.
[525124:0607/145520.125948:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[525124:0607/145522.677446:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
[525124:0607/145522.677758:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Unsupported GLX version (requires at least 1.3).
[525124:0607/145522.677821:ERROR:gl_display.cc(793)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[525124:0607/145522.692794:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 12289: Unsupported GLX version (requires at least 1.3).
[525124:0607/145522.693003:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Unsupported GLX version (requires at least 1.3).
[525124:0607/145522.693077:ERROR:gl_display.cc(793)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[525124:0607/145522.693144:ERROR:gl_display.cc(819)] Initialization of all EGL display types failed.
[525124:0607/145522.693210:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[525124:0607/145522.709838:ERROR:(-1)] Check failed: false.
[525124:0607/145522.710101:ERROR:(-1)] Check failed: false.
[525124:0607/145522.710440:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization

Expected Behavior: lmstudio should start and function correctly via X11 forwarding on a Windows client, similar to its behavior on a Linux client. Additional Information: The application works perfectly when the client is a Linux machine. Using gedit and other simpler applications via X11 forwarding on the Windows client works without any issues. Screenshot (27) Screenshot (28) Screenshot (26)