Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

krdp报错:ERRINFO_GRAPHICS_SUBSYSTEM_FAILED (0x0000112F):The server-side graphics subsystem is in an error state and unable to continue graphics encoding. #67

Open
gemfield opened this issue Dec 15, 2024 · 1 comment

Comments

@gemfield
Copy link
Contributor

当使用krdc客户端连接krdp服务时,krdp服务报错:

kpipewire_vaapi_logging: VAAPI: entrypoint 6 of profile 13 is not supported by the device "/dev/dri/renderD128"
[18:38:34:171] [499202:499261] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_CONTINUE_NEEDED [0x00090312]
[18:38:34:272] [499202:499261] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_COMPLETE_NEEDED [0x00090313]
[18:38:34:372] [499202:499261] [INFO][com.freerdp.core.connection] - Accepted client: CivilNet
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.connection] - Accepted channels:
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.connection] -  rdpdr
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.connection] -  rdpsnd
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.connection] -  cliprdr
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.connection] -  drdynvc
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.gcc] - Active rdp encryption level: NONE
[18:38:34:373] [499202:499261] [INFO][com.freerdp.core.gcc] - Selected rdp encryption method: NONE
org.kde.krdp: New client connected:  UNIX platform Unspecified version
org.kde.krdp: Video stream initialized
org.kde.krdp: Received caps:
org.kde.krdp:   RDPGFX_CAPVERSION_8 AVC: false YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_81 AVC: false YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_10 AVC: false YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_101 AVC: true YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_102 AVC: false YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_103 AVC: false YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_104 AVC: false YUV420: true
org.kde.krdp:   RDPGFX_CAPVERSION_105 AVC: false YUV420: true
org.kde.krdp:   RDPGFX_CAPVERSION_106 AVC: false YUV420: true
org.kde.krdp:   UNKNOWN_VERSION AVC: false YUV420: false
org.kde.krdp:   RDPGFX_CAPVERSION_107 AVC: false YUV420: true
org.kde.krdp: Client does not support H.264 in YUV420 mode!
[18:38:35:534] [499202:499365] [INFO][com.freerdp.core] - ERRINFO_GRAPHICS_SUBSYSTEM_FAILED (0x0000112F):The server-side graphics subsystem is in an error state and unable to continue graphics encoding.
[18:38:35:534] [499202:499365] [ERROR][com.freerdp.core] - rdp_set_error_info:freerdp_set_last_error_ex ERRINFO_GRAPHICS_SUBSYSTEM_FAILED [0x0001112F]
[18:38:35:535] [499202:499365] [ERROR][com.freerdp.channels.rdpgfx.server] - context->CapsAdvertise failed with error 20
[18:38:35:535] [499202:499365] [ERROR][com.freerdp.channels.rdpgfx.server] - rdpgfx_recv_caps_advertise_pdu failed with error 20!
[18:38:35:535] [499202:499365] [ERROR][com.freerdp.channels.rdpgfx.server] - Error while parsing GFX cmdId: RDPGFX_CMDID_CAPSADVERTISE (0x0012)
[18:38:35:535] [499202:499365] [ERROR][com.freerdp.channels.rdpgfx.server] - rdpgfx_server_receive_pdu failed with error 20!
[18:38:35:535] [499202:499365] [ERROR][com.freerdp.channels.rdpgfx.server] - rdpgfx_server_handle_messages failed with error 20
[18:38:35:536] [499202:499261] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 0: Success
org.kde.krdp: Unable to check file descriptor
org.kde.krdp: Closing session
org.kde.krdp: Closing Freedesktop Portal Session
@gemfield
Copy link
Contributor Author

这是因为krdc客户端目前不支持H.264 in YUV420 mode。使用remmina客户端的最新版本(1.4.36,)就可以。注意,最新版本目前只有flatpak版本:

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.remmina.Remmina
flatpak run org.remmina.Remmina

运行起来后,服务端的krdp日志如下:

