{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/648","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/648/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/648/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/648/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/648","id":67583146,"number":648,"title":"Server crash on retrieval of SVG data","user":{"login":"friendtogeoff","id":11865800,"avatar_url":"https://avatars.githubusercontent.com/u/11865800?v=3","gravatar_id":"","url":"https://api.github.com/users/friendtogeoff","html_url":"https://github.com/friendtogeoff","followers_url":"https://api.github.com/users/friendtogeoff/followers","following_url":"https://api.github.com/users/friendtogeoff/following{/other_user}","gists_url":"https://api.github.com/users/friendtogeoff/gists{/gist_id}","starred_url":"https://api.github.com/users/friendtogeoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friendtogeoff/subscriptions","organizations_url":"https://api.github.com/users/friendtogeoff/orgs","repos_url":"https://api.github.com/users/friendtogeoff/repos","events_url":"https://api.github.com/users/friendtogeoff/events{/privacy}","received_events_url":"https://api.github.com/users/friendtogeoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-10T12:25:50Z","updated_at":"2015-04-13T12:12:51Z","closed_at":null,"body":"Hello,\r\n\r\nI'm fighting an issue with my Meteor app. I think that I'm following the documentation pretty much to the letter but I cannot seem to get past this one.\r\n\r\nThe application uses several FS.Collection instances, all using FS.Store.GridFS. Some store image data, but one in particular is used for .SVG file data. Only this one suffers from a server crash when .SVG files are requested by the client.\r\n\r\nI can cause the crash by manually requesting the URL (as returned by FS.file.url()) for the file from the browser, without any client code interaction. The file is correctly delivered but then the server crashes. If I store PNG data in the same collection and retrieve it by requesting the URL then everything completes smoothly without error.\r\n\r\nThe problem occurs with the simplest of SVG files (see attached .png copy of an example), and I've reproduced it with an FS.Collection with only one file in it.\r\n\r\nAny ideas or suggestions most welcome. Thanks!\r\n\r\nconsole output with FS.debug = true :\r\n\r\nI20150410-13:22:23.755(1)? GRIDFS { _id: 5527c82760aa8f3f0b737f94,\r\nI20150410-13:22:23.755(1)?   root: 'cfs_gridfs.placeThumbs',\r\nI20150410-13:22:23.755(1)?   range: { startPos: 0, endPos: 115675 } }\r\nI20150410-13:22:23.755(1)? Read file \"test3.svg\" bytes 0-1198/1199\r\nI20150410-13:22:23.755(1)? createReadStream placePlans\r\nI20150410-13:22:23.756(1)? createReadStreamForFileKey placePlans\r\nI20150410-13:22:23.756(1)? GRIDFS { _id: 5527cd21dc2a66120c1f40d3,\r\nI20150410-13:22:23.756(1)?   root: 'cfs_gridfs.placePlans',\r\nI20150410-13:22:23.756(1)?   range: { startPos: 0, endPos: 1198 } }\r\nW20150410-13:22:23.761(1)? (STDERR) \r\nW20150410-13:22:23.761(1)? (STDERR) events.js:72\r\nW20150410-13:22:23.761(1)? (STDERR)         throw er; // Unhandled 'error' event\r\nW20150410-13:22:23.761(1)? (STDERR)               ^\r\nW20150410-13:22:23.771(1)? (STDERR) Error: write after end\r\nW20150410-13:22:23.771(1)? (STDERR)     at writeAfterEnd (_stream_writable.js:133:12)\r\nW20150410-13:22:23.771(1)? (STDERR)     at Gzip.Writable.write (_stream_writable.js:181:5)\r\nW20150410-13:22:23.771(1)? (STDERR)     at ServerResponse.res.write (/Users/ecolby/.meteor/packages/webapp/.1.2.0.h5frgv++os+web.browser+web.cordova/npm/node_modules/connect/lib/middleware/compress.js:109:18)\r\nW20150410-13:22:23.771(1)? (STDERR)     at ServerResponse.res.end (/Users/ecolby/.meteor/packages/webapp/.1.2.0.h5frgv++os+web.browser+web.cordova/npm/node_modules/connect/lib/middleware/compress.js:116:14)\r\nW20150410-13:22:23.771(1)? (STDERR)     at sendResponseIfDone (packages/cfs:http-methods/http.methods.server.api.js:543:1)\r\nW20150410-13:22:23.771(1)? (STDERR)     at IncomingMessage.<anonymous> (packages/cfs:http-methods/http.methods.server.api.js:568:1)\r\nW20150410-13:22:23.771(1)? (STDERR)     at IncomingMessage.emit (events.js:92:17)\r\nW20150410-13:22:23.771(1)? (STDERR)     at _stream_readable.js:944:16\r\nW20150410-13:22:23.771(1)? (STDERR)     at process._tickCallback (node.js:442:13)\r\n=> Exited with code: 8\r\n\r\n.PNG copy of example SVG that causes the crash:\r\n![test3](https://cloud.githubusercontent.com/assets/11865800/7087484/da40f744-df83-11e4-925b-e58741c4e658.png)\r\n\r\nMeteor list:\r\naccounts-password                  1.1.1\r\naccounts-ui                        1.1.5\r\naldeed:autoform                    5.1.2 \r\naldeed:autoform-bs-datetimepicker  1.0.5\r\naldeed:collection2                 2.3.3\r\ncfs:autoform                       2.2.0\r\ncfs:gridfs                         0.0.33\r\ncfs:standard-packages              0.5.8\r\ncfs:ui                             0.1.3\r\nd3js:d3                            3.5.5 \r\nhttp                               1.1.0\r\niron:router                        1.0.7\r\nmeteor-platform                    1.2.2 \r\nmeteor-rickshaw                    0.0.0+ \r\nmeteorhacks:npm                    1.3.0 \r\nmomentjs:moment                    2.10.2 \r\nmrt:bootstrap-3                    0.3.8\r\nnpm-container                      1.0.0+ \r\nreywood:iron-router-ga             0.5.3\r\ntsega:bootstrap3-datetimepicker    4.7.14_3 "},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/92331007","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/648#issuecomment-92331007","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/648","id":92331007,"user":{"login":"dr-dimitru","id":1686778,"avatar_url":"https://avatars.githubusercontent.com/u/1686778?v=3","gravatar_id":"","url":"https://api.github.com/users/dr-dimitru","html_url":"https://github.com/dr-dimitru","followers_url":"https://api.github.com/users/dr-dimitru/followers","following_url":"https://api.github.com/users/dr-dimitru/following{/other_user}","gists_url":"https://api.github.com/users/dr-dimitru/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-dimitru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-dimitru/subscriptions","organizations_url":"https://api.github.com/users/dr-dimitru/orgs","repos_url":"https://api.github.com/users/dr-dimitru/repos","events_url":"https://api.github.com/users/dr-dimitru/events{/privacy}","received_events_url":"https://api.github.com/users/dr-dimitru/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T12:12:51Z","updated_at":"2015-04-13T12:12:51Z","body":"@friendtogeoff could you please mention version of old `cfs:standard-packages` package which stable on your end? Or share it somewhere, so I'll link it as local package"}}