WebUI conversion failed for all comic cbz/cbr format, GUI works fine

Bug #1847017 reported by gotbletu on 2019-10-07
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

Name : calibre
Version : 4.0.0-1
Architecture : x86_64
Kernel: 5.3.4-arch1-1-ARCH x86_64
Desktop: Xfce 4.14.1
Distro: EndeavourOS (Linux)

The GUI works fine with all cbr/cbz conversion.

This issue is only for the WEBUI (calibre-server)
Conversion does not work on any cbz/cbr to xxx format
e.g: Not Working
- cbz/cbr to epub [failed]
- cbz/cbr to mobi [failed]

e.g other format WORKS
- epub/txt to mobi [works]
- txt to epub [works]

so seems like its only an issue with cbr/cbz formats on WEBUI.

command used to run server:
$ calibre-server --port 57770 --userdb /srv/calibre/users.sqlite --enable-auth

Heres failed log message after hitting the Convert Button

Conversion failed!
Error details below...

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/utils/ipc/simple_worker.py", line 290, in main
    res = {'result':func(*args, **kwargs)}
  File "/usr/lib/calibre/calibre/srv/convert.py", line 121, in convert_book
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1110, in run
    accelerators, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 246, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/comic_input.py", line 185, in convert
    pages = self.get_pages(fname, cdir)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/comic_input.py", line 149, in get_pages
    self.report_progress, tdir2)
  File "/usr/lib/calibre/calibre/ebooks/comic/input.py", line 273, in process_pages
Exception: Failed to process comic:

Conversion log

Conversion options changed from defaults:
  colors: 256
  cover: u'/tmp/calibre_4.0.0_tmp_vJxr7U/srv-T2i8xA/tmpMswLz4/gxX5nY.jpg'
  read_metadata_from_opf: u'/tmp/calibre_4.0.0_tmp_vJxr7U/srv-T2i8xA/tmpMswLz4/HEBXeP.opf'
  verbose: 2
  output_profile: u'sony300'
Resolved conversion options
calibre version: 4.0.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0,
 'book_producer': None,
 'change_justification': u'left',
 'chapter': None,
 'chapter_mark': u'pagebreak',
 'colors': 256,
 'comic_image_size': None,
 'comments': None,
 'cover': u'/tmp/calibre_4.0.0_tmp_vJxr7U/srv-T2i8xA/tmpMswLz4/gxX5nY.jpg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'despeckle': False,
 'disable_font_rescaling': True,
 'disable_trim': False,
 'dont_add_comic_pages_to_toc': False,
 'dont_compress': False,
 'dont_grayscale': False,
 'dont_normalize': False,
 'dont_sharpen': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': None,
 'extract_to': 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 0x7eff862af710>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_aspect_ratio': False,
 'keep_ligatures': False,
 'landscape': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0,
 'linearize_tables': False,
 'margin_bottom': 0,
 'margin_left': 0,
 'margin_right': 0,
 'margin_top': 0,
 'markup_chapter_headings': True,
 'max_toc_links': 50,
 'minimum_line_height': 120,
 'mobi_file_type': u'old',
 'mobi_ignore_margins': False,
 'mobi_keep_original_images': False,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'no_inline_toc': False,
 'no_process': False,
 'no_sort': False,
 'output_format': u'png',
 'output_profile': <calibre.customize.profiles.SonyReader300Output object at 0x7eff862bf250>,
 'page_breaks_before': None,
 'personal_doc': u'[PDOC]',
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'/tmp/calibre_4.0.0_tmp_vJxr7U/srv-T2i8xA/tmpMswLz4/HEBXeP.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'',
 'right2left': False,
 'search_replace': u'[]',
 'series': None,
 'series_index': None,
 'share_not_sync': False,
 '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,
 'subset_embedded_fonts': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'transform_css_rules': None,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2,
 'wide': False}
InputFormatPlugin: Comic Input running
on /tmp/calibre_4.0.0_tmp_vJxr7U/srv-T2i8xA/tmpMswLz4/bQnE58.cbr
Found comic pages...
 Zone/New XMen-Zone-000.jpg
 Zone/New XMen-Zone-001.jpg
 Zone/New XMen-Zone-002.jpg
 Zone/New XMen-Zone-003.jpg
 Zone/New XMen-Zone-004.jpg
 Zone/New XMen-Zone-005.jpg
 Zone/New XMen-Zone-006.jpg
 Zone/New XMen-Zone-007.jpg
 Zone/New XMen-Zone-008.jpg
 Zone/New XMen-Zone-009.jpg
 Zone/New XMen-Zone-010.jpg
 Zone/New XMen-Zone-011.jpg
 Zone/New XMen-Zone-012.jpg
 Zone/New XMen-Zone-013.jpg
 Zone/New XMen-Zone-014.jpg
 Zone/New XMen-Zone-015.jpg
 Zone/New XMen-Zone-016.jpg
 Zone/New XMen-Zone-017.jpg
 Zone/New XMen-Zone-018.jpg
 Zone/New XMen-Zone-019.jpg
 Zone/New XMen-Zone-020.jpg
 Zone/New XMen-Zone-021.jpg
 Zone/New XMen-Zone-022.jpg
 Zone/New XMen-Zone-023.jpg

AYMERIC (french-oak) wrote :

I have not bug with tis config

1. go to "preference"
2. "input option"
3. check "Disable trimming" in "comic input"

Changed in calibre:
assignee: nobody → AYMERIC (french-oak)

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate 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