{"action":"created","issue":{"url":"https://api.github.com/repos/tj/punt/issues/10","labels_url":"https://api.github.com/repos/tj/punt/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/tj/punt/issues/10/comments","events_url":"https://api.github.com/repos/tj/punt/issues/10/events","html_url":"https://github.com/tj/punt/issues/10","id":96394660,"number":10,"title":"Index out of range crash","user":{"login":"medikoo","id":122434,"avatar_url":"https://avatars.githubusercontent.com/u/122434?v=3","gravatar_id":"","url":"https://api.github.com/users/medikoo","html_url":"https://github.com/medikoo","followers_url":"https://api.github.com/users/medikoo/followers","following_url":"https://api.github.com/users/medikoo/following{/other_user}","gists_url":"https://api.github.com/users/medikoo/gists{/gist_id}","starred_url":"https://api.github.com/users/medikoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medikoo/subscriptions","organizations_url":"https://api.github.com/users/medikoo/orgs","repos_url":"https://api.github.com/users/medikoo/repos","events_url":"https://api.github.com/users/medikoo/events{/privacy}","received_events_url":"https://api.github.com/users/medikoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T19:11:05Z","updated_at":"2015-07-21T19:59:29Z","closed_at":null,"body":"I use punt in long living processes, and already twice I experienced following crashes:\r\n\r\n```\r\nbuffer.js:506\r\n    throw new RangeError('index out of range');\r\n          ^\r\nRangeError: index out of range\r\n    at checkOffset (buffer.js:506:11)\r\n    at Buffer.readUInt32BE (buffer.js:580:5)\r\n    at Object.module.exports [as decode] (/home/eregistrations/els/node_modules/punt/node_modules/amp-message/node_modules/amp/lib/decode.js:21:19)\r\n    at decode (/home/eregistrations/els/node_modules/punt/node_modules/amp-message/index.js:80:18)\r\n    at new Message (/home/eregistrations/els/node_modules/punt/node_modules/amp-message/index.js:35:37)\r\n    at Server.onmessage (/home/eregistrations/els/node_modules/punt/lib/server.js:63:13)\r\n    at Socket.emit (events.js:110:17)\r\n    at UDP.onMessage (dgram.js:472:8)\r\n\r\nnpm ERR! Linux 3.13.0-36-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"start\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! eregistrations-salvador@0.2.0 start: `node bin/setup && node node_modules/mano/bin/start --quick`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the eregistrations-salvador@0.2.0 start script 'node bin/setup && node node_modules/mano/bin/start --quick'.\r\nnpm ERR! This is most likely a problem with the eregistrations-salvador package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node bin/setup && node node_modules/mano/bin/start --quick\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls eregistrations-salvador\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/eregistrations/els/npm-debug.log\r\n```\r\n\r\nMessage that's source of the issue is unknown to me, as at given point there certainly was no cross process communication involved in my setup.\r\n\r\nIt'll be great if punt internally catches such errors and emits them through error messages, otherwise whole process gets down.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tj/punt/issues/comments/123461659","html_url":"https://github.com/tj/punt/issues/10#issuecomment-123461659","issue_url":"https://api.github.com/repos/tj/punt/issues/10","id":123461659,"user":{"login":"medikoo","id":122434,"avatar_url":"https://avatars.githubusercontent.com/u/122434?v=3","gravatar_id":"","url":"https://api.github.com/users/medikoo","html_url":"https://github.com/medikoo","followers_url":"https://api.github.com/users/medikoo/followers","following_url":"https://api.github.com/users/medikoo/following{/other_user}","gists_url":"https://api.github.com/users/medikoo/gists{/gist_id}","starred_url":"https://api.github.com/users/medikoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medikoo/subscriptions","organizations_url":"https://api.github.com/users/medikoo/orgs","repos_url":"https://api.github.com/users/medikoo/repos","events_url":"https://api.github.com/users/medikoo/events{/privacy}","received_events_url":"https://api.github.com/users/medikoo/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T19:59:29Z","updated_at":"2015-07-21T19:59:29Z","body":"> Do you have non-punt clients connecting to the server for some reason?\r\n\r\nNo, technically I have no clue what's the source of that errorneous message. I hard coded try/catch on my side, so maybe on next event log will provide some hint"}}