MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   Strange bug (tuple index out of range) (https://www.mobileread.com/forums/showthread.php?t=340788)

un_pogaz 07-22-2021 07:49 AM

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


kovidgoyal 07-22-2021 08:44 AM

Does it happen if you run calibre with --ignore-plugins

un_pogaz 07-22-2021 10:43 AM

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.

un_pogaz 08-15-2021 02:54 PM

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


kovidgoyal 08-15-2021 10:17 PM

https://github.com/kovidgoyal/calibr...fcd6cba0db8341


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

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.