Giter Club home page Giter Club logo

Comments (9)

jhays avatar jhays commented on September 9, 2024 2

Bumping this- Anyone have any thoughts on the status of bleno-mac on macOS 10.15.2 ?

I tried using this again and I'm still seeing the terminal hang when I try to run bleno service code via node.

from bleno-mac.

jhays avatar jhays commented on September 9, 2024 1

I also saw this segmentation fault 11 error when trying to run some bleno related code from a Mac on 10.15.2.

I have since uninstalled and reinstalled bleno-mac, and now when I try to run node service.js, the terminal just hangs there and prints out nothing until I stop with ctrl-c.

So I can no longer reproduce the segmentation fault 11 issue, but I did see that occur this morning before I uninstalled/reinstalled the package.

from bleno-mac.

manpreetnarang avatar manpreetnarang commented on September 9, 2024 1

+1 having the same error, it's working on 10.14 but it's not working working on 10.15.2

from bleno-mac.

koush avatar koush commented on September 9, 2024 1

I also had to fork this repository and updated bleno dependency to use the following in package.json:

   "bleno": "abandonware/bleno",

Otherwise it won't compile at all with recent node versions.

from bleno-mac.

jhays avatar jhays commented on September 9, 2024 1

Hi @kotsaarev, I work at PunchThrough and happen to be the author of that article-

I have not had an opportunity to test bleno-mac yet since this issue was addressed yesterday, but as you've discovered it looks like there is an issue with xpc-connection as well.

I will need to add an update to my article to help anyone trying to use this on the latest macOS. Thanks for sharing the solution you have found.

from bleno-mac.

dysquard avatar dysquard commented on September 9, 2024

Bumping this- Anyone have any thoughts on the status of bleno-mac on macOS 10.15.2 ?

I tried using this again and I'm still seeing the terminal hang when I try to run bleno service code via node.

Exactly same here. Before it's seg fault 11 and after I deleted the node_modules and did npm install it just stuck at bleno - echo.

from bleno-mac.

ankit2002 avatar ankit2002 commented on September 9, 2024

I am also getting the segmentation fault on 10.15.4.

from bleno-mac.

koush avatar koush commented on September 9, 2024

Rusty on my obj-c but the fix was straightforward. Starting the bluetooth manager immediately starts firing status events, before the event emitter has been properly initialized. Race condition.

#13

from bleno-mac.

kotsaarev avatar kotsaarev commented on September 9, 2024

Hello, I came from Punch Through’s article and I tried to use the "bleno-mac" as dependency. It was a fail.

My initial config was

  • macOS 10.15.4
  • node -v v13.6.0
  • Xcode 11.3.1

I tried to use node v10 and v12 also, but it was an issue with xpc-connection

...
../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2,
      have 1
...
5 warnings and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/kotsarev/src/bleno/node_modules/xpc-connection
gyp ERR! node -v v10.20.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
...

Also I tried to use @abandonware/bleno, but I got stuck in terminal after run node service.

Finally, this advice was useful to me.

Hopefully, I'll save someone some time.

from bleno-mac.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.