node-usb icon indicating copy to clipboard operation
node-usb copied to clipboard

mac/libusb issue?

Open lutzbickhardt opened this issue 14 years ago • 2 comments

Hi Schakko,

trying to use node-usb the code never reaches ...4... , but does so without any prior errors, so I guess libusb is installed correctly

assert.doesNotThrow(function() { instance.setDebugLevel(0); }); console.log(“…3…”); var devices = instance.get_devices(); console.log(“…4…”);

this runs under node 4.11, mac osx 10.6.8

Thanks Lutz

lutzbickhardt avatar Sep 09 '11 15:09 lutzbickhardt

Hi Lutz, Did you try to run the code with sudo? It could be a permission problem. You could run the test code with strace for gaining more debug information.

schakko avatar Sep 12 '11 08:09 schakko

Hi Schakko,

using sudo it works -sort of-, meaning it finds a device <Bus 004 Device 001 ID 05ac:8005> by Apple (0x05ac) that the sysprofiler does not know about, then seg faults as you described.

I was under the impression that version 1.0.8 of the lib had solved the issue (as per their change log) but the I realized it is from May 2010, thus older than your code.

Thanks anyway!

lutzbickhardt avatar Sep 12 '11 13:09 lutzbickhardt