View Single Post
Old 11-20-2012, 09:25 PM   #1
rtmyers
Member
rtmyers began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2012
Device: iPad
Qt has caught an error thrown from an event handler

Converting the attached file yields the error "Qt has caught an exception thrown from an event handler.

Spoiler:

calibre, version 0.9.3 (win32, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (Sample Chapter)

Convert book 1 of 1 (Sample Chapter)
Qt: Untested Windows version 6.2 detected!
Resolved conversion options
calibre version: 0.9.3
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\Bob\\AppData\\Local\\Temp\\calibre_0. 9.3_tmp_4p90in\\y2zrl3.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'extra_css': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x03D94890>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'orientation': u'portrait',
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x03D94A70>,
'page_breaks_before': u'/',
'paper_size': u'b6',
'pdf_default_font_size': 20,
'pdf_mono_family': u'Courier New',
'pdf_mono_font_size': 16,
'pdf_sans_family': u'Helvetica',
'pdf_serif_family': u'Times New Roman',
'pdf_standard_font': u'serif',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\Bob\\AppData\\Local\\Temp\\calibre_0. 9.3_tmp_4p90in\\ut5hvp.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unit': 'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\Bob\AppData\Local\Temp\calibre_0.9.3_tmp_ 4p90in\hotpoi.epub
Found HTML cover OEBPS/text/kisei-10-1-cover.xhtml
Parsing all content...
Parsing OEBPS/gbyt/lib/gbyt.css ...
CSSStylesheet: CSSNamespaceRule not allowed here. [2:1: @namespace]
Property: Unknown Property name. [3:90: monochrome]
MediaQuery: Unexpected syntax, expected "and" but found "(". [4:100: (]
MediaQuery: Unexpected syntax, expected "and" but found ")". [4:114: )]
Property: Unexpected ident. [4:125: amzn-kf8]
MediaList: Invalid MediaQuery: (not amzn-mobi) and (not amzn-kf8)
Property: Unknown Property name. [6:862: monochrome]
Property: Unknown Property name. [9:25: min-device-width]
Property: Unknown Property name. [9:55: max-device-width]
Parsing OEBPS/text/kisei-10-1-0.xhtml ...
Parsing OEBPS/text/kisei-10-1-1.xhtml ...
Parsing OEBPS/text/kisei-10-1-2.xhtml ...
Parsing OEBPS/text/kisei-10-1-3.xhtml ...
Parsing OEBPS/text/kisei-10-1-4.xhtml ...
Parsing OEBPS/lib/cho-kisei.css ...
Selector: Unexpected negation. [142:52: :not(]
Selector: Unexpected class. [142:58: .game-info]
Selector: Unexpected CHAR. [142:67: )]
SelectorList: Invalid Selector: body > section.chapter > p:first-of-type:first-line:not(.game-info)
Parsing OEBPS/text/kisei-10-1-cover.xhtml ...
Parsing OEBPS/text/kisei-10-1-title.xhtml ...
Parsing OEBPS/text/kisei-10-1-toc.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Failed to parse CSS selector: u'.game-info:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.game-data:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.game-result:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.titlepage:after'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.iw-slider input::-webkit-slider-thumb'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.a[data-decoration]:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.line.start-numbering .t:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.w.a[data-decoration]:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.b.a[data-decoration]:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Failed to parse CSS selector: u'.line.start-numbering .a.l .t:before'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 150, in build_selector
File "site-packages\cssselect-0.7.1-py2.7.egg\cssselect\xpath.py", line 168, in css_to_xpath
ExpressionError: Pseudo-elements are not supported.

Source base font size is 12.00000pt
Removing fake margins...
Found 20 items of level: div_1
Found 8 items of level: div_3
Found 28 items of level: div_2
Found 10 items of level: div_5
Found 10 items of level: div_4
Found 10 items of level: div_7
Found 20 items of level: div_6
Found 20 items of level: p_2
Found 2 items of level: p_1
Ignoring level div_3
Ignoring level div_5
Ignoring level div_4
Ignoring level div_7
Ignoring level div_6
Ignoring level p_2
Ignoring level p_1
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
div_2 left margin stats: Counter({u'': 8})
div_2 right margin stats: Counter({u'': 8})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/gbyt/fonts/SourceSansPro-Regular.otf' from manifest
Trimming u'OEBPS/gbyt/fonts/SourceSansPro-Semibold.otf' from manifest
Trimming u'OEBPS/gbyt/images/iconic/first_16x16.png' from manifest
Trimming u'OEBPS/gbyt/images/iconic/last_16x16.png' from manifest
Trimming u'OEBPS/gbyt/images/black.svg' from manifest
Trimming u'OEBPS/gbyt/images/iconic/arrow_left_16x16.png' from manifest
Trimming u'OEBPS/gbyt/images/iconic/arrow_right_16x16.png' from manifest
Trimming u'OEBPS/gbyt/images/iconic/play_12x16.png' from manifest
Trimming u'OEBPS/gbyt/images/iconic/stop_16x16.png' from manifest
Trimming u'OEBPS/gbyt/images/w.png' from manifest
Trimming u'OEBPS/text/kisei-10-1-cover.jpg' from manifest
Trimming u'OEBPS/gbyt/images/b.png' from manifest
Trimming u'OEBPS/text/kisei-10-1-cover.xhtml' from manifest
Trimming u'OEBPS/gbyt/images/white.svg' from manifest
Creating PDF Output...
Converting input as a text based book...
Serializing oeb input to disk for processing...
Rendering pages to PDF...
Processing C:\Users\Bob\AppData\Local\Temp\calibre_0.9.3_tmp_ 4p90in\xs9wgi_pdf_out\OEBPS\text\kisei-10-1-title.xhtml...
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Any thoughts on how to go about tracking this down? My next step would be to do a series of binary bifurcations of the file, but before I do that if someone sees something obvious or has an environment which allows them to easily pinpoint where the error is occurring...

Thanks,
Bob
Attached Files
File Type: txt Calibre Conversion Error.txt (9.9 KB, 119 views)
File Type: epub kisei-10-1.epub (729.5 KB, 39 views)

Last edited by DoctorOhh; 11-21-2012 at 01:01 AM. Reason: added error log to the main post
rtmyers is offline   Reply With Quote