07-26-2010, 04:03 AM | #1 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2010
Location: Liverpool, England
Device: Kindle keyboard, Kindle Oasis, iPhone, iPad, PC
|
bug report and associated questions
Is this the correct place for this?
Yesterday I set up a new library and imported 60ish books to it, edited metadata, covers etc. converted to ePub, and checked all was well. Restarted my PC for updates and the library had disappeared completely - can't find it on disc (I didn't actually check that Calibre had put it where I thought I had told it to when I was working on it), and now when I click the Library icon I get ERROR: ERROR: Unhandled exception: <b>ImportError</b>:Bad magic number in C:\Program Files\Calibre2\Lib\site-packages\calibre\gui2\dialogs\choose_library_ui.py o Traceback (most recent call last): File "site-packages\calibre\gui2\layout.py", line 420, in choose_library File "site-packages\calibre\gui2\dialogs\choose_library.py", line 12, in <module> ImportError: Bad magic number in C:\Program Files\Calibre2\Lib\site-packages\calibre\gui2\dialogs\choose_library_ui.py o Following my previous experience I have checked the wastebasket in case Calibre had arbitrarily decided to to delete the folder, but it is not there. I Love Calibre's functionality, but am slightly frightened by how easily it seems to lose books. I also had an experience yesterday where my library (before creation of second library) was showing 534 books, I added another 20 and it showed 515! I haven't yet tracked down whether that is genuine or not - one of the main reasons for Calibre is that I have ebooks in a lot of different places so it is not easy to check the Calibre library against the original sources. One thing I have noticed is that there are quite a lot of duplicate folders for authors, one of which is always empty. If I could get the library function working again I was thinking of creating a new library and importing from the folder structure of the old one to clean it up - would this be sensible? Last edited by paulrw; 07-26-2010 at 04:05 AM. |
07-26-2010, 05:29 AM | #2 | ||||
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Yes
Quote:
Quote:
Quote:
Quote:
What version of calibre are you using? If you just upgraded, from which version did you upgrade? Do you backup your library and metadata.db file on a regular schedule? Some backup strategies are discussed here. Good Luck Last edited by DoctorOhh; 07-26-2010 at 05:43 AM. |
||||
Advert | |
|
07-26-2010, 05:32 AM | #3 |
Curmudgeon
Posts: 3,085
Karma: 722357
Join Date: Feb 2010
Device: PRS-505
|
I've been using calibre since 6.41 and I've never had it mislay even a single ebook out of the 2500 or so I have in my library, so I can't agree with you that it "easily" loses books.
If you're mucking around in calibre's private library files, this may have something to do with your vanishing books issue. Don't try to "clean it up"; just let it alone (read my .sig). As for the proper place for bug reports, that's kind of complicated. If it's something that may be a user issue -- that is, if you've broken something -- you can usually get help/answers here. However, if it's a genuine calibre bug, you need to open a ticket with the bug tracker so it can get fixed. |
07-26-2010, 07:21 AM | #4 | |||
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2010
Location: Liverpool, England
Device: Kindle keyboard, Kindle Oasis, iPhone, iPad, PC
|
Quote:
Quote:
Quote:
|
|||
07-26-2010, 07:30 AM | #5 | ||
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2010
Location: Liverpool, England
Device: Kindle keyboard, Kindle Oasis, iPhone, iPad, PC
|
Quote:
Quote:
|
||
Advert | |
|
07-26-2010, 08:13 AM | #6 | ||
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
You stated previously, Quote:
|
||
07-26-2010, 08:23 AM | #7 | ||
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2010
Location: Liverpool, England
Device: Kindle keyboard, Kindle Oasis, iPhone, iPad, PC
|
Quote:
Quote:
|
||
07-26-2010, 08:32 AM | #8 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
07-26-2010, 09:03 AM | #9 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
Calibre keeps track of the books and folders using a database. If you add, delete or restore books manually in the Calibre Library folders, and don't update the database, you are bound for trouble. Don't do it!
Treat the whole Calibre Library folder as a singe black-box object. Use only Add/Remove/Convert from within the program to make sure the database is in sync with the Calibre Library. Othervise you WILL MOST LIKELY loose data and corrupt the Calibre Library, as you have noticed. This is not a bug. |
07-26-2010, 09:16 AM | #10 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2010
Location: Liverpool, England
Device: Kindle keyboard, Kindle Oasis, iPhone, iPad, PC
|
Using Calibre, clicked on the entry. in the right hand pane formats: was empty. Using Windows I looked in the directory shown under "Path:" in the right hand pane. The directory was empty. I did this to make sure that Calibre wasn't simply misreporting the fomat. Since there was nothing there, I used the Calibre recycle icon which would I thought remove the entry (I think I did try the Preferences/Advanced/Check Database Integrity first).
I can't see any way that I could have selected the other books, they were not contiguous in the view I had, and whilst I admit my memory is not what it was, I think I would have remembered holding the CTRL key down for 115 clicks. To clarify things more, I am using the Calibre interface for everything except when things appear to go wrong when I use the normal Widows tools to investigate, not to fix. For the sake of even further clarity I am using Windows 7 32-bit, fully up to date, 4 GB RAM, and the data is in a RAID mirrored set. 35 years in IT means that while I am no less likely to cock things up than anyone else, I would normally expect to realise that I had done something stupid Thanks for all the responses, I hope that this is not coming across as negative because I don't intend it to be, it's just that Calibre is so close to perfect for me that I want to be confident in it, and after I have got over the initial hurdles would like to get involved in the development. Last edited by paulrw; 07-26-2010 at 09:47 AM. |
07-26-2010, 09:45 AM | #11 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
I add and remove books and edit meta-data all the time. No problem.
Can you repeat the bug? And give simple instructions so others can repeat it? |
07-26-2010, 09:52 AM | #12 | ||
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Quote:
At this point Kovid tells the person to start calibre from the command prompt calibre-debug -g and capture the data in the command window. |
||
07-26-2010, 11:22 AM | #13 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You've likely got a corrupted install. None of the behavior you're describing is normal, including the error message which indicates that one of the files in the calibre install is corrupted.
And all this would lead me to believe you are having disk problems. I dont know if newer versions of windows come with disk checking tools, but if they do, I suggest running a disk check. Also uninstall and re-install. And make sure you dont have any calibre files lying around after the uninstall, which might happen if the files checksums have changed thanks to disk corruption. |
07-26-2010, 11:28 AM | #14 | |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
AFAICT Calibre writes the DB and then the files. Cached writes could really farkle things up |
|
07-26-2010, 01:23 PM | #15 | |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2010
Location: Liverpool, England
Device: Kindle keyboard, Kindle Oasis, iPhone, iPad, PC
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug report | mtravellerh | PocketBook | 303 | 11-03-2013 07:21 PM |
minor bug report - html conversion | cybmole | Calibre | 18 | 09-30-2010 11:26 AM |
Free Report (Kindle) - Economic Report of the President | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 5 | 02-13-2010 12:07 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |
iLiad Bug report with fix to iRex | scotty1024 | iRex Developer's Corner | 0 | 10-21-2006 05:15 PM |