ciromattia / kcc

KCC (a.k.a. Kindle Comic Converter) is a comic and manga converter for ebook readers.
ISC License
2.78k stars 221 forks source link

Stuck on processing mobi with large files that need to be chunked #774

Open alvinchenn opened 4 days ago

alvinchenn commented 4 days ago

When I input a large .cbz file (1.1 gb) to convert to MOBI/AZW3, KCC hangs indefinitely during the "Processing MOBI" stage. When I try running the source code, the console output displays a "List index out of range" error when the hanging starts. This error doesn't appear when converting the same file to EPUB.

A workaround I have found is: rename the .cbz extension to .zip->unzipping the resulting file->input the resulting unzipped directory after clicking "Add directory" in KCC.

This appears to be the same error in this issue, but it says it's supposedly fixed: https://github.com/ciromattia/kcc/issues/582

axu2 commented 3 days ago

Can you try 6.2.1? @alvinchenn

I suspect a change in 6.2.2 caused it.

Can you also provide a screenshot of the file structure so I can replicate it.

Also possible it was a bug in 6.3.1. Try 6.3.0 too

alvinchenn commented 3 days ago

Tested with 6.2.1 and 6.3.0, still hangs for both. Here's the file structure:

Screenshot 2024-11-15 at 10 34 35 PM
axu2 commented 2 days ago

@alvinchenn can you copy paste the full error when you run from source?

Can you show me what's inside the cbz after unzip.

Also, I need a screenshot of kcc settings

alvinchenn commented 2 days ago
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
Preparing source images...
Checking images...
Processing images...
Creating EPUB file...
Creating EPUB file...
Error calling Python override of QThread::run(): Traceback (most recent call last):
  File "/Users/alvinchen/Downloads/kcc-6.2.2/kindlecomicconverter/KCC_gui.py", line 366, in run
    item, comic2ebook.options.covers[outputPath.index(item)][1]))
          ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range
Screenshot 2024-11-16 at 11 01 10 PM Screenshot 2024-11-16 at 11 01 53 PM