1
0
Fork 0
mirror of https://github.com/pikvm/pikvm.git synced 2026-03-02 18:16:56 -05:00

Memory leak leading to performance slowdown/reboot when using Jump Desktop app from an iPhone #683

Open
opened 2026-02-20 14:03:48 -05:00 by deekerman · 0 comments
Owner

Originally created by @plia7 on GitHub (Jul 3, 2023).

Originally assigned to: @mdevaev on GitHub.

Describe the bug
Memory leak leading to performance slowdown/reboot when using Jump Desktop app from an iPhone

To Reproduce

  1. Open Jump Desktop app on your iPhone
  2. Connect to your pikvm vnc server
  3. Leave the app open, multi task, switch to other apps or let the phone lock the phone/screen to turn off
  4. Occasionally you could come back to the app and do some actions clicking/typing/etc - Make sure to go back to the app sometimes so it doesn't time out and disconnect (or the growing will stop).
  5. Run periodically htop command from pikvm ssh terminal, sort by mem % and note it.

Expected behavior
kvmd-vnc should not reach 15% mem or more
the total memory should not grow beyond the baseline of ~200-450M/1.77G

Actual behavior
the total memory keeps growing to 1.73G/1.77G and beyond leading to performance slowdown and eventual reboot
kvmd-vnc is reaching 84.1% mem and beyond

Screenshots + full logs
If applicable, add screenshots to help explain your problem.
1
2
3

See full htop and log by time stamp events, starts at 4:52pm, at 5:15pm it's halting and then at 5:25pm the pikvm is back from the halting state + journalctl command log below it:

htop and journalctl - censored.txt

Desktop (please complete the following information):

  • OS: [e.g. iOS]
    iOS
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
  • VNC client (if used)
    Jump Desktop v9.7.8 for iOS

PiKVM info:

  • Raspberry Pi board version [e.g. RPi 4]
  • PiKVM platform [e.g. v2-hdmi]
    v3 preassembled
  • Video capture type [e.g. CSI bridge]
  • HDMI
  • KVMD version: pacman -Q | grep kvmd
    3.231-1
  • uStreamer version: pacman -Q | grep ustreamer
    -5.41-1
  • Linux kernel: uname -a
    Linux pikvm 5.15.68-3-rpi-ARCH #1 SMP Mon Oct 31 20:56:54 MSK 2022 armv7l GNU/Linux

Additional context
I'm noticing that the trick to reproduce is to keep the app open in the background or let the app connected and let the screen turn off, if you go back to the app, it seem to stop growing.

Originally created by @plia7 on GitHub (Jul 3, 2023). Originally assigned to: @mdevaev on GitHub. **Describe the bug** Memory leak leading to performance slowdown/reboot when using Jump Desktop app from an iPhone **To Reproduce** 1. Open Jump Desktop app on your iPhone 2. Connect to your pikvm vnc server 3. Leave the app open, multi task, switch to other apps or let the phone lock the phone/screen to turn off 4. Occasionally you could come back to the app and do some actions clicking/typing/etc - Make sure to go back to the app sometimes so it doesn't time out and disconnect (or the growing will stop). 5. Run periodically htop command from pikvm ssh terminal, sort by mem % and note it. **Expected behavior** kvmd-vnc should not reach 15% mem or more the total memory should not grow beyond the baseline of ~200-450M/1.77G **Actual behavior** the total memory keeps growing to 1.73G/1.77G and beyond leading to performance slowdown and eventual reboot kvmd-vnc is reaching 84.1% mem and beyond **Screenshots + full logs** If applicable, add screenshots to help explain your problem. <img width="983" alt="1" src="https://github.com/pikvm/pikvm/assets/134864072/11d144eb-9963-4674-beb1-9166ef2736b3"> <img width="1015" alt="2" src="https://github.com/pikvm/pikvm/assets/134864072/32738281-bbee-47b9-b103-ec8f0983e16e"> <img width="1002" alt="3" src="https://github.com/pikvm/pikvm/assets/134864072/c09604ea-4dde-406a-9ceb-f0218342386b"> See full htop and log by time stamp events, starts at 4:52pm, at 5:15pm it's halting and then at 5:25pm the pikvm is back from the halting state + journalctl command log below it: [htop and journalctl - censored.txt](https://github.com/pikvm/pikvm/files/11943238/htop.and.journalctl.-.censored.txt) **Desktop (please complete the following information):** - OS: [e.g. iOS] iOS - Browser [e.g. chrome, safari] - Version [e.g. 22] - VNC client (if used) Jump Desktop v9.7.8 for iOS **PiKVM info:** - Raspberry Pi board version [e.g. RPi 4] - PiKVM platform [e.g. v2-hdmi] v3 preassembled - Video capture type [e.g. CSI bridge] - HDMI - KVMD version: `pacman -Q | grep kvmd` 3.231-1 - uStreamer version: `pacman -Q | grep ustreamer` -5.41-1 - Linux kernel: `uname -a` Linux pikvm 5.15.68-3-rpi-ARCH #1 SMP Mon Oct 31 20:56:54 MSK 2022 armv7l GNU/Linux **Additional context** I'm noticing that the trick to reproduce is to keep the app open in the background or let the app connected and let the screen turn off, if you go back to the app, it seem to stop growing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pikvm-pikvm#683
No description provided.