Bug 469218

Summary: Mount Control does not render properly on Xserver running on Windows.
Product: [Applications] kstars Reporter: jckde
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED NOT A BUG    
Severity: critical    
Priority: NOR    
Version First Reported In: 3.6.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of the issue.
log of Xserver

Description jckde 2023-05-01 04:40:46 UTC
Created attachment 158589 [details]
Screenshot of the issue.

SUMMARY
When I ssh into StellarMate OS and have KStars rendered on an Xserver running on a PC, Mount Control is not rendering properly.

STEPS TO REPRODUCE
1. Launch VcXsrv with Multiplle windows mode on Windows 11.
2. Login to StellarMate OS via ssh.
3. Launch kstars on StellarMate OS.
4. Connect any profile on kstars.
5. Click [Mount Control] button on mount panel.

OBSERVED RESULT
A mount control was popuped, but there are no control objects in mount control.

EXPECTED RESULT
There are Control objects in mount coltrol.

SOFTWARE/OS VERSIONS
Windows: 11 Home 22H2
Linux/KDE Plasma: StellarMate OS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.78.0 on StellarMate OS
Qt Version: 5.15.2 on StellarMate OS
Xserver: VcXsrv 1.20.14.0 on Windows 11

ADDITIONAL INFORMATION
Now with KStars 3.6.4 and INDI 2.0.1 the issue occurs.
In KStars 3.6.3 and INDI 2.0.0 it was rendered.
Comment 1 jckde 2023-06-04 07:03:36 UTC
Created attachment 159456 [details]
log of Xserver

Xserver logs when the issue is reproduced
Comment 2 jckde 2023-06-04 07:08:53 UTC
The log of the timing of the attempt to render Mount Control by clicking the [Mount Control] button in the Mount Panel of EKOS is as follows.
Four lines of error are displayed.

> glxWinSetPixelFormat: having second thoughts: cColorbits 24, bppOveride 0; config->drawableType 5, drawableTypeOverride 1
> wglChoosePixelFormat: chose pixelFormatIndex 11 (rather than 11 as originally planned)
> ChoosePixelFormat: chose pixelFormatIndex 11 (rather than 11 as originally planned)
> Window changed handle from 0 to c10b4
> wglMakeCurrent error: 6 dc FFFFFFFFE7011E45 ctx 0000000000030000
> wglMakeCurrent error: 6 dc FFFFFFFFE7011E45 ctx 0000000000030000
> winMultiWindowWMProc - Error code: 3 (Window), ID: 0x00200077, Major opcode: 25 (SendEvent), Minor opcode: 0 ((null))
> winMultiWindowWMProc - Error code: 3 (Window), ID: 0x00200077, Major opcode: 25 (SendEvent), Minor opcode: 0 ((null))

すべてのログは本日添付したファイル "log of Xserver" で参照できます。
Comment 3 jckde 2023-06-04 07:33:04 UTC
There appears to be an issue with Xserver's GLX "OpenGL Extension to the X Window System" running on Windows.
Mount Control is now rendered when GLX is disabled in the Xserver command line options.
Therefore, this case is not a bug.

Enable GLX - reproduce the issue
vcxsrv -multiwindow -clipboard -wgl -ac -displayfd 440

Disable GLX - not reproduce the issue
vcxsrv -multiwindow -clipboard -nowgl -ac -displayfd 440