digitarald / firewatch

Real-time command-line memory monitor for Firefox OS devices.
40 stars 11 forks source link

crash when killing an open app #1

Closed nickdesaulniers closed 10 years ago

nickdesaulniers commented 10 years ago

stack trace

/Users/Nicholas/mozilla/calculator/app/firewatch/index.js:60
                    result.mem[parts[1].toLowerCase()] = parts[2];
                                    ^
TypeError: Cannot read property '1' of null
    at stdout.split.slice.reduce.apps (/Users/Nicholas/mozilla/calculator/app/firewatch/index.js:60:22)
    at Array.reduce (native)
    at /Users/Nicholas/mozilla/calculator/app/firewatch/index.js:36:47
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)
digitarald commented 10 years ago

Should be fixed in 8a1d1feb2d1506413bd86b506aaf783998f54c48 (verified with http://pastebin.com/v6S0t3RJ) . Please re-open if it persists.