Viewer Crashes on "Invalid IPv6 URL"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A bad URL in an <a> tag in ebook can cause the Viewer to crash on viewer start.
The example I stumbled across was:
<a href="http://
(Epub example attached--also happened in azw3.)
Only happens in viewer; convert, edit book, polish all handle it fine.
The best way to fix it wasn't obvious to me, so I'm reporting it instead of trying to fix it.
These are similar bugs in the past, if it helps:
https:/
https:/
Full error:
calibre, version 4.8.0
ERROR: Loading book failed: Failed to open the book at C:\Users\
Traceback (most recent call last):
File "site-packages\
File "site-packages\
File "site-packages\
ConversionFailure: Failed to convert book: C:\Users\
InputFormatPlugin: EPUB Input running
on C:\Users\
Failed to run pipe worker with command: from calibre.
Python function terminated unexpectedly
Invalid IPv6 URL (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 114, in main
File "site.py", line 88, in run_entry_point
File "site-packages\
File "<string>", line 1, in <module>
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "urlparse.py", line 143, in urlparse
File "urlparse.py", line 210, in urlsplit
ValueError: Invalid IPv6 URL
My Calibre details:
calibre 4.8 [64bit] embedded-python: True is64bit: True
Windows-
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: View Manager (1, 5, 4) && EpubSplit (2, 8, 3) && Count Pages (1, 9, 0) && FanFicFare (3, 14, 5) && EpubMerge (2, 7, 3) && Generate Cover (1, 5, 22) && Quality Check (1, 9, 11) && Reading List (1, 6, 7) && Modify ePub (1, 4, 0) && SmartEject (2, 2, 1) && Favourites Menu (1, 0, 5) && Manage Series (1, 2, 9) && ColumnSum (2, 1, 0)
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased