-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macos] "Too many open files" I/O Error #186
Comments
The program will run for a while before crashing, usually around an hour or so. I am running a Mac Mini with MacOS V10.14.1
|
@abathman94 thanks for sending that through! Nothing looks out of the ordinary in that text, however if the bug is only occurring after an hour it is unlikely we would see much if we only check the open files when the program has only just started running. Is there any chance you could grab the the text after the program has been running for about an hour? This should help to find if there is a file handle leak that is accumulating over time. Also I just wanted to let you know that I've attempted to get this building on the macos machine I have available, however the machine is very old and I'm currently running into servo/gleam#180 and as a result I haven't been able to build it to recreate the error yet. @freesig will have a go at building it on his machine when he gets a chance and we'll go from there. We'll report back when we have more info 👍 |
So when running the binary on my machine I get a slowly climbing amount of memory. I'm not convinced that it's because of too many file handles because I ran file debuggers and it only ever had a handle open to each wav file. There was no additional file handles open even after an hour. However the memory usage had gone from 120mb to 1.8gig in one hour. I ran some memory leak dedicators and nothing was found (They basically look for memory that isn't free'd but also not referenced). Based on the above I think that the |
Thanks for the update, Mitch. |
@abathman94 thanks, but don't worry about checking the open files log again - I've been able to confirm what @freesig is seeing by running the exe you sent through that it's much more likely a memory leak of some sort and probably isn't related to leaked open file handles. @freesig seeing as the memory slowly climbs over time and the climb is fairly consistently, it does seem like there's a good chance this has something to do with the audio
Hmmm although come to think of it, it could also be one of the channels of communication between threads. E.g. maybe one thread is sending data to another over a channel ( Seeing as the beyond perception installation was not having this memory leak (as far as we know), I bet it's related to some sort of data that the beyond perception exhibition used but the moon installation does not. I wonder if maybe it's the detection or OSC threads sending data, but not being received/processed somewhere seeing as there are no computers in this installation that are doing audio visualisation. 🤔 |
Yesssss, that was it! If I:
The leak immediately stops and the audio_server memory usage hovers at ~50mb pretty consistently. @abathman94 can you try following those three steps above and let me know if that fixes the bug? If you can confirm it does fix the bug you were getting, then I'll do up an issue so I can remember to make a proper fix for this sometime in the future. For now though hopefully those 3 steps above get things running smoothly again! |
MAGIC!!
Nice one find mitch!
Ill give it a try right away and let you know how it goes,
Again thanks so much.
Cheers.
|
Can confirm changing the number of computers from 0 to 1 fixed the issue. |
Originally reported by @cbfry
Hmmm it looks like both errors are related to this "too many open files" I/O error. This error sometimes happens on macos if there is some sort of file handle leak, e.g. if files are being repeatedly open for some reason but never closed.
Does the program crash immediately on startup? Or does it run for a little while? If it does run for a little while, the following would help a lot to identify the cause:
audio_server
process so that it is highlighted.i
info icon near the top left of the screen.If you could follow these steps I can have a look through that text and see if there are any potential culprit files being repeatedly opened.
The text was updated successfully, but these errors were encountered: