{"action":"opened","issue":{"url":"https://api.github.com/repos/Khroki/MCEdit-Unified/issues/483","labels_url":"https://api.github.com/repos/Khroki/MCEdit-Unified/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/Khroki/MCEdit-Unified/issues/483/comments","events_url":"https://api.github.com/repos/Khroki/MCEdit-Unified/issues/483/events","html_url":"https://github.com/Khroki/MCEdit-Unified/issues/483","id":103345847,"number":483,"title":"Error while generating world: [Errno 24] Too many open files","user":{"login":"Monkey0x9","id":6331608,"avatar_url":"https://avatars.githubusercontent.com/u/6331608?v=3","gravatar_id":"","url":"https://api.github.com/users/Monkey0x9","html_url":"https://github.com/Monkey0x9","followers_url":"https://api.github.com/users/Monkey0x9/followers","following_url":"https://api.github.com/users/Monkey0x9/following{/other_user}","gists_url":"https://api.github.com/users/Monkey0x9/gists{/gist_id}","starred_url":"https://api.github.com/users/Monkey0x9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monkey0x9/subscriptions","organizations_url":"https://api.github.com/users/Monkey0x9/orgs","repos_url":"https://api.github.com/users/Monkey0x9/repos","events_url":"https://api.github.com/users/Monkey0x9/events{/privacy}","received_events_url":"https://api.github.com/users/Monkey0x9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-26T19:22:22Z","updated_at":"2015-08-26T19:22:22Z","closed_at":null,"body":"OS: Windows 8.1 64-bit\r\nMCEdit version: Latest, ran from source\r\nMinecraft server version: 1.8.1\r\nmcedit.log: https://www.dropbox.com/s/rzuxsovro2v3ay4/mcedit.log?dl=1\r\nSteps to reproduce:\r\n1. Click on \"Create New World\"\r\n2. For the chunks choose a big number (ie. 300X300, it isn't gonna generate the whole world because of this error)\r\n3. The World Types I tested are \"Default\" and \"Superflat\". Highly recommenced to choose \"Superflat\" because superflat worlds generate much faster compared to the default worlds.\r\n4. Click on \"Create\" and wait until mcedit stops generating the world and the console gives an error. This part took around 1 and half hours on my laptop (not the strongest one). The error will happen when the red circled number of the picture is a little bit greater than 500.\r\n![knipsel](https://cloud.githubusercontent.com/assets/6331608/9503270/2f4ea5dc-4c36-11e5-8da5-7574076b75e7.PNG)\r\nIn the mcedit.log file you can see that the server has started up 504 times until the error happened. I tested it several times and it was always the same number.\r\n\r\nThe error also doesn't happen in the mcedit code but in the subprocesses module (see error in mcedit.log). After some searching on the internet I found that the problem was something with file descriptors (fds) of the stdout/stdin/stderr pipes not being closed on windows after using .communicate() on the subprocess.Popen object. In linux/OSX this shouldn't be a problem (to be tested?).\r\n\r\nThis bug makes it that people who want to generate really big worlds (ie. for analysing purpose) can't generate them with mcedit."}}