[GH-ISSUE #637] Memory leak, 100% CPU usage on Linux when disconnecting client #506

Closed
opened 2026-05-05 06:33:20 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @ghost on GitHub (Apr 24, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/637

Operating Systems

Server: Linux Manjaro

Client: Windows 10 Version 1809 (OS Build 17763, 1098)

Barrier Version

2.3.2-RELEASE-00000000

Steps to reproduce bug

  1. Connect server (linux) and client (windows)
  2. Shut down the client (windows)
  3. Bug occurs. CPU usage on the server (linux) increases to about 20% and memory usage increases until 100% is used up. Then the system becomes difficult to use

Other info

  • The error happens consistently
  • process name that uses memory is "barriers"
  • CPU usage increases when 100% memory is used.
  • The error happens only when the client is actually shut down - It does not happen when it is just disconnected
  • Workaround is: Restart barrier server application. Quit barrier application on server, this will bring the server back to normal
  • the bug can be repeated without shutting down the server (linux) just by restarting barrier and reconnecting the client
  • this is possibly related to bug #629
  • Does this bug prevent you from using Barrier entirely? No
Originally created by @ghost on GitHub (Apr 24, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/637 ### Operating Systems ### Server: Linux Manjaro Client: Windows 10 Version 1809 (OS Build 17763, 1098) ### Barrier Version ### 2.3.2-RELEASE-00000000 ### Steps to reproduce bug ### 1. Connect server (linux) and client (windows) 2. Shut down the client (windows) 3. Bug occurs. CPU usage on the server (linux) increases to about 20% and memory usage increases until 100% is used up. Then the system becomes difficult to use ### Other info ### * The error happens consistently * process name that uses memory is "barriers" * CPU usage increases when 100% memory is used. * The error happens only when the client is actually shut down - It does not happen when it is just disconnected * Workaround is: Restart barrier server application. Quit barrier application on server, this will bring the server back to normal * the bug can be repeated without shutting down the server (linux) just by restarting barrier and reconnecting the client * this is possibly related to bug #629 * Does this bug prevent you from using Barrier entirely? No
Author
Owner

@modelmat commented on GitHub (Apr 25, 2020):

Building from git fixed this for me; the latest release is from last year and I believe https://github.com/debauchee/barrier/pull/557 in February fixed this issue.

<!-- gh-comment-id:619355203 --> @modelmat commented on GitHub (Apr 25, 2020): Building from git fixed this for me; the latest release is from last year and I believe https://github.com/debauchee/barrier/pull/557 in February fixed this issue.
Author
Owner

@nikolas-digitalBabylon commented on GitHub (May 1, 2020):

I can confirm the bug with the snap package on Ubuntu 18.04LTS host and Windows 10 client.

<!-- gh-comment-id:622343335 --> @nikolas-digitalBabylon commented on GitHub (May 1, 2020): I can confirm the bug with the snap package on Ubuntu 18.04LTS host and Windows 10 client.
Author
Owner

@AfricaSaga commented on GitHub (Jun 18, 2020):

Same here, CentOS 8 server / Win10Pro client
Memory usage went to 6+Gigs, crippled computer
Had to restart barrier server

<!-- gh-comment-id:645959639 --> @AfricaSaga commented on GitHub (Jun 18, 2020): Same here, CentOS 8 server / Win10Pro client Memory usage went to 6+Gigs, crippled computer Had to restart barrier server
Author
Owner

@brgavino commented on GitHub (Jul 22, 2020):

After experiencing this issue consistently with a Win10 client and a Clear Linux Host, 2.3.3 client/server fixes this issue through multiple disconnects client/server restarts etc.

<!-- gh-comment-id:662527918 --> @brgavino commented on GitHub (Jul 22, 2020): After experiencing this issue consistently with a Win10 client and a Clear Linux Host, 2.3.3 client/server fixes this issue through multiple disconnects client/server restarts etc.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 23, 2020):

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:697070265 --> @github-actions[bot] commented on GitHub (Sep 23, 2020): This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

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

2.3.3 fixed this issue.

Reopening and closing just that it does not look like a bot closed the issue for no reason.

<!-- gh-comment-id:757528521 --> @p12tic commented on GitHub (Jan 10, 2021): 2.3.3 fixed this issue. Reopening and closing just that it does not look like a bot closed the issue for no reason.
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#506
No description provided.