Thread: Cybook Eject
View Single Post
Old 03-01-2009, 06:19 PM   #12
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by kovidgoyal View Post
Maybe be the metadata reading code is doing this? IIRC the Cybook uses the metadata plugins?
Yep. For some reason it only affects the PDF metadata reader... I'm not sure why but I believe it has something to do with pyPdf's PdfFileReader object. I've committed a fix to my branch. The fix will prevent this from cropping up in other metadata readers as well.

Quote:
Originally Posted by pthwaite
As far as I am aware, no files are or should I say, were open?
When you get an error about not being able to unmount a device it's because there is a file on the device that is open. Just like when you open a file in a text editor. Every app on your system opens a lot of tiles. lsof (OS X/Linux/*nix only) shows a list of every file in use (open) by every running app. The issue was Calibre is opening all PDF files on the device to read the metadata and then not closing them when finished.
user_none is offline   Reply With Quote