[GH-ISSUE #1555] NSPersistentUIApplicationExplicitlySupportsSecureCoding Error #1172

Open
opened 2026-05-05 07:33:18 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @sumeetkpatel on GitHub (Feb 6, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1555

What happened?

I have a mac client (with ssl disabled) connecting to a windows server (with ssl disabled) and the the mac errors with this error.

**Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 269.**

I don't have the issue if I set the server to Enable SSL but turn off "require client certificate"
I don't usually have this issue so not sure why this is happening.

Version

v2.4.0

Git commit hash (if applicable)

3e0d758b

If applicable, where did you install Barrier from?

Github Releases

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

macOS

What OS versions are you using?

MacOS BigSur M1 & Monterey / Windows 10

Relevant log output

[2022-02-07T09:02:15] INFO: starting client
[2022-02-07T09:02:15] INFO: config file: /private/var/folders/zm/.../T/Barrier.bSYrKu
[2022-02-07T09:02:15] INFO: log level: INFO
[2022-02-07T09:02:15] INFO: drag and drop enabled
[2022-02-07T09:02:15] NOTE: started client
[2022-02-07T09:02:15] NOTE: connecting to '192.168.x.x': 192.168.x.x:xxxxx
[2022-02-07T09:02:15] INFO: OpenSSL 3.0.0 7 sep 2021
**Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 269.**
[2022-02-07T09:02:15] ERROR: process exited with error code: 6
[2022-02-07T09:02:15] INFO: detected process not running, auto restarting

Any other information

No response

Originally created by @sumeetkpatel on GitHub (Feb 6, 2022). Original GitHub issue: https://github.com/debauchee/barrier/issues/1555 ### What happened? I have a mac client (with ssl disabled) connecting to a windows server (with ssl disabled) and the the mac errors with this error. ``` **Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 269.** ``` I don't have the issue if I set the server to Enable SSL but turn off "require client certificate" I don't usually have this issue so not sure why this is happening. ### Version v2.4.0 ### Git commit hash (if applicable) 3e0d758b ### If applicable, where did you install Barrier from? Github Releases ### What OSes are you seeing the problem on? (Check all that apply) macOS ### What OS versions are you using? MacOS BigSur M1 & Monterey / Windows 10 ### Relevant log output ```shell [2022-02-07T09:02:15] INFO: starting client [2022-02-07T09:02:15] INFO: config file: /private/var/folders/zm/.../T/Barrier.bSYrKu [2022-02-07T09:02:15] INFO: log level: INFO [2022-02-07T09:02:15] INFO: drag and drop enabled [2022-02-07T09:02:15] NOTE: started client [2022-02-07T09:02:15] NOTE: connecting to '192.168.x.x': 192.168.x.x:xxxxx [2022-02-07T09:02:15] INFO: OpenSSL 3.0.0 7 sep 2021 **Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 269.** [2022-02-07T09:02:15] ERROR: process exited with error code: 6 [2022-02-07T09:02:15] INFO: detected process not running, auto restarting ``` ### Any other information _No response_
Author
Owner

@sumeetkpatel commented on GitHub (May 25, 2022):

Still happening, also happens with Synergy Pro
Its intermittent but when it happens its fairly consistent with random working spikes.
This happens even if the server is not running.
It also happens from a rosetta terminal
Still errors wth crypto enabled.

$ ./barrierc -f 192.168.x.x
[2022-05-25T13:33:25] NOTE: started client
[2022-05-25T13:33:25] NOTE: connecting to '192.168.x.x': 192.168.x.x:xxxxx
Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 273.
$
<!-- gh-comment-id:1136689218 --> @sumeetkpatel commented on GitHub (May 25, 2022): Still happening, also happens with Synergy Pro Its intermittent but when it happens its fairly consistent with random working spikes. This happens even if the server is not running. It also happens from a rosetta terminal Still errors wth crypto enabled. ``` $ ./barrierc -f 192.168.x.x [2022-05-25T13:33:25] NOTE: started client [2022-05-25T13:33:25] NOTE: connecting to '192.168.x.x': 192.168.x.x:xxxxx Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 273. $ ```
Author
Owner

@micklove commented on GitHub (May 26, 2022):

Similar issue for me...
(have to reboot the machine, to resolve)

[2022-05-26T16:04:29] INFO: starting server
[2022-05-26T16:04:29] INFO: config file: /Users/myuser/Library/Application Support/Synergy/Synergy/LastConfig.cfg
[2022-05-26T16:04:29] INFO: log level: INFO
[2022-05-26T16:04:29] NOTE: started server, waiting for clients
Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 273.
[2022-05-26T16:04:29] ERROR: process exited with error code: 6
[2022-05-26T16:04:29] INFO: detected process not running, auto restarting
[2022-05-26T16:04:30] INFO: stopping synergy desktop process
<!-- gh-comment-id:1138188321 --> @micklove commented on GitHub (May 26, 2022): Similar issue for me... (have to reboot the machine, to resolve) ``` [2022-05-26T16:04:29] INFO: starting server [2022-05-26T16:04:29] INFO: config file: /Users/myuser/Library/Application Support/Synergy/Synergy/LastConfig.cfg [2022-05-26T16:04:29] INFO: log level: INFO [2022-05-26T16:04:29] NOTE: started server, waiting for clients Assertion failed: ([NSThread isMainThread]), function _NSPersistentUIApplicationExplicitlySupportsSecureCoding, file NSPersistentUI.m, line 273. [2022-05-26T16:04:29] ERROR: process exited with error code: 6 [2022-05-26T16:04:29] INFO: detected process not running, auto restarting [2022-05-26T16:04:30] INFO: stopping synergy desktop process ```
Author
Owner

@CJCShadowsan commented on GitHub (Jul 18, 2022):

Quick hint:

image

Seems to be related to synergy etc having 2 processes running, so the thread check realises it's not the only thread and gets caught up in a reset loop.

<!-- gh-comment-id:1187635828 --> @CJCShadowsan commented on GitHub (Jul 18, 2022): Quick hint: ![image](https://user-images.githubusercontent.com/16232240/179545281-039a5818-74eb-46b8-99be-569396e9090a.png) Seems to be related to synergy etc having 2 processes running, so the thread check realises it's not the only thread and gets caught up in a reset loop.
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#1172
No description provided.