omx-manager icon indicating copy to clipboard operation
omx-manager copied to clipboard

Instance.stop() calling crashes the app

Open imasif opened this issue 6 years ago • 0 comments

App crashers while playing multiple videos, {'--loop': true}, if don't turn on loop the first video plays then ends /home/pi/omxjs/omxplayer.js:44:9=>

if(dont_loop_all && video == last) instance.stop();

events.js:160 throw er; // Unhandled 'error' event ^

Error: This socket has been ended by the other party at Socket.writeAfterFIN [as write] (net.js:290:12) at KeyboardController._sendAction (/home/pi/omxjs/node_modules/omx-manager/lib/keyboardcontroller.js:63:29) at KeyboardController.stop (/home/pi/omxjs/node_modules/omx-manager/lib/keyboardcontroller.js:85:14) at dontLoopLast (/home/pi/omxjs/omxplayer.js:29:53) at KeyboardController. (/home/pi/omxjs/omxplayer.js:44:9) at emitNone (events.js:86:13) at KeyboardController.emit (events.js:185:7) at KeyboardController._setStopState (/home/pi/omxjs/node_modules/omx-manager/lib/omxinstance.js:84:12) at ChildProcess.respawn (/home/pi/omxjs/node_modules/omx-manager/lib/omxinstance.js:115:20) at ChildProcess.g (events.js:292:16)

imasif avatar Apr 06 '18 01:04 imasif