Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on connect. using @abandonware/i2c" #101

Open
mitch85 opened this issue Jun 5, 2020 · 3 comments
Open

Segmentation fault on connect. using @abandonware/i2c" #101

mitch85 opened this issue Jun 5, 2020 · 3 comments

Comments

@mitch85
Copy link

mitch85 commented Jun 5, 2020

After update node to 12.x and update i2c to lates version of @abandonware/i2c. I got a segmentation fault on new i2c();

before with node v 8.x it works perfectly

here some Errors

13 verbose stack Exit status 139 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:315:20) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:315:20) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

@mitch85 mitch85 changed the title Segmentation fault on Scan. using @abandonware/i2c" Segmentation fault on connect. using @abandonware/i2c" Jun 5, 2020
@hire-vladimir
Copy link

Also seeing Segmentation fault on new i2c() using node v12.18.1

pi@homebridge:~ $ node -v
v12.18.1
pi@homebridge:~ $ cat test.js
var i2c = require('@abandonware/i2c');
var address = 0x5c;
console.log("set address");
var wire = new i2c(address, {device: '/dev/i2c-1'}); 
console.log("init wire");
pi@homebridge:~ $ node test.js
set address
Segmentation fault
pi@homebridge:~ $

@raniglas
Copy link

raniglas commented Jul 7, 2020

Same here - segmentation fault on new i2c() with node v11.15.0

var i2c = require('@abandonware/i2c');
var address = 0x21;
var wire = new i2c(address, {device: '/dev/i2c-1'}); 
Segmentation fault (core dumped)

This is on Raspberry Pi4 aarch64.

@rzr
Copy link

rzr commented Oct 20, 2020

Please confirm on latest release

Also comment welcome at:

#97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants