View Single Post
Old 11-05-2013, 07:18 PM   #1
_jal
Junior Member
_jal began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2013
Device: iPhone
"Too many open files" errors

Hi all,

I'm using Calibre 1.9 (now, although this issue has been present in past versions) on Mac OS X 10.0 (although again, this problem existed on 10.8.3).

Nearly immediately upon starting Calibre, I get this error

Code:
calibre, version 1.9.0
ERROR: Unhandled exception: <b>IOError</b>:[Errno 24] Too many open files: '/Users/jal/Library/Preferences/calibre/gui.json'

Traceback (most recent call last):
  File "site-packages/calibre/gui2/metadata/single_download.py", line 1067, in accept
  File "site-packages/calibre/utils/config.py", line 397, in __setitem__
  File "site-packages/calibre/utils/config.py", line 341, in commit
  File "site-packages/calibre/utils/lock.py", line 113, in __enter__
IOError: [Errno 24] Too many open files: '/Users/jal/Library/Preferences/calibre/gui.json'
This actually started some time back after substantial use; now it will happen after one or two uses of the "Edit Metadata" function (for instance).

Techie notes: I increased the maxfiles limit (via launchctl, the OSX equivalent of other unixen's ulimit), which gave a little headroom and then choked again; I poked around a bit in the code, but I didn't see any obvious file handle leaks, but then again, it is a completely new codebase to me.


My library currently has 3900-odd books; is this a case of the wrong hammer for the job - is Calibre not expected to handle libraries of this size??
_jal is offline   Reply With Quote