[GH-ISSUE #1903] libc++abi: terminating with uncaught exception of type std::exception: std::exception #1388

Open
opened 2026-05-05 07:47:30 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @juankb1024 on GitHub (Feb 20, 2023).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1903

What happened?

On a fresh install of barrier app, the server always terminates with the following error:

libc++abi: terminating with uncaught exception of type std::exception: std::exception [2023-02-20T11:29:00] ERROR: process exited with error code: 6

Using MacOS Ventura as a Server and Windows10 as a client.

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

both were installed using release installers on github.

What OSes are you seeing the problem on? (Check all that apply)

Windows, macOS

What OS versions are you using?

MacOS Server
Windows client

Relevant log output

[2023-02-20T11:28:59] DEBUG2: checking clipboard
[2023-02-20T11:28:59] DEBUG2: flags: 0
[2023-02-20T11:29:00] DEBUG: Opening new socket: 015FC000
[2023-02-20T11:29:00] ERROR: exception on thread 0x00000004: <unknown>
libc++abi: terminating with uncaught exception of type std::exception: std::exception
[2023-02-20T11:29:00] ERROR: process exited with error code: 6
[2023-02-20T11:29:00] INFO: detected process not running, auto restarting
[2023-02-20T11:29:01] DEBUG: starting process

[2023-02-20T11:29:01] INFO: starting server
[2023-02-20T11:29:01] DEBUG: command: /Applications/Barrier.app/Contents/MacOS/barriers -f --no-tray --debug DEBUG2 --name CO000F3WMVQ3P94 --enable-drag-drop --disable-client-cert-checking -c /private/var/folders/m4/d71765dj3_g236vqm0931nxrhjmw4w/T/Barrier.PTUayN --address :24800
[2023-02-20T11:29:01] INFO: config file: /private/var/folders/m4/d71765dj3_g236vqm0931nxrhjmw4w/T/Barrier.OsqjOm
[2023-02-20T11:29:01] INFO: log level: DEBUG2
[2023-02-20T11:29:01] INFO: drag and drop enabled
[2023-02-20T11:29:01] DEBUG: opening configuration "/private/var/folders/m4/d71765dj3_g236vqm0931nxrhjmw4w/T/Barrier.PTUayN"
[2023-02-20T11:29:01] DEBUG: configuration read successfully

Any other information

I've tried deleting config files on both machines, reinstalling the server using homebrew and deleting SSL keys on both computers.

The firewall on both computers have been disabled. They are both using a lan cable. The Mac us a mac pro M1 2021.

Originally created by @juankb1024 on GitHub (Feb 20, 2023). Original GitHub issue: https://github.com/debauchee/barrier/issues/1903 ### What happened? On a fresh install of barrier app, the server always terminates with the following error: ` libc++abi: terminating with uncaught exception of type std::exception: std::exception [2023-02-20T11:29:00] ERROR: process exited with error code: 6 ` Using MacOS Ventura as a Server and Windows10 as a client. ### Version v2.4.0 ### Git commit hash (if applicable) _No response_ ### If applicable, where did you install Barrier from? both were installed using release installers on github. ### What OSes are you seeing the problem on? (Check all that apply) Windows, macOS ### What OS versions are you using? MacOS Server Windows client ### Relevant log output ```shell [2023-02-20T11:28:59] DEBUG2: checking clipboard [2023-02-20T11:28:59] DEBUG2: flags: 0 [2023-02-20T11:29:00] DEBUG: Opening new socket: 015FC000 [2023-02-20T11:29:00] ERROR: exception on thread 0x00000004: <unknown> libc++abi: terminating with uncaught exception of type std::exception: std::exception [2023-02-20T11:29:00] ERROR: process exited with error code: 6 [2023-02-20T11:29:00] INFO: detected process not running, auto restarting [2023-02-20T11:29:01] DEBUG: starting process [2023-02-20T11:29:01] INFO: starting server [2023-02-20T11:29:01] DEBUG: command: /Applications/Barrier.app/Contents/MacOS/barriers -f --no-tray --debug DEBUG2 --name CO000F3WMVQ3P94 --enable-drag-drop --disable-client-cert-checking -c /private/var/folders/m4/d71765dj3_g236vqm0931nxrhjmw4w/T/Barrier.PTUayN --address :24800 [2023-02-20T11:29:01] INFO: config file: /private/var/folders/m4/d71765dj3_g236vqm0931nxrhjmw4w/T/Barrier.OsqjOm [2023-02-20T11:29:01] INFO: log level: DEBUG2 [2023-02-20T11:29:01] INFO: drag and drop enabled [2023-02-20T11:29:01] DEBUG: opening configuration "/private/var/folders/m4/d71765dj3_g236vqm0931nxrhjmw4w/T/Barrier.PTUayN" [2023-02-20T11:29:01] DEBUG: configuration read successfully ``` ### Any other information I've tried deleting config files on both machines, reinstalling the server using homebrew and deleting SSL keys on both computers. The firewall on both computers have been disabled. They are both using a lan cable. The Mac us a mac pro M1 2021.
Author
Owner

@Que20 commented on GitHub (Mar 15, 2023):

Any news on this ? I'm having the same issue on my M1 Pro server with a W10 client.

started server (IPv4/IPv6), waiting for clients
2023-03-15 13:17:23.512879+0100 barriers[9893:15157452] starting cocoa loop
[2023-03-15T13:17:23] ERROR: exception on thread 0x00000004: <unknown>
libc++abi: terminating with uncaught exception of type std::exception: std::exception
[2023-03-15T13:17:23] ERROR: process exited with error code: 6
[2023-03-15T13:17:23] INFO: detected process not running, auto restarting
<!-- gh-comment-id:1470049324 --> @Que20 commented on GitHub (Mar 15, 2023): Any news on this ? I'm having the same issue on my M1 Pro server with a W10 client. ``` started server (IPv4/IPv6), waiting for clients 2023-03-15 13:17:23.512879+0100 barriers[9893:15157452] starting cocoa loop [2023-03-15T13:17:23] ERROR: exception on thread 0x00000004: <unknown> libc++abi: terminating with uncaught exception of type std::exception: std::exception [2023-03-15T13:17:23] ERROR: process exited with error code: 6 [2023-03-15T13:17:23] INFO: detected process not running, auto restarting ```
Author
Owner

@Que20 commented on GitHub (Mar 17, 2023):

An exception seem to be raised by threadFunc (/src/lib/mt/Thread.cpp).
I couldn't get anything more verbose than "std::exception".

<!-- gh-comment-id:1474099380 --> @Que20 commented on GitHub (Mar 17, 2023): An exception seem to be raised by `threadFunc` (/src/lib/mt/Thread.cpp). I couldn't get anything more verbose than "std::exception".
Author
Owner

@ivan1221 commented on GitHub (Mar 21, 2023):

I have the same problem in x86 architecture.

<!-- gh-comment-id:1477140633 --> @ivan1221 commented on GitHub (Mar 21, 2023): I have the same problem in x86 architecture.
Author
Owner

@Que20 commented on GitHub (Mar 24, 2023):

Issue fixed, my firewall was blocking Barrier.
For more context, I have a company-installed Filter/Proxy on my laptop (server) which was blocking Barrie. And for some reason, I the rules that allows barrier on my desktop (client) weren't activated.

So for everyone who's having the issue as well:

  • On Windows, check the Firewall's "Advanced Settings" and make sure you have rules for barriers' server and client.
  • On macOS, check under Network > VPN & Filter, and if any software is listed as a filter, make sure to configure it to allow traffic for Barrier.
<!-- gh-comment-id:1482476539 --> @Que20 commented on GitHub (Mar 24, 2023): Issue fixed, my firewall was blocking Barrier. For more context, I have a company-installed Filter/Proxy on my laptop (server) which was blocking Barrie. And for some reason, I the rules that allows barrier on my desktop (client) weren't activated. So for everyone who's having the issue as well: - On Windows, check the Firewall's "Advanced Settings" and make sure you have rules for barriers' server and client. - On macOS, check under Network > VPN & Filter, and if any software is listed as a filter, make sure to configure it to allow traffic for Barrier.
Author
Owner

@keeStep commented on GitHub (Sep 15, 2024):

There is a similar question on my M1:

[2024-09-15T14:50:54] INFO: starting client
[2024-09-15T14:50:54] INFO: config file: /private/var/folders/cf/hxdw897j7tv0y_rxtlqwqkrw0000gn/T/Barrier.pzxWJj
[2024-09-15T14:50:54] INFO: log level: INFO
[2024-09-15T14:51:24] INFO: drag and drop enabled
[2024-09-15T14:51:24] NOTE: started client
[2024-09-15T14:51:34] ERROR: exception on thread 0x00000003: <unknown>
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: event queue is not ready within 5 sec
[2024-09-15T14:51:34] ERROR: process exited with error code: 6
[2024-09-15T14:51:34] INFO: detected process not running, auto restarting

》〉》〉》〉In deep distress····

<!-- gh-comment-id:2351418038 --> @keeStep commented on GitHub (Sep 15, 2024): There is a similar question on my M1: ``` log [2024-09-15T14:50:54] INFO: starting client [2024-09-15T14:50:54] INFO: config file: /private/var/folders/cf/hxdw897j7tv0y_rxtlqwqkrw0000gn/T/Barrier.pzxWJj [2024-09-15T14:50:54] INFO: log level: INFO [2024-09-15T14:51:24] INFO: drag and drop enabled [2024-09-15T14:51:24] NOTE: started client [2024-09-15T14:51:34] ERROR: exception on thread 0x00000003: <unknown> libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: event queue is not ready within 5 sec [2024-09-15T14:51:34] ERROR: process exited with error code: 6 [2024-09-15T14:51:34] INFO: detected process not running, auto restarting ``` 》〉》〉》〉In deep distress····
Author
Owner

@juankb1024 commented on GitHub (Oct 30, 2024):

There is a similar question on my M1:

[2024-09-15T14:50:54] INFO: starting client
[2024-09-15T14:50:54] INFO: config file: /private/var/folders/cf/hxdw897j7tv0y_rxtlqwqkrw0000gn/T/Barrier.pzxWJj
[2024-09-15T14:50:54] INFO: log level: INFO
[2024-09-15T14:51:24] INFO: drag and drop enabled
[2024-09-15T14:51:24] NOTE: started client
[2024-09-15T14:51:34] ERROR: exception on thread 0x00000003: <unknown>
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: event queue is not ready within 5 sec
[2024-09-15T14:51:34] ERROR: process exited with error code: 6
[2024-09-15T14:51:34] INFO: detected process not running, auto restarting

》〉》〉》〉In deep distress····

I used the steps in this thread to try different versions until one worked.

<!-- gh-comment-id:2445619197 --> @juankb1024 commented on GitHub (Oct 30, 2024): > There is a similar question on my M1: > > ``` > [2024-09-15T14:50:54] INFO: starting client > [2024-09-15T14:50:54] INFO: config file: /private/var/folders/cf/hxdw897j7tv0y_rxtlqwqkrw0000gn/T/Barrier.pzxWJj > [2024-09-15T14:50:54] INFO: log level: INFO > [2024-09-15T14:51:24] INFO: drag and drop enabled > [2024-09-15T14:51:24] NOTE: started client > [2024-09-15T14:51:34] ERROR: exception on thread 0x00000003: <unknown> > libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: event queue is not ready within 5 sec > [2024-09-15T14:51:34] ERROR: process exited with error code: 6 > [2024-09-15T14:51:34] INFO: detected process not running, auto restarting > ``` > > 》〉》〉》〉In deep distress···· I used the steps in this [thread](https://github.com/debauchee/barrier/issues/698) to try different versions until one worked.
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#1388
No description provided.