Fails with the following error: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 1 (X_CreateWindow) Serial number of failed request: 32 Current serial number in output stream: 36
x_get_pixmap_info() in FreeRDP are used to get a visual which is used in XCreateWindow() which fails. This function enumerates visuals for display using XListPixmapFormats() and uses the first matching visual which depth matches the screen. The first matching visualid differs if running freerdp on console or within a ThinLinc session. Visual id 0x21 is the first match when running on console and within a session it is 0xae.
Created attachment 582 [details] test program Simple test program that can provoke the issue.
This should hopefully be resolved with: https://github.com/TigerVNC/tigervnc/commit/7ad74d14160028fd709f595e9441c369cc4cd17e
I tried running the test program attachment 582 [details] (modified it to use the first visualid listed by xdpyinfo in a ThinLinc session). The program did not crash with 4.18.0, nor with server build 3921. Instead, I found a program listed in a relevant upstream issue [1] which crashed in 4.18.0: > X Error of failed request: BadMatch (invalid parameter attributes) > Major opcode of failed request: 1 (X_CreateWindow) > Serial number of failed request: 7 > Current serial number in output stream: 8 Running vulkaninfo triggers the same crash. After upgrading to server build 3921, the test program and vulkaninfo works as expected. I also tried FreeRDP 2.11.7 with ThinLinc 4.18.0 on a RHEL 9 VM and did not get a crash, they must have fixed the issue on their end some time ago. [1] https://github.com/TigerVNC/tigervnc/issues/1674#issuecomment-1884290183