[GH-ISSUE #715] Barrier server uses 100% CPU and all available memory #563

Open
opened 2026-05-05 06:41:15 -06:00 by gitea-mirror · 13 comments
Owner

Originally created by @Souravgoswami on GitHub (May 30, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/715

Operating Systems

Both computers are running Arch Linux x86_64.

Server
Arch Linux x86_64

$ cat /proc/version
Linux version 5.6.14-arch1-1 (linux@archlinux) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Wed, 20 May 2020 20:43:19 +0000

Client
Arch Linux x86_64

$ cat /proc/version
Linux version 5.6.14-arch1-1 (linux@archlinux) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Wed, 20 May 2020 20:43:19 +0000

Issue

When switching to the client, barrier started using all the available memory (RAM + ZRAM) on the server and 100% of a CPU core. Which caused frozen system. This happens after each reboot.

Barrier Version

2.3.2

Steps to reproduce bug

  1. Open barrier
  2. Start moving mouse to the other computer.

Other info

  • Occurred on the first installation.
  • Does this bug prevent you from using Barrier entirely? Yes.

Screenshots

Gnome System Monitor
Screenshot from 2020-05-30 23-09-05

Htop
Screenshot from 2020-05-30 23-09-22

Originally created by @Souravgoswami on GitHub (May 30, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/715 ### Operating Systems ### Both computers are running Arch Linux x86_64. **Server** Arch Linux x86_64 ``` $ cat /proc/version Linux version 5.6.14-arch1-1 (linux@archlinux) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Wed, 20 May 2020 20:43:19 +0000 ``` **Client** Arch Linux x86_64 ``` $ cat /proc/version Linux version 5.6.14-arch1-1 (linux@archlinux) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Wed, 20 May 2020 20:43:19 +0000 ``` ### Issue ### When switching to the client, barrier started using all the available memory (RAM + ZRAM) on the server and 100% of a CPU core. Which caused frozen system. This happens after each reboot. ### Barrier Version ### 2.3.2 ### Steps to reproduce bug ### 1. Open barrier 2. Start moving mouse to the other computer. ### Other info ### * Occurred on the first installation. * Does this bug prevent you from using Barrier entirely? Yes. ### Screenshots ### **Gnome System Monitor** ![Screenshot from 2020-05-30 23-09-05](https://user-images.githubusercontent.com/37468605/83335466-a4312880-a2ca-11ea-887e-cc1ef1fe1f0d.png) **Htop** ![Screenshot from 2020-05-30 23-09-22](https://user-images.githubusercontent.com/37468605/83335474-b27f4480-a2ca-11ea-801b-a3be970ccc56.png)
gitea-mirror added the
bug
linux
critical
from release
labels 2026-05-05 06:41:15 -06:00
Author
Owner

@shymega commented on GitHub (May 30, 2020):

Yeah, we have a fair few bug reports with regards to Barrier's memory leaks. I'll mark this is critical and as a bug for the moment, and we'll try to make a fix soon.

<!-- gh-comment-id:636364787 --> @shymega commented on GitHub (May 30, 2020): Yeah, we have a fair few bug reports with regards to Barrier's memory leaks. I'll mark this is critical and as a bug for the moment, and we'll try to make a fix soon.
Author
Owner

@Studio5086 commented on GitHub (Jun 30, 2020):

Same here on two Windows 10 Pro 1909 machines. Had do uninstall it to make my Laptop useable again.

<!-- gh-comment-id:651904247 --> @Studio5086 commented on GitHub (Jun 30, 2020): Same here on two Windows 10 Pro 1909 machines. Had do uninstall it to make my Laptop useable again.
Author
Owner

@raid1 commented on GitHub (Aug 6, 2020):

Same here with barriers running on Ubuntu 20.04.1 LTS
I just killed my whole X session and lost lots of open/unsaved work because the memory consumption of barrier rendered my machine unusable. Please try to fix fast! Let me know if you need more details which can help you.

<!-- gh-comment-id:669896484 --> @raid1 commented on GitHub (Aug 6, 2020): Same here with barriers running on Ubuntu 20.04.1 LTS I just killed my whole X session and lost lots of open/unsaved work because the memory consumption of barrier rendered my machine unusable. Please try to fix fast! Let me know if you need more details which can help you.
Author
Owner

@p12tic commented on GitHub (Aug 6, 2020):

@raid1: Does Barrier 2.3.3 fix this issue for you?

<!-- gh-comment-id:669904645 --> @p12tic commented on GitHub (Aug 6, 2020): @raid1: Does Barrier 2.3.3 fix this issue for you?
Author
Owner

@raid1 commented on GitHub (Aug 6, 2020):

Sorry, I forgot to mention that I've tried with 2.3.3 (latest)

<!-- gh-comment-id:669906500 --> @raid1 commented on GitHub (Aug 6, 2020): Sorry, I forgot to mention that I've tried with 2.3.3 (latest)
Author
Owner

@Souravgoswami commented on GitHub (Aug 11, 2020):

On Arch... So far the problem is gone...

<!-- gh-comment-id:671777887 --> @Souravgoswami commented on GitHub (Aug 11, 2020): On Arch... So far the problem is gone...
Author
Owner

@p12tic commented on GitHub (Jan 10, 2021):

This issue has been fixed in Barrier 2.3.3.

<!-- gh-comment-id:757548124 --> @p12tic commented on GitHub (Jan 10, 2021): This issue has been fixed in Barrier 2.3.3.
Author
Owner

@raid1 commented on GitHub (Jan 11, 2021):

No, as mentioned above, it's not fixed in 2.3.3
It killed my whole X session

<!-- gh-comment-id:757885999 --> @raid1 commented on GitHub (Jan 11, 2021): No, as mentioned above, it's not fixed in 2.3.3 It killed my whole X session
Author
Owner

@p12tic commented on GitHub (Jan 11, 2021):

Thanks for clarifying, I'm reopening the bug.

<!-- gh-comment-id:757904271 --> @p12tic commented on GitHub (Jan 11, 2021): Thanks for clarifying, I'm reopening the bug.
Author
Owner

@lilws commented on GitHub (Feb 26, 2021):

I'm on latest version and have the same problems. It took a lot of CPU and use a lot of RAM. Normally it uses like below 20MB, several days without restart computer, it takes like 800MB and that the point problems happen. Can't migrate to another screen, log warning of connect and disconnect clients.

<!-- gh-comment-id:786376865 --> @lilws commented on GitHub (Feb 26, 2021): I'm on latest version and have the same problems. It took a lot of CPU and use a lot of RAM. Normally it uses like below 20MB, several days without restart computer, it takes like 800MB and that the point problems happen. Can't migrate to another screen, log warning of connect and disconnect clients.
Author
Owner

@krpors commented on GitHub (Apr 13, 2021):

This has been killing my laptop for quite a while now. It doesn't happen all the time, mostly randomly, say 1 time a week. Today however, I was forced to do a hard reset twice. Any developers have any tips on how I could monitor a process (Linux 'guest'), and to determine where in the code this could happen?

<!-- gh-comment-id:818737930 --> @krpors commented on GitHub (Apr 13, 2021): This has been killing my laptop for quite a while now. It doesn't happen all the time, mostly randomly, say 1 time a week. Today however, I was forced to do a hard reset twice. Any developers have any tips on how I could monitor a process (Linux 'guest'), and to determine where in the code this could happen?
Author
Owner

@rdxmb commented on GitHub (Dec 13, 2023):

Same here with KDE neon 5.27 \n \l , which is based on ubuntu 22.04

When killing barrier and restarting again, the cpu is on about ~1.7% . I will watch that.

<!-- gh-comment-id:1853579745 --> @rdxmb commented on GitHub (Dec 13, 2023): Same here with `KDE neon 5.27 \n \l` , which is based on ubuntu 22.04 When killing barrier and restarting again, the cpu is on about ~1.7% . I will watch that.
Author
Owner

@rdxmb commented on GitHub (Dec 13, 2023):

is this repository deprecated? For there is a duplicated issue in the other project?

<!-- gh-comment-id:1853588538 --> @rdxmb commented on GitHub (Dec 13, 2023): is this repository deprecated? For there is a duplicated issue in the other project?
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: github-starred/barrier#563
No description provided.