{"action":"closed","issue":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/1380","repository_url":"https://api.github.com/repos/balderdashy/waterline","labels_url":"https://api.github.com/repos/balderdashy/waterline/issues/1380/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline/issues/1380/comments","events_url":"https://api.github.com/repos/balderdashy/waterline/issues/1380/events","html_url":"https://github.com/balderdashy/waterline/issues/1380","id":164700105,"number":1380,"title":"Maximum call stack size exceeded","user":{"login":"crobinson42","id":5973579,"avatar_url":"https://avatars.githubusercontent.com/u/5973579?v=3","gravatar_id":"","url":"https://api.github.com/users/crobinson42","html_url":"https://github.com/crobinson42","followers_url":"https://api.github.com/users/crobinson42/followers","following_url":"https://api.github.com/users/crobinson42/following{/other_user}","gists_url":"https://api.github.com/users/crobinson42/gists{/gist_id}","starred_url":"https://api.github.com/users/crobinson42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crobinson42/subscriptions","organizations_url":"https://api.github.com/users/crobinson42/orgs","repos_url":"https://api.github.com/users/crobinson42/repos","events_url":"https://api.github.com/users/crobinson42/events{/privacy}","received_events_url":"https://api.github.com/users/crobinson42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-10T05:23:18Z","updated_at":"2016-08-14T23:00:39Z","closed_at":"2016-08-14T23:00:39Z","body":"<!--\r\n======================================================\r\nHELLO, and welcome to the (experimental) Sailsbot\r\nissue-submission system.  If you encounter any\r\nproblems with this system, please contact\r\nsgress454@treeline.io\r\n\r\nFIRST THINGS FIRST: please fill out the following info \r\n(Don't change text between **) \r\n======================================================\r\n### BEGIN VERSION INFO ###\r\n-->\r\n\r\n**Waterline version**: 0.11.2\r\n**Node version**: 4.4.0\r\n**NPM version**: 2.14.20\r\n**Operating system**: Ubuntu 14.04 x64\r\n\r\n<!-- \r\n### END VERSION INFO ###\r\n======================================================\r\nGREAT! - Now read carefully \r\n(Sailsbot will know if you don't)!  \r\n======================================================\r\n\r\nBefore you submit an issue for Waterline, please make sure you have read the Sails issue contribution guide (http://bit.ly/sails-issue-guide) carefully, and then verify the following by typing an X in between each set of [ ] brackets below (don't make any other changes to the text!):\r\n\r\n### BEGIN PLEDGE ###\r\n- [x] I am experiencing a concrete technical issue with Waterline (ideas and feature proposals should follow the guide for proposing features and enhancements (http://bit.ly/sails-feature-guide), which involves making a pull request).  If you're not 100% certain whether it's a bug or not, that's okay--you may continue.  The worst that can happen is that the issue will be closed and we'll point you in the right direction.\r\n\r\n- [x] I am not asking a question about how to use Waterline or about whether or not Waterline has a certain feature (please refer to the documentation(http://sailsjs.org), or post on http://stackoverflow.com, our Google Group (http://bit.ly/sails-google-group) or our live chat (https://gitter.im/balderdashy/sails).\r\n\r\n- [x] I have already searched for related issues, and found none open (if you found a related _closed_ issue, please link to it in your post).\r\n\r\n- [x] My issue title is concise, on-topic and polite.\r\n\r\nand finally...\r\n- [x] **I can provide steps to reproduce this issue that others can follow.**\r\n\r\nIdeally, this involves creating a new repo that demonstrates the problem (see instructions at http://bit.ly/waterline-issue-repo).  Even though your issue may seem so simple to reproduce that a new repo is unnecessary, you'd be surprised how many solutions present themselves when you start from `sails new` and attempt to recreate your issue from scratch in a new app.  This ensures that the real issue isn't in your user code or in a third-party module.  If you're absolutely _convinced_ that a new repo is unnecessary, provide clear, concise and _specific_ steps to reproduce the problem in your post (not \"create a model then do blueprint create\").\r\n### END PLEDGE ###\r\n\r\nOKAY--THANKS FOR READING!  Continue posting details of your issue below. -->\r\n<hr/>\r\n\r\n`sails v0.12.3`\r\n\r\nI've had a production app running for about 3 months now. Recently, I started getting these errors thrown and nothing has changed, except database has grown from use. I am unable to track down the root cause of these errors from Waterline. I've even gone as far as wrapping most of my model/db invokations in try/catch statements to narrow it down and nothing threw in my try/catches. After looking at the source code in /lib/waterline/transformations.js line 126, should there be use of `process.nextTick()`? Am I the only person that's experienced this? How would one track this down? Thanks!\r\n\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n    at /therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:98:38\r\n    at Array.forEach (native)\r\n    at recursiveParse (/therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:98:22)\r\n    at /therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:126:16\r\n    at Array.forEach (native)\r\n    at recursiveParse (/therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:98:22)\r\n    at /therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:126:16\r\n    at Array.forEach (native)\r\n    at recursiveParse (/therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:98:22)\r\n    at /therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:126:16\r\n    at Array.forEach (native)\r\n    at recursiveParse (/therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:98:22)\r\n    at /therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:126:16\r\n    at Array.forEach (native)\r\n    at recursiveParse (/therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:98:22)\r\n    at /therms-1337/node_modules/sails/node_modules/waterline/lib/waterline/core/transformations.js:126:16\r\n```"}}
{"actor":{"display_login":"sailsbot"}}