[GH-ISSUE #1154] MacBook stuck on "barrier is starting" and can not connect to windows PC. #926

Open
opened 2026-05-05 07:17:20 -06:00 by gitea-mirror · 16 comments
Owner

Originally created by @chelan-athlanius on GitHub (May 2, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1154

Describe the bug
When I try to connect my Mac as a client to my Windows 10 PC, it gets stuck on "barrier is starting" and will not connect. It works perfectly fine the other way around when my mac is the server, but that isn't helpful.
Screen Shot 2021-05-02 at 2 21 23 PM

Expected behavior
Mac connects to PC.

Desktop (please complete the following information):

  • OS: Mac to Windows
  • Barrier version [e.g 2.3.3]
Originally created by @chelan-athlanius on GitHub (May 2, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1154 **Describe the bug** When I try to connect my Mac as a client to my Windows 10 PC, it gets stuck on "barrier is starting" and will not connect. It works perfectly fine the other way around when my mac is the server, but that isn't helpful. <img width="838" alt="Screen Shot 2021-05-02 at 2 21 23 PM" src="https://user-images.githubusercontent.com/83434049/116824826-dfc71900-ab51-11eb-9e0e-bc9f0c0dbf54.png"> **Expected behavior** Mac connects to PC. **Desktop (please complete the following information):** - OS: Mac to Windows - Barrier version [e.g 2.3.3]
Author
Owner

@mtuthill commented on GitHub (May 6, 2021):

I also get this issue

<!-- gh-comment-id:833752642 --> @mtuthill commented on GitHub (May 6, 2021): I also get this issue
Author
Owner

@hdwatts commented on GitHub (May 7, 2021):

This just started happening to me, I believe I had an image in my clipboard that was somehow screwing it up (logs below).

[2021-05-07T15:06:20] INFO: leaving screen
[2021-05-07T15:06:20] INFO: bitmap: 1046x-1096 32
[2021-05-07T15:06:20] INFO: convert image from: depth=32 comp=3
[2021-05-07T15:06:20] FATAL: An error occurred: string too long
[2021-05-07T15:06:21] ERROR: failed to launch, error: process immediately stopped
[2021-05-07T15:06:21] INFO: backing off, wait=4s, failures=2
[2021-05-07T15:06:25] INFO: starting new process as privileged user
[2021-05-07T15:06:25] ERROR: failed to get desktop path, no drop target available, error=2

I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully.

<!-- gh-comment-id:834708517 --> @hdwatts commented on GitHub (May 7, 2021): This just started happening to me, I believe I had an image in my clipboard that was somehow screwing it up (logs below). ``` [2021-05-07T15:06:20] INFO: leaving screen [2021-05-07T15:06:20] INFO: bitmap: 1046x-1096 32 [2021-05-07T15:06:20] INFO: convert image from: depth=32 comp=3 [2021-05-07T15:06:20] FATAL: An error occurred: string too long [2021-05-07T15:06:21] ERROR: failed to launch, error: process immediately stopped [2021-05-07T15:06:21] INFO: backing off, wait=4s, failures=2 [2021-05-07T15:06:25] INFO: starting new process as privileged user [2021-05-07T15:06:25] ERROR: failed to get desktop path, no drop target available, error=2 ``` I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully.
Author
Owner

@chelan-athlanius commented on GitHub (May 7, 2021):

Didn't work.

<!-- gh-comment-id:834746240 --> @chelan-athlanius commented on GitHub (May 7, 2021): Didn't work.
Author
Owner

@stipid commented on GitHub (May 23, 2021):

try to restart windows computer.

<!-- gh-comment-id:846505911 --> @stipid commented on GitHub (May 23, 2021): try to restart windows computer.
Author
Owner

@dianjiao03 commented on GitHub (Jun 22, 2021):

Same issue here, and none of the solutions seem to work.

<!-- gh-comment-id:865624497 --> @dianjiao03 commented on GitHub (Jun 22, 2021): Same issue here, and none of the solutions seem to work.
Author
Owner

@mhutchins commented on GitHub (Jul 12, 2021):

Same issue - however, restarting the windows PC (master) solved the issue for me.

<!-- gh-comment-id:878294300 --> @mhutchins commented on GitHub (Jul 12, 2021): Same issue - however, restarting the windows PC (master) solved the issue for me.
Author
Owner

@NuclearMonster commented on GitHub (Sep 1, 2021):

I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully.

I had this same issue, thanks for the workaround!

My console log was a little different, there was a hint:
[2021-08-31T18:37:59] FATAL: An error occurred: string too long

<!-- gh-comment-id:909878445 --> @NuclearMonster commented on GitHub (Sep 1, 2021): > I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully. I had this same issue, thanks for the workaround! My console log was a little different, there was a hint: `[2021-08-31T18:37:59] FATAL: An error occurred: string too long`
Author
Owner

@reikolydia commented on GitHub (Jan 22, 2022):

Have the same issue, clearing clipboard on server sure did help.

The connections were initially successful, but i cannot move the mouse over to another client from the server as it would simply attempt to restart the process from both client and server and give that "string too long" error. i did not restart any client/server after clearing the clipboard however.

<!-- gh-comment-id:1019295346 --> @reikolydia commented on GitHub (Jan 22, 2022): Have the same issue, clearing clipboard on server sure did help. The connections were initially successful, but i cannot move the mouse over to another client from the server as it would simply attempt to restart the process from both client and server and give that "string too long" error. i did not restart any client/server after clearing the clipboard however.
Author
Owner

@wesgurn commented on GitHub (Feb 22, 2022):

Can confirm the workaround of clearing the clipboard or copying some small text on the server side restores the client connection and fixes issue.

<!-- gh-comment-id:1047868234 --> @wesgurn commented on GitHub (Feb 22, 2022): Can confirm the workaround of clearing the clipboard or copying some small text on the server side restores the client connection and fixes issue.
Author
Owner

@juanmartin commented on GitHub (Apr 4, 2022):

In my case clearing Barrier on the server (Windows) logs helped 🤷
My client is mac.

<!-- gh-comment-id:1087892991 --> @juanmartin commented on GitHub (Apr 4, 2022): In my case clearing Barrier on the server (Windows) logs helped 🤷 My client is mac.
Author
Owner

@radieon commented on GitHub (Mar 29, 2023):

Copying some short text to my server's clipboard allowed me to connect to my clients after receiving this same error.

<!-- gh-comment-id:1488769002 --> @radieon commented on GitHub (Mar 29, 2023): Copying some short text to my server's clipboard allowed me to connect to my clients after receiving this same error.
Author
Owner

@zhangineer2 commented on GitHub (Apr 25, 2023):

copying short text to my server's clipboard solved the problem for me as well

<!-- gh-comment-id:1522198010 --> @zhangineer2 commented on GitHub (Apr 25, 2023): copying short text to my server's clipboard solved the problem for me as well
Author
Owner

@jandestiny commented on GitHub (Dec 11, 2023):

Same solution for me: Copying a short text to the clipboard got barrier out of the "string too long" error loop. Weird bug.

<!-- gh-comment-id:1850628341 --> @jandestiny commented on GitHub (Dec 11, 2023): Same solution for me: Copying a short text to the clipboard got barrier out of the "string too long" error loop. Weird bug.
Author
Owner

@pkxpp commented on GitHub (Feb 6, 2024):

This just started happening to me, I believe I had an image in my clipboard that was somehow screwing it up (logs below).

[2021-05-07T15:06:20] INFO: leaving screen
[2021-05-07T15:06:20] INFO: bitmap: 1046x-1096 32
[2021-05-07T15:06:20] INFO: convert image from: depth=32 comp=3
[2021-05-07T15:06:20] FATAL: An error occurred: string too long
[2021-05-07T15:06:21] ERROR: failed to launch, error: process immediately stopped
[2021-05-07T15:06:21] INFO: backing off, wait=4s, failures=2
[2021-05-07T15:06:25] INFO: starting new process as privileged user
[2021-05-07T15:06:25] ERROR: failed to get desktop path, no drop target available, error=2

I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully.

It works!Thanks so much.

<!-- gh-comment-id:1928878564 --> @pkxpp commented on GitHub (Feb 6, 2024): > This just started happening to me, I believe I had an image in my clipboard that was somehow screwing it up (logs below). > > ``` > [2021-05-07T15:06:20] INFO: leaving screen > [2021-05-07T15:06:20] INFO: bitmap: 1046x-1096 32 > [2021-05-07T15:06:20] INFO: convert image from: depth=32 comp=3 > [2021-05-07T15:06:20] FATAL: An error occurred: string too long > [2021-05-07T15:06:21] ERROR: failed to launch, error: process immediately stopped > [2021-05-07T15:06:21] INFO: backing off, wait=4s, failures=2 > [2021-05-07T15:06:25] INFO: starting new process as privileged user > [2021-05-07T15:06:25] ERROR: failed to get desktop path, no drop target available, error=2 > ``` > > I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully. It works!Thanks so much.
Author
Owner

@smenendez19 commented on GitHub (Apr 16, 2024):

This just started happening to me, I believe I had an image in my clipboard that was somehow screwing it up (logs below).

[2021-05-07T15:06:20] INFO: leaving screen
[2021-05-07T15:06:20] INFO: bitmap: 1046x-1096 32
[2021-05-07T15:06:20] INFO: convert image from: depth=32 comp=3
[2021-05-07T15:06:20] FATAL: An error occurred: string too long
[2021-05-07T15:06:21] ERROR: failed to launch, error: process immediately stopped
[2021-05-07T15:06:21] INFO: backing off, wait=4s, failures=2
[2021-05-07T15:06:25] INFO: starting new process as privileged user
[2021-05-07T15:06:25] ERROR: failed to get desktop path, no drop target available, error=2

I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully.

This works, thanks!

<!-- gh-comment-id:2059433426 --> @smenendez19 commented on GitHub (Apr 16, 2024): > This just started happening to me, I believe I had an image in my clipboard that was somehow screwing it up (logs below). > > ``` > [2021-05-07T15:06:20] INFO: leaving screen > [2021-05-07T15:06:20] INFO: bitmap: 1046x-1096 32 > [2021-05-07T15:06:20] INFO: convert image from: depth=32 comp=3 > [2021-05-07T15:06:20] FATAL: An error occurred: string too long > [2021-05-07T15:06:21] ERROR: failed to launch, error: process immediately stopped > [2021-05-07T15:06:21] INFO: backing off, wait=4s, failures=2 > [2021-05-07T15:06:25] INFO: starting new process as privileged user > [2021-05-07T15:06:25] ERROR: failed to get desktop path, no drop target available, error=2 > ``` > > I spammed CTRL+C on some random text on my windows machine a few times to fully reset the clipboard, then restarted the server on my mac, and the server then started successfully. This works, thanks!
Author
Owner

@FurmanSK commented on GitHub (Jul 25, 2024):

Yeah just came across this error. Saw it was converting an image and string too long error. Can we get an option to disable images in clipboard to be ignored? It doesn't even work anyways for me going from win10(server) to mac m2(client).

<!-- gh-comment-id:2250826447 --> @FurmanSK commented on GitHub (Jul 25, 2024): Yeah just came across this error. Saw it was converting an image and string too long error. Can we get an option to disable images in clipboard to be ignored? It doesn't even work anyways for me going from win10(server) to mac m2(client).
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#926
No description provided.