12月 15 19:57:42 CivilNet krdpserver[508489]: [19:57:42:291] [508489:508520] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_CONTINUE_NEEDED [0x00090312]
12月 15 19:57:42 CivilNet krdpserver[508489]: [19:57:42:391] [508489:508520] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_COMPLETE_NEEDED [0x00090313]
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp: New client connected:  UNIX platform Unspecified version
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp: Video stream initialized
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp: Received caps:
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_8 AVC: false YUV420: false
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_81 AVC: true YUV420: true
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_10 AVC: true YUV420: false
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_101 AVC: true YUV420: false
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_102 AVC: true YUV420: false
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_103 AVC: true YUV420: false
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_104 AVC: true YUV420: true
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_105 AVC: true YUV420: true
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_106 AVC: true YUV420: true
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   UNKNOWN_VERSION AVC: false YUV420: false
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp:   RDPGFX_CAPVERSION_107 AVC: true YUV420: true
12月 15 19:57:43 CivilNet krdpserver[508489]: org.kde.krdp: Selected caps: RDPGFX_CAPVERSION_107
12月 15 19:57:43 CivilNet krdpserver[508489]: [Parsed_scale_vaapi_1 @ 0x71b61003f840] Failed to create processing pipeline config: 12 (the requested VAProfile is not supported).
12月 15 19:57:43 CivilNet krdpserver[508489]: [Parsed_scale_vaapi_1 @ 0x71b61003f840] Failed to configure output pad on Parsed_scale_vaapi_1
12月 15 19:57:43 CivilNet krdpserver[508489]: kpipewire_record_logging: Failed configuring filter graph
12月 15 19:57:43 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] -qscale is ignored, -crf is recommended.
12月 15 19:57:43 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] MB rate (33970000) > level limit (16711680)
12月 15 19:57:43 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
12月 15 19:57:43 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] profile Constrained Baseline, level 6.2, 4:2:0, 8-bit
12月 15 19:57:43 CivilNet krdpserver[508489]: QObject: Cannot create children for a parent that is in a different thread.
                                               (Parent is QApplication(0x7ffe2b069fb0), parent's thread is QThread(0x570d7db65e60), current thread is QThread(0x71b618043e70)
12月 15 19:57:43 CivilNet krdpserver[508489]: kpipewire_dmabuf_logging: eglChooseConfig returned this many configs: 1
12月 15 19:58:15 CivilNet krdpserver[508489]: [19:58:15:696] [508489:508520] [ERROR][com.freerdp.core.peer] - peer_recv_callback: CONNECTION_STATE_ACTIVE - peer_recv_pdu() fail
12月 15 19:58:15 CivilNet krdpserver[508489]: [19:58:15:696] [508489:508520] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1
12月 15 19:58:15 CivilNet krdpserver[508489]: org.kde.krdp: Unable to check file descriptor
12月 15 19:58:15 CivilNet krdpserver[508489]: org.kde.krdp: Closing session
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] frame I:3     Avg QP:18.00  size:1316073
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] frame P:274   Avg QP:20.50  size: 55146
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] mb I  I16..4: 100.0%  0.0%  0.0%
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] mb P  I16..4:  2.5%  0.0%  0.0%  P16..4:  7.4%  0.0%  0.0%  0.0%  0.0%    skip:90.1%
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] coded y,uvDC,uvAC intra: 30.4% 27.9% 22.6% inter: 3.1% 4.9% 2.7%
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] i16 v,h,dc,p: 56% 34%  5%  6%
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] i8c dc,h,v,p: 58% 23% 16%  2%
12月 15 19:58:15 CivilNet krdpserver[508489]: [libx264 @ 0x71b610413000] kb/s:550421.38
12月 15 19:58:15 CivilNet krdpserver[508489]: org.kde.krdp: Closing Freedesktop Portal Session
12月 15 19:58:15 CivilNet kded6[2017]: Service  ":1.1329" unregistered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant