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

Remote desktop crashes after connecting. #3079

Open
GilHogan opened this issue May 18, 2024 · 2 comments
Open

Remote desktop crashes after connecting. #3079

GilHogan opened this issue May 18, 2024 · 2 comments
Labels

Comments

@GilHogan
Copy link

xrdp version

0.10.0

Detailed xrdp version, build options

xrdp 0.10.0
A Remote Desktop Protocol Server.
Copyright (C) 2004-2024 Jay Sorg, Neutrino Labs, and all contributors.
See https://github.com/neutrinolabs/xrdp for more information.

Configure options:
--enable-fuse
--enable-mp3lame
--disable-dependency-tracking

Compiled with OpenSSL 3.0.2 15 Mar 2022

Operating system & version

Ubuntu 22.04.4 LTS

Installation method

git clone & make install

Which backend do you use?

xorgxrdp v0.10.1

What desktop environment do you use?

GNOME

Environment xrdp running on

VM

What's your client?

Windows Remote Desktop

Area(s) with issue?

No response

Steps to reproduce

  1. Compile and install xrdp
  2. Compile and install xorgxrdp
  3. Restart the server and I can access the server remotely
  4. Compile and install pulseaudio-module-xrdp
  5. At this time, the server cannot be accessed remotely, and the RDP client prompts: Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again.
  6. Uninstall pulseaudio-module-xrdp, xorgxrdp and xrdp, and recompile and install xorgxrdp and xrdp
  7. Now it crashes when I connect remotely

✔️ Expected Behavior

Remote connection can be successful.

❌ Actual Behavior

Unable to connect successfully remotely.

Anything else?

xrdp.log

[2024-05-18T11:32:19.495+0800] [INFO ] starting xrdp with pid 1312
[2024-05-18T11:32:19.497+0800] [INFO ] address [0.0.0.0] port [43389] mode 1
[2024-05-18T11:32:19.499+0800] [INFO ] listening to port 43389 on 0.0.0.0
[2024-05-18T11:32:19.501+0800] [WARN ] send buffer set to 8388608 bytes but 4194304 bytes requested
[2024-05-18T11:32:19.503+0800] [WARN ] recv buffer set to 12582912 bytes but 6291456 bytes requested
[2024-05-18T11:32:19.504+0800] [INFO ] xrdp_listen_pp done
[2024-05-18T11:32:26.618+0800] [INFO ] Socket 14: connection accepted from xxx.xxx.xxx.xxx:25425
[2024-05-18T11:32:26.624+0800] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[2024-05-18T11:32:26.627+0800] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[2024-05-18T11:32:26.629+0800] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[2024-05-18T11:32:27.598+0800] [ERROR] SSL_read: I/O error
[2024-05-18T11:32:27.618+0800] [ERROR] libxrdp_force_read: header read error
[2024-05-18T11:32:27.635+0800] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[2024-05-18T11:32:27.652+0800] [ERROR] [MCS Connection Sequence] receive connection request failed
[2024-05-18T11:32:27.672+0800] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[2024-05-18T11:32:27.687+0800] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[2024-05-18T11:32:27.703+0800] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[2024-05-18T11:32:27.720+0800] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[2024-05-18T11:32:27.739+0800] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[2024-05-18T11:32:27.314+0800] [INFO ] Socket 14: connection accepted from xxx.xxx.xxx.xxx:34050
[2024-05-18T11:32:27.317+0800] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[2024-05-18T11:32:27.320+0800] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[2024-05-18T11:32:27.322+0800] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[2024-05-18T11:32:27.773+0800] [INFO ] Connected client computer name: DESKTOP-I35CIJ6
[2024-05-18T11:32:27.775+0800] [INFO ] client supports gfx protocol
[2024-05-18T11:32:27.777+0800] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[2024-05-18T11:32:27.778+0800] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[2024-05-18T11:32:29.306+0800] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000804]
[2024-05-18T11:32:29.309+0800] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[2024-05-18T11:32:29.311+0800] [INFO ] TLS connection established from xxx.xxx.xxx.xxx:34050 TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[2024-05-18T11:32:29.988+0800] [INFO ] Client supports single-screen resizes by xrdp
[2024-05-18T11:32:29.990+0800] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[2024-05-18T11:32:29.992+0800] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
[2024-05-18T11:32:29.994+0800] [INFO ] xrdp_caps_process_codecs: NSCodec(CA8D1BB9-000F-154F-589F-AE2D1A87E2D6), codec id [1], properties len [3]
[2024-05-18T11:32:29.996+0800] [INFO ] xrdp_caps_process_codecs: Image RemoteFX(2744CCD4-9D8A-4E74-803C-0ECBEEA19C54), codec id [5], properties len [49]
[2024-05-18T11:32:29.998+0800] [INFO ] Client Capability: LARGE_POINTER_FLAG_96x96 supported
[2024-05-18T11:32:30.476+0800] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[2024-05-18T11:32:30.687+0800] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[2024-05-18T11:32:30.854+0800] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[2024-05-18T11:32:30.109+0800] [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keymap file
[2024-05-18T11:32:30.138+0800] [INFO ] Login screen monitor height is 1080 pixels over 268 mm (102 DPI)
[2024-05-18T11:32:30.230+0800] [INFO ] xrdp_egfx_create: error 0 channel_id 1
[2024-05-18T11:32:30.459+0800] [INFO ] xrdp_mm_egfx_caps_advertise:
[2024-05-18T11:32:30.461+0800] [INFO ]   version 0x00080004 flags 0x00000000 (index: 0)
[2024-05-18T11:32:30.463+0800] [INFO ]   version 0x00080105 flags 0x00000000 (index: 1)
[2024-05-18T11:32:30.465+0800] [INFO ]   version 0x000a0002 flags 0x00000000 (index: 2)
[2024-05-18T11:32:30.467+0800] [INFO ]   version 0x000a0200 flags 0x00000000 (index: 3)
[2024-05-18T11:32:30.469+0800] [INFO ]   version 0x000a0301 flags 0x00000000 (index: 4)
[2024-05-18T11:32:30.471+0800] [INFO ]   version 0x000a0400 flags 0x00000000 (index: 5)
[2024-05-18T11:32:30.473+0800] [INFO ]   version 0x000a0502 flags 0x00000000 (index: 6)
[2024-05-18T11:32:30.475+0800] [INFO ]   version 0x000a0600 flags 0x00000000 (index: 7)
[2024-05-18T11:32:30.477+0800] [INFO ]   version 0x000a0701 flags 0x00000000 (index: 8)
[2024-05-18T11:32:30.479+0800] [INFO ]   replying version 0x000a0701 flags 0x00000000
[2024-05-18T11:32:30.480+0800] [INFO ] xrdp_mm_egfx_caps_advertise: xrdp_egfx_send_capsconfirm error 0 best_index 8
[2024-05-18T11:32:30.482+0800] [INFO ] xrdp_egfx_reset_graphics:
[2024-05-18T11:32:30.484+0800] [INFO ] xrdp_egfx_reset_graphics: width 1920 height 1080 monitorcount 1
[2024-05-18T11:32:30.486+0800] [INFO ] xrdp_mm_egfx_caps_advertise: xrdp_egfx_send_reset_graphics error 0 monitorCount 0
[2024-05-18T11:32:30.488+0800] [INFO ] xrdp_mm_egfx_create_surfaces: map surface_id 0 left 0 top 0 width 1920 height 1080
[2024-05-18T11:32:30.490+0800] [INFO ] xrdp_encoder_create: starting gfx rfx pro codec session
[2024-05-18T11:32:30.492+0800] [INFO ] xrdp_mm_egfx_invalidate_wm_screen:
[2024-05-18T11:32:30.494+0800] [INFO ] xrdp_mm_egfx_caps_advertise: egfx created.
[2024-05-18T11:32:30.496+0800] [WARN ] Ignoring obsolete SCP port value '3350'
[2024-05-18T11:32:30.497+0800] [INFO ] xrdp_wm_log_msg: sesman connect ok
[2024-05-18T11:32:30.500+0800] [INFO ] xrdp_wm_log_msg: Performing login request for ubuntu
[2024-05-18T11:32:30.596+0800] [INFO ] xrdp_wm_log_msg: login was successful - creating session
[2024-05-18T11:32:31.849+0800] [INFO ] xrdp_wm_log_msg: session is available on display 10 for user ubuntu
[2024-05-18T11:32:31.851+0800] [INFO ] xrdp_wm_log_msg: Connecting to session
[2024-05-18T11:32:31.856+0800] [INFO ] loaded module 'libxup.so' ok, interface size 10416, version 4
[2024-05-18T11:32:31.859+0800] [INFO ] lib_mod_connect: connecting via UNIX socket
[2024-05-18T11:32:31.862+0800] [INFO ] lib_mod_log_peer: xrdp_pid=1314 connected to Xorg_pid=1338 Xorg_uid=1001 Xorg_gid=1001 client=xxx.xxx.xxx.xxx:34050
[2024-05-18T11:32:31.864+0800] [INFO ] xrdp_wm_log_msg: Connecting to chansrv
[2024-05-18T11:32:41.867+0800] [ERROR] xrdp_mm_chansrv_connect: error in trans_connect chan
[2024-05-18T11:32:41.869+0800] [ERROR] Xorg server closed connection
[2024-05-18T11:32:41.871+0800] [ERROR] SSL_shutdown: Failure in SSL library (protocol error?)
[2024-05-18T11:32:41.873+0800] [ERROR] SSL: error:0A000123:SSL routines::application data after close notify

xrdp-sesman.log

[2024-05-18T11:32:19.484+0800] [INFO ] starting xrdp-sesman with pid 1311
[2024-05-18T11:32:19.487+0800] [INFO ] Sesman now listening on /var/run/xrdp/sesman.socket
[2024-05-18T11:32:30.498+0800] [INFO ] Socket 13: connection accepted from AF_UNIX
[2024-05-18T11:32:30.502+0800] [INFO ] Received system login request from xrdp for user: ubuntu IP: xxx.xxx.xxx.xxx
[2024-05-18T11:32:30.506+0800] [INFO ] starting xrdp-sesexec with pid 1319
[2024-05-18T11:32:30.590+0800] [INFO ] TerminalServerUsers group tsusers doesn't exist. Access granted for ubuntu
[2024-05-18T11:32:30.593+0800] [INFO ] Access permitted for user: ubuntu
[2024-05-18T11:32:30.595+0800] [INFO ] Received sys login status for ubuntu : logged in
[2024-05-18T11:32:30.597+0800] [INFO ] Received request from xrdp to create a session for user ubuntu
[2024-05-18T11:32:30.834+0800] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log 
[2024-05-18T11:32:31.839+0800] [INFO ] X server :10 is working
[2024-05-18T11:32:31.842+0800] [INFO ] Starting window manager for display :10
[2024-05-18T11:32:31.844+0800] [INFO ] Starting the xrdp channel server for display :10
[2024-05-18T11:32:31.847+0800] [INFO ] Session in progress on display :10. Waiting until the window manager (pid 1351) exits to end the session
[2024-05-18T11:32:31.845+0800] [INFO ] Using the default window manager on display 10: /etc/xrdp/startwm.sh
[2024-05-18T11:32:32.658+0800] [WARN ] Window manager (pid 1351, display 10) exited with signal SIGTERM. This could indicate a window manager config problem
[2024-05-18T11:32:32.665+0800] [WARN ] Window manager (pid 1351, display 10) exited quickly (1 secs). This could indicate a window manager config problem
[2024-05-18T11:32:32.667+0800] [INFO ] Terminating X server (pid 1338) on display :10
[2024-05-18T11:32:32.668+0800] [INFO ] Terminating the xrdp channel server (pid 1352) on display :10
[2024-05-18T11:32:32.675+0800] [INFO ] xrdp channel server pid 1352 on display :10 finished
[2024-05-18T11:32:32.680+0800] [INFO ] X server pid 1338 on display :10 finished
[2024-05-18T11:32:32.689+0800] [INFO ] Session on display 10 has finished.

.xorgxrdp.10.log

[   305.409] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   305.409] Current Operating System: Linux instance-20240417-1440 6.5.0-1023-oracle #23~22.04.1-Ubuntu SMP Thu May  2 15:18:29 UTC 2024 aarch64
[   305.409] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.5.0-1023-oracle root=UUID=e14037c5-4f3a-4484-b0c4-c6e327691f3e ro console=tty1 console=ttyAMA0 nvme.shutdown_timeout=10 libiscsi.debug_libiscsi_eh=1 crash_kexec_post_notifiers
[   305.409] xorg-server 2:21.1.4-2ubuntu1.7~22.04.10 (For technical support please see http://www.ubuntu.com/support) 
[   305.410] Current version of pixman: 0.40.0
[   305.410]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   305.410] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   305.410] (++) Log file: ".xorgxrdp.10.log", Time: Sat May 18 11:32:30 2024
[   305.410] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[   305.411] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   305.411] (**) Option "defaultserverlayout" "X11 Server"
[   305.411] (**) ServerLayout "X11 Server"
[   305.411] (**) |-->Screen "Screen (xrdpdev)" (0)
[   305.411] (**) |   |-->Monitor "Monitor"
[   305.411] (**) |   |-->Device "Video Card (xrdpdev)"
[   305.411] (**) |-->Input Device "xrdpMouse"
[   305.411] (**) |-->Input Device "xrdpKeyboard"
[   305.411] (**) Option "DontVTSwitch" "on"
[   305.411] (**) Option "AutoAddDevices" "off"
[   305.411] (**) Option "AutoAddGPU" "off"
[   305.411] (**) Not automatically adding devices
[   305.411] (==) Automatically enabling devices
[   305.411] (**) Not automatically adding GPU devices
[   305.411] (==) Automatically binding GPU devices
[   305.411] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   305.414] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   305.414]    Entry deleted from font path.
[   305.414] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   305.414]    Entry deleted from font path.
[   305.414] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   305.414]    Entry deleted from font path.
[   305.432] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   305.432]    Entry deleted from font path.
[   305.432] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   305.432]    Entry deleted from font path.
[   305.432] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[   305.432] (==) ModulePath set to "/usr/lib/xorg/modules"
[   305.432] (II) Loader magic: 0xb62549071010
[   305.432] (II) Module ABI versions:
[   305.432]    X.Org ANSI C Emulation: 0.4
[   305.432]    X.Org Video Driver: 25.2
[   305.432]    X.Org XInput driver : 24.4
[   305.432]    X.Org Server Extension : 10.0
[   305.444] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[   305.444] (II) xfree86: Adding drm device (/dev/dri/card0)
[   305.444] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/drm/card0
[   305.445] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[   305.448] (--) PCI:*(0@0:1:0) 1af4:1050:108e:1100 rev 1, Mem @ 0x13019000/4096, 0x8030000000/16384
[   305.448] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   305.448] (II) LoadModule: "dbe"
[   305.449] (II) Module "dbe" already built-in
[   305.449] (II) LoadModule: "ddc"
[   305.449] (II) Module "ddc" already built-in
[   305.449] (II) LoadModule: "extmod"
[   305.449] (II) Module "extmod" already built-in
[   305.449] (II) LoadModule: "glx"
[   305.452] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   305.471] (II) Module glx: vendor="X.Org Foundation"
[   305.471]    compiled for 1.21.1.4, module version = 1.0.0
[   305.471]    ABI class: X.Org Server Extension, version 10.0
[   305.471] (II) LoadModule: "int10"
[   305.471] (II) Loading /usr/lib/xorg/modules/libint10.so
[   305.474] (II) Module int10: vendor="X.Org Foundation"
[   305.474]    compiled for 1.21.1.4, module version = 1.0.0
[   305.474]    ABI class: X.Org Video Driver, version 25.2
[   305.474] (II) LoadModule: "record"
[   305.474] (II) Module "record" already built-in
[   305.474] (II) LoadModule: "vbe"
[   305.474] (II) Loading /usr/lib/xorg/modules/libint10.so
[   305.474] (II) Module int10: vendor="X.Org Foundation"
[   305.474]    compiled for 1.21.1.4, module version = 1.0.0
[   305.474]    ABI class: X.Org Video Driver, version 25.2
[   305.474] (II) LoadModule: "xorgxrdp"
[   305.474] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[   305.479] (II) Module XORGXRDP: vendor="X.Org Foundation"
[   305.479]    compiled for 1.21.1.4, module version = 0.10.80
[   305.479]    ABI class: X.Org Video Driver, version 25.2
[   305.479] xorgxrdpSetup:
[   305.480] (II) LoadModule: "fb"
[   305.480] (II) Module "fb" already built-in
[   305.480] (II) LoadModule: "xrdpdev"
[   305.480] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[   305.482] (II) Module XRDPDEV: vendor="X.Org Foundation"
[   305.482]    compiled for 1.21.1.4, module version = 0.10.80
[   305.482]    ABI class: X.Org Video Driver, version 25.2
[   305.482] xrdpdevSetup:
[   305.482] (II) LoadModule: "xrdpmouse"
[   305.482] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[   305.483] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[   305.483]    compiled for 1.21.1.4, module version = 0.10.80
[   305.483]    Module class: X.Org XInput Driver
[   305.483]    ABI class: X.Org XInput driver, version 24.4
[   305.483] rdpmousePlug:
[   305.483] (II) LoadModule: "xrdpkeyb"
[   305.483] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[   305.484] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[   305.484]    compiled for 1.21.1.4, module version = 0.10.80
[   305.484]    Module class: X.Org XInput Driver
[   305.484]    ABI class: X.Org XInput driver, version 24.4
[   305.485] rdpkeybPlug:
[   305.485] rdpIdentify:
[   305.485] (II) XRDPDEV: driver for xrdp: XRDPDEV
[   305.485] rdpDriverFunc: op 10
[   305.485] (WW) Falling back to old probe method for XRDPDEV
[   305.485] rdpProbe:
[   305.485] (II) Loading sub module "fb"
[   305.485] (II) LoadModule: "fb"
[   305.485] (II) Module "fb" already built-in
[   305.485] (II) XRDPDEV(0): using default device
[   305.485] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   305.485] rdpPreInit:
[   305.485] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[   305.485] (==) XRDPDEV(0): RGB weight 888
[   305.485] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[   305.485] (==) XRDPDEV(0): Default visual is TrueColor
[   305.485] (==) XRDPDEV(0): DPI set to (96, 96)
[   305.485] (II) XRDPDEV(0):   mode "640x480" ok
[   305.485] (II) XRDPDEV(0):   mode "800x600" ok
[   305.485] (II) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[   305.485] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[   305.485] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   305.485] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[   305.485] rdpScreenInit: pfbMemory bytes 1920000
[   305.486] rdpScreenInit: pfbMemory 0xe5be0e68b010
[   305.487] rdpSimdInit: assigning yuv functions
[   305.487] (==) XRDPDEV(0): Backing store enabled
[   305.487] rdpClientConInit: disconnect idle session after [0] sec
[   305.487] rdpClientConInit: kill disconnected [0] timeout [0] sec
[   305.487] rdpXvInit: depth 24
[   305.488] rdpScreenInit: out
[   305.488] (II) Initializing extension Generic Event Extension
[   305.488] (II) Initializing extension SHAPE
[   305.488] (II) Initializing extension MIT-SHM
[   305.488] (II) Initializing extension XInputExtension
[   305.489] (II) Initializing extension XTEST
[   305.489] (II) Initializing extension BIG-REQUESTS
[   305.489] (II) Initializing extension SYNC
[   305.489] (II) Initializing extension XKEYBOARD
[   305.490] (II) Initializing extension XC-MISC
[   305.490] (II) Initializing extension SECURITY
[   305.490] (II) Initializing extension XFIXES
[   305.490] (II) Initializing extension RENDER
[   305.491] (II) Initializing extension RANDR
[   305.491] (II) Initializing extension COMPOSITE
[   305.491] (II) Initializing extension DAMAGE
[   305.491] (II) Initializing extension MIT-SCREEN-SAVER
[   305.492] (II) Initializing extension DOUBLE-BUFFER
[   305.492] (II) Initializing extension RECORD
[   305.492] (II) Initializing extension DPMS
[   305.492] (II) Initializing extension Present
[   305.492] (II) Initializing extension DRI3
[   305.492] (II) Initializing extension X-Resource
[   305.492] (II) Initializing extension XVideo
[   305.492] (II) Initializing extension XVideo-MotionCompensation
[   305.492] (II) Initializing extension SELinux
[   305.492] (II) SELinux: Disabled on system
[   305.492] (II) Initializing extension GLX
[   305.500] (II) AIGLX: Screen 0 is not DRI2 capable
[   306.064] (II) IGLX: Loaded and initialized swrast
[   306.064] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   306.064] (II) Initializing extension XFree86-VidModeExtension
[   306.064] (II) Initializing extension XFree86-DGA
[   306.064] (II) Initializing extension XFree86-DRI
[   306.064] (II) Initializing extension DRI2
[   306.064] rdpCreateScreenResources:
[   306.116] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[   306.116] (**) Option "CorePointer"
[   306.116] (**) xrdpMouse: always reports core events
[   306.116] rdpmousePreInit: drv 0xb6255ed97210 info 0xb6255f088870, flags 0x0
[   306.116] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[   306.116] rdpmouseControl: what 0
[   306.116] rdpmouseDeviceInit:
[   306.117] rdpmouseCtrl:
[   306.117] rdpRegisterInputCallback: type 1 proc 0xe5be0e881004
[   306.117] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[   306.117] (**) xrdpMouse: (accel) acceleration profile 0
[   306.117] (**) xrdpMouse: (accel) acceleration factor: 2.000
[   306.117] (**) xrdpMouse: (accel) acceleration threshold: 4
[   306.117] rdpmouseControl: what 1
[   306.117] rdpmouseDeviceOn:
[   306.117] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[   306.117] (**) Option "CoreKeyboard"
[   306.117] (**) xrdpKeyboard: always reports core events
[   306.117] rdpkeybPreInit: drv 0xb6255ed96ee0 info 0xb6255f08c460, flags 0x0
[   306.117] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[   306.117] rdpkeybControl: what 0
[   306.117] rdpkeybDeviceInit:
[   306.139] rdpkeybChangeKeyboardControl:
[   306.139] rdpkeybChangeKeyboardControl: autoRepeat on
[   306.139] rdpRegisterInputCallback: type 0 proc 0xe5be0e861730
[   306.139] rdpkeybControl: what 1
[   306.139] rdpkeybDeviceOn:
[   306.139] rdpkeybChangeKeyboardControl:
[   306.139] rdpkeybChangeKeyboardControl: autoRepeat on
[   306.146] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[   306.146] (II) AutoAddDevices is off - not adding device.
[   306.147] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/event1)
[   306.147] (II) AutoAddDevices is off - not adding device.
[   306.147] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/mouse0)
[   306.147] (II) AutoAddDevices is off - not adding device.
[   306.147] (II) config/udev: Adding input device QEMU QEMU USB Keyboard (/dev/input/event2)
[   306.147] (II) AutoAddDevices is off - not adding device.
[   306.148] (II) config/udev: Adding input device QEMU QEMU USB Mouse (/dev/input/event3)
[   306.148] (II) AutoAddDevices is off - not adding device.
[   306.148] (II) config/udev: Adding input device QEMU QEMU USB Mouse (/dev/input/mouse1)
[   306.148] (II) AutoAddDevices is off - not adding device.
[   306.153] rdpDeferredRandR:
[   306.153] rdpResizeSession: width 1024 height 768
[   306.153]   calling RRScreenSizeSet
[   306.153] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[   306.153] rdpRRGetInfo:
[   306.153]   screen resized to 1024x768
[   306.154]   RRScreenSizeSet ok 1
[   306.154] rdpResizeSession: width 1920 height 1080
[   306.154]   calling RRScreenSizeSet
[   306.154] rdpRRScreenSetSize: width 1920 height 1080 mmWidth 508 mmHeight 286
[   306.154] rdpRRGetInfo:
[   306.154]   screen resized to 1920x1080
[   306.157]   RRScreenSizeSet ok 1
[   306.157] rdpRRSetRdpOutputs: numCrtcs 0 numOutputs 0 monitorCount 0
[   306.157] rdpRRSetRdpOutputs: update output 0 left 0 top 0 width 1920 height 1080
[   306.157] rdpRRConnectOutput:
[   306.239] rdpInDeferredRepeatCallback:
[   306.239] rdpkeybChangeKeyboardControl:
[   306.239] rdpkeybChangeKeyboardControl: autoRepeat off
[   306.239] rdpInDeferredRepeatCallback:
[   306.239] rdpkeybChangeKeyboardControl:
[   306.239] rdpkeybChangeKeyboardControl: autoRepeat off
[   306.395] rdpRRGetInfo:
[   306.420] rdpClientConGotConnection:
[   306.420] rdpClientConGotConnection: g_sck_accept ok new_sck 7
[   306.420] rdpClientConGetConnection: idle_disconnect_timeout set to non-positive value, idle timer turned off
[   306.420] rdpAddClientConToDev: adding first clientCon 0xb6255f0b7960
[   306.422] rdpClientConProcessMsgVersion: version 0 0 0 1
[   306.422] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1920 cy 1080
[   306.422] KbdSync: toggling num lock
[   306.422] rdpkeybChangeKeyboardControl:
[   306.422] rdpkeybChangeKeyboardControl: autoRepeat off
[   307.224] rdpmouseControl: what 2
[   307.225] rdpmouseDeviceOff:
[   307.225] rdpkeybControl: what 2
[   307.225] rdpkeybDeviceOff:
[   307.225] xorgxrdpDamageDestroy:
[   307.226] rdpkeybControl: what 3
[   307.226] rdpkeybUnInit: drv 0xb6255ed96ee0 info 0xb6255f08c460, flags 0x0
[   307.226] rdpUnregisterInputCallback: proc 0xe5be0e861730
[   307.226] rdpmouseControl: what 3
[   307.226] rdpmouseUnInit: drv 0xb6255ed97210 info 0xb6255f088870, flags 0x0
[   307.226] rdpUnregisterInputCallback: proc 0xe5be0e881004
[   307.227] rdpCloseScreen:
[   307.227] xorgxrdpDownDown:
[   307.227] xorgxrdpDownDown: 1
[   307.228] rdpClientConDeinit:
[   307.228] rdpClientConDeinit: disconnecting clientCon
[   307.228] rdpClientConDisconnect:
[   307.228] rdpRemoveClientConFromDev: removing clientCon 0xb6255f0b7960
[   307.228] rdpClientConDeinit: deleting file /var/run/xrdp/1001/xrdp_display_10
[   307.228] rdpClientConDeinit: deleting file /var/run/xrdp/1001/xrdp_disconnect_display_10
[   307.231] (II) Server terminated successfully (0). Closing log file.
@GilHogan GilHogan added the bug label May 18, 2024
@GilHogan
Copy link
Author

After many attempts, I reproduced the above two exceptions.

  1. When modifying the max_bpp value in xrdp.ini, Windows RDP prompts "Because of a protocol error" exception.
  2. When adding unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIME_DIR to startwm.sh, a crash exception occurs.

@matt335672
Copy link
Member

Let's forget about the audio to start with - that's probably nothing to do with it. We can get it working later.

First things first - the console must NOT be logged in as the same user you're trying to use to connect over xrdp - see the FAQ. This could be your problem, as it seems to have appeared from nowhere.

Assuming that's not it...

The sesman log shows that the session is terminating pretty quickly.

Can you try the following:-

  1. Make a note of the time in hours, minutes and seconds (HH:MM:SS) with the date command.
  2. Try to connect.
  3. sudo journalctl -S HH:MM:SS to get a complete system log since the time HH:MM:SS from step 1. Post that.
  4. Check the date and time on ~/.xsession-errors. If it's old there's a problem with the session startup script which we need to debug. If it's new please post that too.

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

No branches or pull requests

2 participants