{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/3307","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/3307/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/3307/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/3307/events","html_url":"https://github.com/nwjs/nw.js/issues/3307","id":64909916,"number":3307,"title":"Large nw.js apps sometimes don't load on mac and linux","user":{"login":"JustASquid","id":11645696,"avatar_url":"https://avatars.githubusercontent.com/u/11645696?v=3","gravatar_id":"","url":"https://api.github.com/users/JustASquid","html_url":"https://github.com/JustASquid","followers_url":"https://api.github.com/users/JustASquid/followers","following_url":"https://api.github.com/users/JustASquid/following{/other_user}","gists_url":"https://api.github.com/users/JustASquid/gists{/gist_id}","starred_url":"https://api.github.com/users/JustASquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustASquid/subscriptions","organizations_url":"https://api.github.com/users/JustASquid/orgs","repos_url":"https://api.github.com/users/JustASquid/repos","events_url":"https://api.github.com/users/JustASquid/events{/privacy}","received_events_url":"https://api.github.com/users/JustASquid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rogerwang","id":165401,"avatar_url":"https://avatars.githubusercontent.com/u/165401?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerwang","html_url":"https://github.com/rogerwang","followers_url":"https://api.github.com/users/rogerwang/followers","following_url":"https://api.github.com/users/rogerwang/following{/other_user}","gists_url":"https://api.github.com/users/rogerwang/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerwang/subscriptions","organizations_url":"https://api.github.com/users/rogerwang/orgs","repos_url":"https://api.github.com/users/rogerwang/repos","events_url":"https://api.github.com/users/rogerwang/events{/privacy}","received_events_url":"https://api.github.com/users/rogerwang/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2015-03-28T06:38:49Z","updated_at":"2015-06-12T09:29:45Z","closed_at":null,"body":"Hi!\r\n\r\nI'm working on a fairly large-scale game using nw.js (In the Construct 2 engine) and it's having some problems on non-Windows platforms.\r\n\r\nMy users have recently reported that with the newer versions of nw.js, the app will often fail to load on mac and linux devices. The same app runs fine on windows, and on mac in the browser (I haven't done Linux browser testing).\r\n\r\nFor some users, the failure to load happens consistently, however for some (and in my personal testing) it only happens some of the time. The failure also happens right at the start of the app.\r\n\r\nHere's what the error console looks like on mac:\r\n![screen shot 2015-03-28 at 10 31 16 am](https://cloud.githubusercontent.com/assets/11645696/6880021/e9adf0ca-d56e-11e4-9206-a4d1272c66e2.png)\r\n\r\nHere's an export to test for yourself. I've stripped out all the C2 code and layouts, leaving only the image files and object data.\r\nhttps://dl.dropboxusercontent.com/u/41931267/NWTest_OSX32.zip\r\n\r\nHere's the HTML5 export which works fine. Keep in mind it will take a while to load in browser as there's a lot of image files. \r\nhttps://dl.dropboxusercontent.com/u/41931267/NWJS_issue/index.html\r\n\r\nHere's the Construct 2 source:\r\nhttps://dl.dropboxusercontent.com/u/41931267/NWJS_issue.capx\r\n\r\nPlease let me know if you have any questions.\r\nDaniel\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10119723-large-nw-js-apps-sometimes-don-t-load-on-mac-and-linux?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/111428437","html_url":"https://github.com/nwjs/nw.js/issues/3307#issuecomment-111428437","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/3307","id":111428437,"user":{"login":"JustASquid","id":11645696,"avatar_url":"https://avatars.githubusercontent.com/u/11645696?v=3","gravatar_id":"","url":"https://api.github.com/users/JustASquid","html_url":"https://github.com/JustASquid","followers_url":"https://api.github.com/users/JustASquid/followers","following_url":"https://api.github.com/users/JustASquid/following{/other_user}","gists_url":"https://api.github.com/users/JustASquid/gists{/gist_id}","starred_url":"https://api.github.com/users/JustASquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustASquid/subscriptions","organizations_url":"https://api.github.com/users/JustASquid/orgs","repos_url":"https://api.github.com/users/JustASquid/repos","events_url":"https://api.github.com/users/JustASquid/events{/privacy}","received_events_url":"https://api.github.com/users/JustASquid/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T09:29:45Z","updated_at":"2015-06-12T09:29:45Z","body":"All right, so - I've managed to change ulimit -n by the command line. (Not called file descriptor limit, but called 'open files'.) It was indeed 256 by default.\r\n\r\nDoing this manually made the test app run fine. I changed the argument in package.json from '--file-descriptor-limit<10000>' to '--file-descriptor-limit=10000' but it didn't seem to work.\r\n\r\nAnyway, I don't want to have to ask my users to manually play around with system config like this. Is there any way to have the app change the file limit?\r\n\r\nMy mac is running OSX Yosemite v 10.10.3."}}