book editor error when adding 100 items

Bug #1282583 reported by craig warhurst on 2014-02-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

After adding a stylesheet, 48 html pages and 48 images, trying to add another page or image gives the following error message:

calibre, version 1.24.0
ERROR: Unhandled exception: <b>IndexError</b>:The checkpoint stack has an incorrect position pointer. This should never happen: self.pos = 100, len(self.states) = 100

calibre 1.24 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 304, in add_file
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 503, in add_savepoint
  File "site-packages\calibre\gui2\tweak_book\undo.py", line 99, in add_savepoint
IndexError: The checkpoint stack has an incorrect position pointer. This should never happen: self.pos = 100, len(self.states) = 100

I agree it should never happen. But it does :-)

Workaround: if you save the book and exit the program, then open and reload it you can then continue adding more items.

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers