GIMP Chat http://gimpchat.com/ |
|
Python occasional "Unexpected error: [Errno 9] Bad file descriptor" http://gimpchat.com/viewtopic.php?f=9&t=18082 |
Page 1 of 1 |
Author: | opusGlass [ Thu Mar 05, 2020 9:49 pm ] | ||
Post subject: | Python occasional "Unexpected error: [Errno 9] Bad file descriptor" | ||
I have a batch python script that successfully runs through 22 images at a time, then crashes with the error "Unexpected error: [Errno 9] Bad file descriptor". After pointing it to the next set of images it continues for 22 more. Etc. ... Am I failing to properly dispose garbage or something? Python plugin attached
|
Author: | Wallace [ Thu Mar 05, 2020 9:54 pm ] |
Post subject: | Re: Python occasional "Unexpected error: [Errno 9] Bad file descriptor |
Hello opusGlass.
I can't help you with this, but there are a few really good coders here who can. |
Author: | ofnuts [ Fri Mar 06, 2020 8:19 am ] |
Post subject: | Re: Python occasional "Unexpected error: [Errno 9] Bad file descriptor |
Since you appear to be on Windows, I would first remove/comment out all the "print" statements. When their accumulated output reaches 4K bad things happen (running the code gimp-console could alleviate this, too). |
Author: | opusGlass [ Fri Mar 06, 2020 11:07 pm ] |
Post subject: | Re: Python occasional "Unexpected error: [Errno 9] Bad file descriptor |
That was it! I noticed that it runs perfectly when pasted into the console but I didn't realize it was related to the print statements. Removing them fixes everything. Thanks! |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |