Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2017, 11:52 AM   #1
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 1,880
Karma: 1804640
Join Date: Aug 2013
Location: Texas
Device: 10" Win10 Tablet w/Calibre64, CalibreSpy & Freda+
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
DaltonST is offline   Reply With Quote
Old 07-07-2017, 12:23 PM   #2
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 1,880
Karma: 1804640
Join Date: Aug 2013
Location: Texas
Device: 10" Win10 Tablet w/Calibre64, CalibreSpy & Freda+
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:
X:\calibre_utilities>"C:\Program Files\Calibre2\calibre-debug.exe" -g
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: Quality Check (1, 9, 11) && Find Duplicates (1, 6, 3) && MultiColumnSearch (1, 0, 71) && Reading List (1, 6, 6) && English Noun Frequency (1, 0, 7) && Audit Log (1, 0, 7) && Count Pages (1, 8, 0) && Modify ePub (1, 3, 13) && Author Book Count (2, 1, 5) && View Manager (1, 4, 3) && Job Spy (1, 0, 72) && Library Codes (1, 0, 30) && Favourites Menu (1, 0, 4) && Zotero Metadata Importer (1, 0, 41) && Extract ISBN (1, 4, 4) && Media File Importer (1, 0, 20) && Author Book Count Hierarchy (1, 1, 8) && Consolidate All Library Metadata (2, 0, 32) && QuarantineAndScrub (3, 6, 103) && Drop Search Results (1, 0, 8)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 95.6235294118 x 95.5818815331
Using calibre Qt style: True
Starting up...
MCS has finished initialization...
Calibre, and hence Job Spy, was gracefully shut down last time? False
Last time daemon started: Sat Jul 1 13:07:47 2017
Last time daemon failed: Sat May 27 15:16:31 2017
Total daemon starts inception_to_date: 429
Total daemon failures inception-to-date: 6
libpng warning: iCCP: known incorrect sRGB profile
Job Spy has finished initialization...
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
DaltonST is offline   Reply With Quote
Advert
Old 07-07-2017, 12:56 PM   #3
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 9,917
Karma: 3493645
Join Date: Jan 2010
Location: UK
Device: Reader
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.
chaley is offline   Reply With Quote
Old 07-07-2017, 12:59 PM   #4
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 1,880
Karma: 1804640
Join Date: Aug 2013
Location: Texas
Device: 10" Win10 Tablet w/Calibre64, CalibreSpy & Freda+
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.
DaltonST is offline   Reply With Quote
Old 07-07-2017, 01:03 PM   #5
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 9,917
Karma: 3493645
Join Date: Jan 2010
Location: UK
Device: Reader
Quote:
Originally Posted by DaltonST View Post
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.
What is clear is that Quickview is being asked to show the selected book when no books are in the library. Whether the change you made affects that or not I can't say. If you are getting the same traceback then calibre is still starting with an empty booklist.

Note that starting calibre with an empty library will (probably) do the same thing.
chaley is offline   Reply With Quote
Advert
Old 07-07-2017, 01:08 PM   #6
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 9,917
Karma: 3493645
Join Date: Jan 2010
Location: UK
Device: Reader
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.
chaley is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:26 PM.


MobileRead.com is a privately owned, operated and funded community.