{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1089","repository_url":"https://api.github.com/repos/petkaantonov/bluebird","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1089/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1089/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1089/events","html_url":"https://github.com/petkaantonov/bluebird/issues/1089","id":152633130,"number":1089,"title":"Locks up IE unless longStackTraces is turned off (even though it's the default)","user":{"login":"adam-lynch","id":1427241,"avatar_url":"https://avatars.githubusercontent.com/u/1427241?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-lynch","html_url":"https://github.com/adam-lynch","followers_url":"https://api.github.com/users/adam-lynch/followers","following_url":"https://api.github.com/users/adam-lynch/following{/other_user}","gists_url":"https://api.github.com/users/adam-lynch/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-lynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-lynch/subscriptions","organizations_url":"https://api.github.com/users/adam-lynch/orgs","repos_url":"https://api.github.com/users/adam-lynch/repos","events_url":"https://api.github.com/users/adam-lynch/events{/privacy}","received_events_url":"https://api.github.com/users/adam-lynch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/petkaantonov/bluebird/labels/3.0.0","name":"3.0.0","color":"5319e7"},{"url":"https://api.github.com/repos/petkaantonov/bluebird/labels/needs-investigation","name":"needs-investigation","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-02T20:06:48Z","updated_at":"2016-05-04T13:52:45Z","closed_at":null,"body":">1) What version of bluebird is the issue happening on?\r\n\r\n3.3.5\r\n\r\n>2) What platform and version? (For example Node.js 0.12 or Google Chrome 32)\r\n\r\nIE11 (and 10 I think too but not Edge I'm told by a team member)\r\n\r\n>3) Did this issue happen with earlier version of bluebird?\r\n\r\nNo idea.\r\n\r\n\r\n----\r\n\r\n\r\nWe switched from Q to bluebird and noticed that it crippled IE. It was very very slow and locked up for awhile as well. It was very hard to debug so I don't have that much info (sorry). I had a hunch that it was something to do with stack traces but then ruled it out because the default is to have `longStackTraces` turned off. Later though, I noticed that it was taking very long to call a function which immediately called `return Promise.resolve()`. I noticed that 96% of scripting was spent in a bluebird function to capture long stack traces and randomly hitting pause a few times in the debugger always stopped in that function (capturing the stack trace of the function that immediately resolved). Surprisingly, passing `longStackTraces: false` to `Promise.config` fixed everything. It's now way faster and doesn't lock up."},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/216871236","html_url":"https://github.com/petkaantonov/bluebird/issues/1089#issuecomment-216871236","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1089","id":216871236,"user":{"login":"petkaantonov","id":829734,"avatar_url":"https://avatars.githubusercontent.com/u/829734?v=3","gravatar_id":"","url":"https://api.github.com/users/petkaantonov","html_url":"https://github.com/petkaantonov","followers_url":"https://api.github.com/users/petkaantonov/followers","following_url":"https://api.github.com/users/petkaantonov/following{/other_user}","gists_url":"https://api.github.com/users/petkaantonov/gists{/gist_id}","starred_url":"https://api.github.com/users/petkaantonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petkaantonov/subscriptions","organizations_url":"https://api.github.com/users/petkaantonov/orgs","repos_url":"https://api.github.com/users/petkaantonov/repos","events_url":"https://api.github.com/users/petkaantonov/events{/privacy}","received_events_url":"https://api.github.com/users/petkaantonov/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T13:52:45Z","updated_at":"2016-05-04T13:52:45Z","body":"do you have NODE_ENV=development?\nOn May 4, 2016 16:45, Adam Lynch <notifications@github.com> wrote:Just saw this:\r\n\r\n\r\nNote that even though false is the default here, a development environment might be detected which automatically enables long stack traces and warnings.\r\n\r\n\r\nMaybe that's the case. Not sure.\r\n\r\n—You are receiving this because you commented.Reply to this email directly or view it on GitHub"}}