07-07-2017, 11:52 AM | #1 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Layout Quickview Icon: IndexError: tuple index out of range
I got this the very first time I clicked the new Quickview icon within the Layout button just after upgrading to 3.3. The index was likely = None.
calibre 3.3 [64bit] embedded-python: True is64bit: True Windows-10-10.0.15063-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.15063') Python 2.7.12+ Windows: ('10', '10.0.15063', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Find Duplicates (1, 6, 3) && Zotero Metadata Importer (1, 0, 41) && Author Book Count Hierarchy (1, 1, 8) && Audit Log (1, 0, 7) && Reading List (1, 6, 6) && Drop Search Results (1, 0, 8) && Quality Check (1, 9, 11) && Modify ePub (1, 3, 13) && Library Codes (1, 0, 30) && MultiColumnSearch (1, 0, 71) && Favourites Menu (1, 0, 4) && English Noun Frequency (1, 0, 7) && Job Spy (1, 0, 72) && View Manager (1, 4, 3) && Author Book Count (2, 1, 5) && Media File Importer (1, 0, 20) && Count Pages (1, 8, 0) && Consolidate All Library Metadata (2, 0, 32) && Extract ISBN (1, 4, 4) && QuarantineAndScrub (3, 6, 103) Traceback (most recent call last): File "site-packages\calibre\gui2\actions\show_quickview.py", line 32, in update_state File "site-packages\calibre\gui2\actions\show_quickview.py", line 100, in _show_quickview File "site-packages\calibre\gui2\dialogs\quickview.py", line 194, in __init__ File "site-packages\calibre\gui2\dialogs\quickview.py", line 362, in refresh File "site-packages\calibre\gui2\library\models.py", line 695, in id File "site-packages\calibre\db\view.py", line 194, in index_to_id IndexError: tuple index out of range |
07-07-2017, 12:23 PM | #2 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Calibre 3.3 now silently dies while booting
Update: Calibre now silently dies while booting. I ran "C:\Program Files\Calibre2\calibre-debug.exe" -g and got essentially the same error in the debug log. I suspect it is because my "last used Virtual Library" was one with zero books in it, because that library has over 50,000 books and it loads faster like that.
I get the same silent death when I run with calibre.exe --ignore-plugins . The first interactive error did not crash Calibre. Only after restarting did it begin to silently die. The debug log using calibre-debug.exe" -g was: Quote:
|
|
Advert | |
|
07-07-2017, 12:56 PM | #3 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The problem is indeed caused by starting calibre with a saved, empty, virtual library (Preferences / Behavior / Virtual library to appy when the current library is opened). The problem does not happen when switching to an empty VL, although other problems exist.
I am submitting a fix now. |
07-07-2017, 12:59 PM | #4 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
I manually changed the last-used library's metadata.db table preferences parameter 'virtual_lib_on_startup' to "" so it would not try to load any VL at all. No joy. Calibre is still will not start past the same quickview error.
|
07-07-2017, 01:03 PM | #5 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Note that starting calibre with an empty library will (probably) do the same thing. |
|
Advert | |
|
07-07-2017, 01:08 PM | #6 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Alternatively, the problem could happen if calibre manages to start with a non-empty library but no current book. I don't see how that can happen, but if it does then the QV problem will be triggered.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibredb add: IndexError: list index out of range | sws | Library Management | 4 | 03-28-2015 01:25 AM |
Conversion error IndexError: list index out of range | trebor6691 | Conversion | 4 | 02-20-2014 12:13 AM |
Calibre help? IndexError: list index out of range | ideamutt | Editor | 4 | 01-08-2014 07:56 PM |
Convertion error txt to epub "IndexError: list index out of range" | economix | Conversion | 6 | 12-25-2011 06:14 AM |
Tuple out of range | theducks | Calibre | 2 | 01-22-2011 10:21 AM |