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-22-2021, 06:49 AM   #1
un_pogaz
Chalut o/
un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.
 
un_pogaz's Avatar
 
Posts: 208
Karma: 101767
Join Date: Dec 2017
Device: Kobo
Strange bug (tuple index out of range)

I have a strange bug that appears unpredictably.
I'm not sure exactly when it happens, if it's during the automatic addition of a book, during the launch of a search, or the launch of a search during the automatic addition.

Code:
calibre, version 5.23.0
ERREUR : Exception non gérée: <b>IndexError</b>:tuple index out of range

calibre 5.23 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 40, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 40, 0) && Action Chains (1, 9, 3) && Comments Cleaner (1, 3, 3) && Count Pages (1, 11, 0) && Embed Comic Metadata (1, 6, 1) && EpubMerge (2, 11, 0) && EpubSplit (3, 1, 0) && Extract ISBN (1, 5, 0) && Find Duplicates (1, 8, 9) && Generate Cover (2, 0, 2) && KFX metadata reader (from KFX Input) (1, 40, 0) && KFX Input (1, 40, 0) && KePub Input (3, 4, 3) && KindleUnpack - The Plugin (0, 83, 0) && Kobo Books (1, 8, 2) && Kobo Utilities (2, 14, 1) && Manage Series (1, 2, 11) && Mass Search-Replace (1, 2, 2) && Modify ePub (1, 6, 2) && Obok DeDRM (7, 2, 1) && Open With (1, 5, 13) && Quality Check (1, 11, 2) && Search The Internet (1, 8, 1) && View Manager (1, 6, 0)
Traceback (most recent call last):
  File "calibre\gui2\library\models.py", line 935, in data
  File "calibre\gui2\library\models.py", line 839, in func
  File "calibre\db\view.py", line 193, in index_to_id
IndexError: tuple index out of range
un_pogaz is offline   Reply With Quote
Old 07-22-2021, 07:44 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,688
Karma: 17465128
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Does it happen if you run calibre with --ignore-plugins
kovidgoyal is online now   Reply With Quote
Old 07-22-2021, 09:43 AM   #3
un_pogaz
Chalut o/
un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.
 
un_pogaz's Avatar
 
Posts: 208
Karma: 101767
Join Date: Dec 2017
Device: Kobo
I go try.
But it's not going to be easy for me, because many plugins are now part of my normal usage. And it's going to be long, as said, it's really unpredictable, it could appear right away, tomorrow or in a month.
I am unable to reproduce it. It appears, it's all.
This is not the first time, 7 minimum, but relatively new ~2 release.


And then the log seems to say that it's coming from the caliber code.

Last edited by un_pogaz; 07-22-2021 at 10:14 AM.
un_pogaz is offline   Reply With Quote
Old 08-15-2021, 01:54 PM   #4
un_pogaz
Chalut o/
un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.
 
un_pogaz's Avatar
 
Posts: 208
Karma: 101767
Join Date: Dec 2017
Device: Kobo
Update: Found it

Update: Found it

YES, Finally \o/
I found the origin of this bug.

It appears when I do a Ctrl+C (copy) in an empty "table".
Important, empty. The bug does not appear when books has visible but none selected.

Windows 10
Calibre 5.25 (no plugin)

Error message
Spoiler:

Code:
calibre, version 5.25.0
ERREUR : Exception non gérée: <b>IndexError</b>:tuple index out of range

calibre 5.25 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: 
Traceback (most recent call last):
  File "calibre\gui2\library\models.py", line 935, in data
  File "calibre\gui2\library\models.py", line 839, in func
  File "calibre\db\view.py", line 193, in index_to_id
IndexError: tuple index out of range
un_pogaz is offline   Reply With Quote
Old 08-15-2021, 09:17 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,688
Karma: 17465128
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...fcd6cba0db8341
kovidgoyal is online now   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
Layout Quickview Icon: IndexError: tuple index out of range DaltonST Calibre 5 07-07-2017 01:08 PM
List Index out of range grafton84 Calibre 8 01-20-2016 12:17 AM
LIST INDEX OUT OF RANGE ERROR texasmichele Calibre 6 01-29-2013 01:37 PM
Tuple out of range theducks Calibre 2 01-22-2011 10:21 AM
list index out of range error adamvert Calibre 20 10-02-2010 12:26 PM


All times are GMT -4. The time now is 05:27 AM.


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