Skip to content

Sketch builds cause too many open files #1990

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

Closed
mikaelpatel opened this issue Apr 5, 2014 · 8 comments
Closed

Sketch builds cause too many open files #1990

mikaelpatel opened this issue Apr 5, 2014 · 8 comments

Comments

@mikaelpatel
Copy link

Very often the Arduino IDE needs to be restarted due to too many open files. This can occur as a Java crash or as a failed to execute command.

I am running nightly build with the new avr toolchain (though the problem also shows up in 1.5.6-r2) on Ubuntu 12.04 LTS (32-bit).

Cheers!

@matthijskooijman
Copy link
Collaborator

Hmm, I don't really understand what you're saying here. Does the IDE crash when you open a lot of files, or is there some bug that is triggered by having a lot of files open when the IDE crashes?

@mikaelpatel
Copy link
Author

I was a bit unclear. Sorry about that. It is the build that seems to leave open files so that a max limit is met. It is not the number of files open in the IDE (tabs). Below is an example.
screenshot from 2014-04-05 23 07 43

@mikaelpatel
Copy link
Author

A more complete error message:
screenshot from 2014-04-05 23 11 18

@mikaelpatel
Copy link
Author

I looked at the compiler reference you attached for #1991
I believe that the File's are not correctly closed.

@cmaglie
Copy link
Member

cmaglie commented May 27, 2014

@mikaelpatel

May you try:

sudo lsof -p PID

where PID is the process id of the IDE, to see which files are kept open?

@DiDomenicoSimone
Copy link

Hi ,
I'm so sorry, I accidentally created a fork of the repository, I can delete
it without problems?

2014-05-27 13:47 GMT+02:00 Cristian Maglie [email protected]:

@mikaelpatel https://github.com/mikaelpatel

May you try:

sudo lsof -p PID

where PID is the process id of the IDE, to see which files are kept open?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1990#issuecomment-44265257
.

@matthijskooijman
Copy link
Collaborator

I'm so sorry, I accidentally created a fork of the repository, I can delete it without problems?

This is totally the wrong place to ask, but yes, you can delete the fork from your account without affecting the original repository in any way.

@mikaelpatel
Copy link
Author

@cmaglie

I haven't seen this problem for several weeks. More or less since I switched over to the nightly build with the new avr toolchain. Also the Java Runtime (Ubuntu 12.10 LTS/32-bits) was recently updated.

I will close the issue and reopen if it shows up again.

Cheers!

@per1234 per1234 changed the title Too many open files Sketch builds cause too many open files Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants