Summary: | RDP sessions that are not closed client side but stop receiving data cause OOM condition | ||
---|---|---|---|
Product: | [Plasma] KRdp | Reporter: | Cody Wilson <cody> |
Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
Status: | REPORTED --- | ||
Severity: | major | CC: | ahiemstra, jackyzy823, nate |
Priority: | NOR | Keywords: | efficiency-and-performance |
Version First Reported In: | 6.4.3 | ||
Target Milestone: | --- | ||
Platform: | CachyOS | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | pmap of krdpserver process while experiencing the high memory event |
Description
Cody Wilson
2025-08-06 16:54:47 UTC
Created attachment 184002 [details]
pmap of krdpserver process while experiencing the high memory event
Output of other memory diagnostic commands against krdpserver during a high memory event.
Repro steps are identical to what was reported in the original bug submission.
❯ ps aux | grep krdpserver | grep -v grep
belthes+ 51830 0.0 2.7 57349244 1754824 ? SLsl Aug07 6:17 /usr/bin/krdpserver
❯ grep -i vmrss /proc/51830/status
VmRSS: 1525944 kB
❯ grep -e '^Rss' /proc/51830/smaps | awk '{sum += $2} END {print sum, "kB"}'
1355268 kB
total used free shared buff/cache available
Mem: 61885 56668 543 154 5520 5216
Swap: 61884 56238 5646
After stopping the session via the tray icon:
total used free shared buff/cache available
Mem: 61885 52626 4579 179 5552 9259
Swap: 61884 53285 8599
After restarting krdpserver:
❯ ps aux | grep krdpserver | grep -v grep
belthes+ 51830 0.0 0.4 57180280 274420 ? SLsl Aug07 6:22 /usr/bin/krdpserver
❯ grep -i vmrss /proc/51830/status
VmRSS: 271936 kB
❯ grep -e '^Rss' /proc/51830/smaps | awk '{sum += $2} END {print sum, "kB"}'
271936 kB
Log output:
❯ journalctl --user -f -u app-org.kde.krdpserver
Aug 12 17:43:50 fate krdpserver[51830]: QObject::killTimer: Timers cannot be stopped from another thread
Aug 12 17:43:50 fate krdpserver[51830]: QObject::startTimer: Timers cannot be started from another thread
Aug 12 18:29:32 fate krdpserver[51830]: org.kde.krdp: Portal session was closed!
Aug 12 18:29:33 fate krdpserver[51830]: [18:29:33:610] [51830:000497f9] [ERROR][com.freerdp.core.transport] - [transport_default_write]: BIO_should_retry returned an error: error:80000020:system library::Broken pipe
Aug 12 18:29:33 fate krdpserver[51830]: [18:29:33:610] [51830:000497f9] [ERROR][com.freerdp.core.peer] - [transport_default_write]: ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
Aug 12 18:29:33 fate krdpserver[51830]: org.kde.krdp: Unable to check Virtual Channel Manager file descriptor, closing connection
Aug 12 18:29:33 fate krdpserver[51830]: org.kde.krdp: Closing session
Aug 12 18:29:33 fate krdpserver[51830]: [18:29:33:634] [51830:0000ca76] [ERROR][com.freerdp.core.transport] - [transport_default_write]: BIO_should_retry returned an error: error:0A00010F:SSL routines::bad length
Aug 12 18:29:33 fate krdpserver[51830]: org.kde.krdp: Closing Freedesktop Portal Session
Aug 12 18:29:33 fate krdpserver[51830]: QObject::~QObject: Timers cannot be stopped from another thread
After restarting krdpserver:
❯ free -m
total used free shared buff/cache available
Mem: 61885 12837 44389 179 5531 49047
Swap: 61884 12696 49188
|