linux - Raspberry PI node EventEmitter memory leak -


I am using Johnny-Five node module on Raspberry Pi to run some services on the robot with the following script.

  var = = required ('Johnny-Five'), board, servo, lead; Board = new five Boer (); Board.on ('ready', function () {servo = new five.Servo ({pin: 9, category: [0,180]}) // Allow direct commandline access board. Repl.inject ({s: servo });});  

I get the following error when running this code with node 0.10.29-1 on Raspberry Pi

  1 (node) Warning: Potential events Emmetor discovered memory leaks 11 listeners said. Use the emitter.setMaxListeners () to increase the range of trace in the process. EventEmitter.addListener (events.js: 160: 15) at process.on.process.addListener (node.js: 768: 26) Board. On board (/ home / pi / sonny / node_modules / johnny-five) / Lib / board.js: 375: 15) On board. & Lt; Anonymous & gt; (/home/pi/sonny/node_modules/johnny-five/lib/board.js:154:18) at SerialPort. & Lt; Anonymous & gt; (/home/pi/sonny/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:418:13) at SerialPort.EventEmitter.emit (events.js: 95: 17) at / home / pi / sonny / Node_modules / johnny-five / node_modules / serialport / serialport.js: 230: 16 There is a need to set maxlistsers anywhere in codecs.  

If I run my notebook (Linux Mint 14 + node 0.10.20) on this notebook, then it works fine.

What is the method to set Maxlistner in the world on Raspberry Pi (running raspben)?

If not, how do I add setMaxListeners to my code?

It became a power issue with Raspberry P Once I put motors on a different power supply But with a normal ground everything started to work.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -