nieleyde / rpi-nodered

14 stars 11 forks source link

0.10.10 build for rpi crashes for immediately when running on rpi2; rpi2 version works #4

Closed vielmetti closed 8 years ago

vielmetti commented 8 years ago

The briefest crash message is

/usr/local/bin/node-red-pi: line 43:    15 Trace/breakpoint trap   /usr/bin/env node $OPTIONS $SCRIPT_PATH/../red.js $ARGS

but the actual crash dump is very long and can be found here

https://gist.github.com/44ca58a825df1dfc1576

and the short version is here

$ docker run -p 1880:1880 --privileged  -it nieleyde/rpi-nodered
abort: m??$0??0????%:????:??$

==== Stack trace ============================================

Security context: 0x2b234659 <JS Object>#0#
    1: parseTemplate [/usr/local/lib/node_modules/node-red/node_modules/mustache/mustache.js:~95] (this=0x2b234701 <JS Global Object>#1#,template=0x2d698165 <Very long string[8396]>#2#,tags=0x2b208091 <undefined>)
    2: parse [/usr/local/lib/node_modules/node-red/node_modules/mustache/mustache.js:440] (this=0x2d6657b5 <a Writer>#3#,template=0x2d698165 <Very long string[8396]>#2#,tags=0x2b208091 <undefined>)
    3: parse [/usr/local/lib/node_modules/node-red/node_modules/mustache/mustache.js:579] (this=0x2d659e85 <an Object>#4#,template=0x2d698165 <Very long string[8396]>#2#,tags=0x2b208091 <undefined>)
    4: arguments adaptor frame: 1->2
    5: init [/usr/local/lib/node_modules/node-red/red/api/ui.js:43] (this=0x2d6680c9 <an Object>#5#,_settings=0x2d70e891 <an Object>#6#)
    6: init [/usr/local/lib/node_modules/node-red/red/api/index.js:45] (this=0x2d697885 <an Object>#7#,adminApp=0x2d782c31 <JS Function app>#8#,storage=0x2d70e8d9 <an Object>#9#)
    7: /* anonymous */ [/usr/local/lib/node_modules/node-red/red/server.js:51] (this=0x2b234701 <JS Global Object>#1#)
    8: arguments adaptor frame: 1->0
    9: tryCatchReject(aka tryCatchReject) [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:845] (this=0x2b208091 <undefined>,f=0x2d630379 <JS Function>#10#,x=0x2b208091 <undefined>,thisArg=0x2b208091 <undefined>,next=0x2d63039d <a Pending>#11#)
   10: runContinuation1(aka runContinuation1) [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:804] (this=0x2b208091 <undefined>,f=0x2d630379 <JS Function>#10#,h=0x2d6327b1 <a Fulfilled>#12#,receiver=0x2b208091 <undefined>,next=0x2d63039d <a Pending>#11#)
   11: when [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:592] (this=0x2d6327b1 <a Fulfilled>#12#,cont=0x2d630409 <an Object>#13#)
   12: run [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:702] (this=0x2d6327c1 <a ContinuationTask>#14#)
   13: _drain [/usr/local/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:62] (this=0x478ad051 <a Scheduler>#15#)
   14: /* anonymous */(aka /* anonymous */) [/usr/local/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:27] (this=0x2b208091 <undefined>)
   15: _tickCallback [node.js:442] (this=0x4785da21 <a process>#16#)
vielmetti commented 8 years ago

Ah, I used the rpi-nodered version on my rpi2 - now trying

https://registry.hub.docker.com/u/nieleyde/rpi2-nodered/

instead. When I bring that version up on my Raspberry Pi 2, it works just fine. A word to the wise.