{"action":"opened","issue":{"url":"https://api.github.com/repos/sandeepmistry/node-xpc-connection/issues/15","repository_url":"https://api.github.com/repos/sandeepmistry/node-xpc-connection","labels_url":"https://api.github.com/repos/sandeepmistry/node-xpc-connection/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/node-xpc-connection/issues/15/comments","events_url":"https://api.github.com/repos/sandeepmistry/node-xpc-connection/issues/15/events","html_url":"https://github.com/sandeepmistry/node-xpc-connection/issues/15","id":172419891,"number":15,"title":"nwjs crash when require('noble')","user":{"login":"timfish","id":1150298,"avatar_url":"https://avatars.githubusercontent.com/u/1150298?v=3","gravatar_id":"","url":"https://api.github.com/users/timfish","html_url":"https://github.com/timfish","followers_url":"https://api.github.com/users/timfish/followers","following_url":"https://api.github.com/users/timfish/following{/other_user}","gists_url":"https://api.github.com/users/timfish/gists{/gist_id}","starred_url":"https://api.github.com/users/timfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timfish/subscriptions","organizations_url":"https://api.github.com/users/timfish/orgs","repos_url":"https://api.github.com/users/timfish/repos","events_url":"https://api.github.com/users/timfish/events{/privacy}","received_events_url":"https://api.github.com/users/timfish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-22T10:35:03Z","updated_at":"2016-08-22T10:35:03Z","closed_at":null,"body":"```\r\nplatform: OSX v10.11.6\r\nnode: 6.3.1\r\nnpm: 3.10.3\r\nxcode: 7.3.1\r\nnwjs: 0.16.1\r\n```\r\n\r\nSorry for yet another issue related to nwjs/electron!\r\n\r\nI'm using a new-ish version of nwjs which doesn't require `nw-gyp`. `npm install noble` has no errors, but when I `require('noble')` in JavaScript I get a crash with some errors from the dynamic linker. \r\n\r\n```\r\nTims-MacBook:...$ npm install noble --save\r\n\r\n> xpc-connection@0.1.4 install /Users/.../node_modules/xpc-connection\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/binding/src/XpcConnection.o\r\n  SOLINK_MODULE(target) Release/binding.node\r\naurelia-skeleton-navigation@1.0.0-beta.1.2.1 /Users/...\r\n└─┬ noble@1.6.0 \r\n  ├── bplist-parser@0.0.6 \r\n  └── xpc-connection@0.1.4 \r\n\r\nnpm WARN optional Skipping failed optional dependency /noble/bluetooth-hci-socket:\r\nnpm WARN notsup Not compatible with your operating system or architecture: bluetooth-hci-socket@0.4.4\r\n\r\nTims-MacBook:...$ nw .\r\nUsing nw.js v0.16.1-sdk\r\ndyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi\r\n  Referenced from: /Users/.../node_modules/xpc-connection/build/Release/binding.node\r\n  Expected in: flat namespace\r\n\r\ndyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi\r\n  Referenced from: /Users/.../node_modules/xpc-connection/build/Release/binding.node\r\n  Expected in: flat namespace\r\n\r\n====================\r\nbye!\r\n```\r\n\r\nFurther testing shows that this also occurs with require('xpc-connection').\r\n\r\nI'll test if I have any luck with `nw-gyp`"}}
{"actor":{"display_login":"timfish"}}