GithubHelp home page GithubHelp logo

Comments (3)

developer-ishan avatar developer-ishan commented on June 3, 2024

What was the work around

from onoff.

mesutrk95 avatar mesutrk95 commented on June 3, 2024

have you got any fix for this problem?

from onoff.

fivdi avatar fivdi commented on June 3, 2024

I can't reproduce this issue with Node.js v18.8.0 and onoff v6.0.3 on a Raspberry Pi 4 running Raspberry Pi OS. Here is what I see when running the program provided in the initial post above.

pi@raspberrypi:~/test $ uname -a
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

pi@raspberrypi:~/test $ node --version
v18.8.0

pi@raspberrypi:~/test $ npm list --all
test@ /home/pi/test
└─┬ [email protected]
  ├─┬ [email protected]
  │ ├─┬ [email protected]
  │ │ └── [email protected]
  │ └── [email protected]
  └── [email protected]

pi@raspberrypi:~/test $ cat test.js 
var Gpio = require('onoff').Gpio; //include onoff to interact with the GPIO
console.log('onoff require test');

pi@raspberrypi:~/test $ node test.js 
onoff require test

pi@raspberrypi:~/test $ 

As can be seen, there is no malloc (): corrupted top size error. The program successfully requires onoff and displays the expected message.

Please provide the exact details required for reproducing the issue.

from onoff.

Related Issues (20)

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.