"Too Many Files Open"
Posted: 2009-06-29T03:14:48-07:00
I've been having a problem with a program at work that uses ImageMagick to save OpenGLbuffers to disk and later convert the saved images to other formats.
After about 14 hours, in which about 15000 or more images were saved and converted, I get an error message from ImageMagick that says that there are too many files open and the program aborts. This particular program needs to run as long as possible, preferably at least several days, but with the current 14 hours, that goal is hardy within reach.
Anyone has any idea why this message would pop up? We are programming in C++ and, with just a few minor exceptions, all image objects that we create are declared as objects (not pointers), which means that they ought to be destroyed by the end of the function call. I've checked for leaks in the cases where we do create the objects dynamically, but those are all deleted once they are no longer needed. Anyone?
After about 14 hours, in which about 15000 or more images were saved and converted, I get an error message from ImageMagick that says that there are too many files open and the program aborts. This particular program needs to run as long as possible, preferably at least several days, but with the current 14 hours, that goal is hardy within reach.
Anyone has any idea why this message would pop up? We are programming in C++ and, with just a few minor exceptions, all image objects that we create are declared as objects (not pointers), which means that they ought to be destroyed by the end of the function call. I've checked for leaks in the cases where we do create the objects dynamically, but those are all deleted once they are no longer needed. Anyone?