[GH-ISSUE #5] Quick start instructions crash on macos Sierra #2

Closed
opened 2026-05-05 11:22:07 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @jeromegn on GitHub (Feb 15, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/5

Not sure about other versions, but this is what happens on macos Sierra 10.12.6

$ babel-node index.js
2018-02-15 08:06:58.128 node[29387:27624113] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fffadc082cb __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fffc2a2048d objc_exception_throw + 48
	2   AppKit                              0x00007fffabdf3e82 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4480
	3   nbind.node                          0x00000001051cfe91 _Z10pollEventsPv + 193
	4   libsystem_pthread.dylib             0x00007fffc351f93b _pthread_body + 180
	5   libsystem_pthread.dylib             0x00007fffc351f887 _pthread_body + 0
	6   libsystem_pthread.dylib             0x00007fffc351f08d thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]    29385 abort      babel-node index.js

The package installed fine (with a ton of warnings.)

Originally created by @jeromegn on GitHub (Feb 15, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/5 Not sure about other versions, but this is what happens on macos Sierra 10.12.6 ``` $ babel-node index.js 2018-02-15 08:06:58.128 node[29387:27624113] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!' *** First throw call stack: ( 0 CoreFoundation 0x00007fffadc082cb __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fffc2a2048d objc_exception_throw + 48 2 AppKit 0x00007fffabdf3e82 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4480 3 nbind.node 0x00000001051cfe91 _Z10pollEventsPv + 193 4 libsystem_pthread.dylib 0x00007fffc351f93b _pthread_body + 180 5 libsystem_pthread.dylib 0x00007fffc351f887 _pthread_body + 0 6 libsystem_pthread.dylib 0x00007fffc351f08d thread_start + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException [1] 29385 abort babel-node index.js ``` The package installed fine (with a ton of warnings.)
Author
Owner

@cpg94 commented on GitHub (Feb 15, 2018):

I'm also getting this error on macOS Sierra.

<!-- gh-comment-id:365938098 --> @cpg94 commented on GitHub (Feb 15, 2018): I'm also getting this error on macOS Sierra.
Author
Owner

@kusti8 commented on GitHub (Feb 15, 2018):

Yeah I haven't tested it on Mac. It looks like a problem with libui-node. I'll investigate.

<!-- gh-comment-id:365993388 --> @kusti8 commented on GitHub (Feb 15, 2018): Yeah I haven't tested it on Mac. It looks like a problem with libui-node. I'll investigate.
Author
Owner

@kusti8 commented on GitHub (Feb 15, 2018):

I have a temporary fix that will defer node.js execution that I will apply, and then I'll look into it more later.

<!-- gh-comment-id:366017666 --> @kusti8 commented on GitHub (Feb 15, 2018): I have a temporary fix that will defer node.js execution that I will apply, and then I'll look into it more later.
Author
Owner

@kusti8 commented on GitHub (Feb 16, 2018):

This new fix should work on all platforms and not defer node execution as well. Tell me how well it works.

<!-- gh-comment-id:366132116 --> @kusti8 commented on GitHub (Feb 16, 2018): This new fix should work on all platforms and not defer node execution as well. Tell me how well it works.
Author
Owner

@jeromegn commented on GitHub (Feb 16, 2018):

New error now:

$ babel-node index.js
module.js:664
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: dlopen(/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node, 1): Library not loaded: @rpath/libui.A.dylib
  Referenced from: /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node
  Reason: image not found
    at Object.Module._extensions..node (module.js:664:18)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at initNode (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:162:15)
    at /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:130:13
    at findCompiledModule (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:94:13)
    at find (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:108:13)

Do I need to install some lib? I expected it to be included in the libui npm package.

<!-- gh-comment-id:366280717 --> @jeromegn commented on GitHub (Feb 16, 2018): New error now: ``` $ babel-node index.js module.js:664 return process.dlopen(module, path._makeLong(filename)); ^ Error: dlopen(/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node, 1): Library not loaded: @rpath/libui.A.dylib Referenced from: /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node Reason: image not found at Object.Module._extensions..node (module.js:664:18) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at initNode (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:162:15) at /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:130:13 at findCompiledModule (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:94:13) at find (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:108:13) ``` Do I need to install some lib? I expected it to be included in the libui npm package.
Author
Owner

@kusti8 commented on GitHub (Feb 16, 2018):

It seems like it's a bug with nbind I think. I'm going to spin up a VM, but
it's going to take a little bit of time.

On Fri, Feb 16, 2018, 11:14 AM Jerome Gravel-Niquet <
notifications@github.com> wrote:

New error now:

$ babel-node index.js
module.js:664
return process.dlopen(module, path._makeLong(filename));
^

Error: dlopen(/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node, 1): Library not loaded: @rpath/libui.A.dylib
Referenced from: /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node
Reason: image not found
at Object.Module._extensions..node (module.js:664:18)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at initNode (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:162:15)
at /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:130:13
at findCompiledModule (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:94:13)
at find (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:108:13)

Do I need to install some lib? I expected it to be included in the libui
npm package.


You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/kusti8/proton-native/issues/5#issuecomment-366280717,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJW73DAx6JR3ZH7Uh0SgzG4cysAGO78sks5tValagaJpZM4SG0aG
.

<!-- gh-comment-id:366282897 --> @kusti8 commented on GitHub (Feb 16, 2018): It seems like it's a bug with nbind I think. I'm going to spin up a VM, but it's going to take a little bit of time. On Fri, Feb 16, 2018, 11:14 AM Jerome Gravel-Niquet < notifications@github.com> wrote: > New error now: > > $ babel-node index.js > module.js:664 > return process.dlopen(module, path._makeLong(filename)); > ^ > > Error: dlopen(/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node, 1): Library not loaded: @rpath/libui.A.dylib > Referenced from: /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/proton-native/node_modules/libui-node/nbind.node > Reason: image not found > at Object.Module._extensions..node (module.js:664:18) > at Module.load (module.js:554:32) > at tryModuleLoad (module.js:497:12) > at Function.Module._load (module.js:489:3) > at Module.require (module.js:579:17) > at require (internal/module.js:11:18) > at initNode (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:162:15) > at /Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:130:13 > at findCompiledModule (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:94:13) > at find (/Users/jerome/projects/github.com/jeromegn/transmission.js/node_modules/nbind/dist/nbind.js:108:13) > > Do I need to install some lib? I expected it to be included in the libui > npm package. > > — > You are receiving this because you modified the open/close state. > > > Reply to this email directly, view it on GitHub > <https://github.com/kusti8/proton-native/issues/5#issuecomment-366280717>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJW73DAx6JR3ZH7Uh0SgzG4cysAGO78sks5tValagaJpZM4SG0aG> > . >
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/proton-native#2
No description provided.