receive an error message when adding a new entry with ToC editing tool

Bug #1919025 reported by david hj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

Procedure to reproduce the error: ----------------------------------------------------------------------
1. select this book & Open ToC editing tool,
2. expand all entries
3. select "Day 1" under "the stylelife challenge--daily missions" under "stylelife challenge"
3. click "add new entry inside this entry"
4. click on "mission 1: evaluate yourself"
5. click "ok"

Error message: ----------------------------------------------------------------------
calibre, version 5.13.0
ERROR: Unhandled exception: <b>ValueError</b>:invalid literal for int() with base 10: ''

calibre 5.13 embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: BookFusion Plugin (0, 5, 3) && F_rating (3, 2, 0) && Goodreads (1, 5, 1) && Goodreads_Rating (3, 1, 0)
Traceback (most recent call last):
  File "calibre\gui2\actions\toc_edit.py", line 168, in check_for_completions
ValueError: invalid literal for int() with base 10: ''

Revision history for this message
david hj (davidhuju) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1919025

Works fine for me. Is there something unusual about your setup?

 status invalid

Changed in calibre:
status: New → Invalid
Revision history for this message
david hj (davidhuju) wrote :

Here's the video showing the bug:
https://youtu.be/41_j1n89gA0

and here's the download link of another 2 books having the same problem:
https://drive.google.com/drive/u/1/folders/194vUn0iMt0Tlb_MjO9rYKZTr7l6KGwR-

Revision history for this message
Kovid Goyal (kovid) wrote :

Reboot in safe mode and see if the problem still persists.

Revision history for this message
david hj (davidhuju) wrote :

that failed too. here's the recording.
https://youtu.be/PL4YjPHNtnQ?t=3

Revision history for this message
Kovid Goyal (kovid) wrote :

then I am out of ideas, sorry.

Revision history for this message
Kovid Goyal (kovid) wrote :

Is the edit toc program crashing on your system? check the windows event
log

Revision history for this message
Kovid Goyal (kovid) wrote :

If it is indeed crashing on exit, then i have made some changes that
should workaround that.

Revision history for this message
david hj (davidhuju) wrote :

The Edit TOC crashed when I select any paragraph and click OK.

I checked windows event viewer, and found 4 errors related to calibre-parallel.exe. Here I uploaded them:
https://drive.google.com/drive/folders/194vUn0iMt0Tlb_MjO9rYKZTr7l6KGwR-?usp=sharing

I also got some ideas that may or may not be useful:

BetterRed said in the Cliabre Forum: "Could it be something to do with this ==>> https://github.com/kovidgoyal/calibre/commit/b131d9226d56277174c0a5bb0783cea13c04864f"

Also, it seems from the errors that the related codes locate here:
https://github.com/kovidgoyal/calibre/blob/master/src/calibre/gui2/actions/toc_edit.py
https://github.com/kovidgoyal/calibre/blob/dc1437c2bbcabb2b67082b962538df2c74edb3f5/src/calibre/utils/lock.py#L85
I don't know much about Python, so having no idea what that implies.

Revision history for this message
david hj (davidhuju) wrote :

could it be something to do with the python installed on my machine by other programs?

Revision history for this message
Kovid Goyal (kovid) wrote :

no calibre uses its own internal python. did u try 5.19?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers