cbconvert icon indicating copy to clipboard operation
cbconvert copied to clipboard

Crashes when converting

Open hanahaneull opened this issue 1 year ago • 5 comments

When converting, there is a chance the program will crash.

When mass converting, sometimes it won't even finish the first file.

cbconvert convert --format jxl --height 1800 --outdir output/ .

cbconvert 1.1.0 bug.txt

hanahaneull avatar Jan 04 '25 15:01 hanahaneull

Without the archive or at least the broken image, there is not much I can do. It looks like it panics on some png file. If that is the case, I cannot do much, though. I didn't write the PNG decoder, but it would still be helpful if that is the case.

gen2brain avatar Jan 05 '25 08:01 gen2brain

The weird thing is, it's "sometimes" crashing. Not always. Finished converting my ~40 comics, only ~10 of them are crashing. All my comic are 40+ pages in PNG format. Idk if that relevant or not.

But here is an example one of the comic

If this file doesn't give the same crashes, try multiple files. It might take a few attempt to replicate it.

hanahaneull avatar Jan 05 '25 15:01 hanahaneull

Thanks. I downloaded the file; you can delete it. I will try to reproduce the issue.

gen2brain avatar Jan 05 '25 17:01 gen2brain

I cannot reproduce it. Are you sure it crashed on this file? I use the app daily to convert hundreds and thousands of comics, though, I never deal with pngs.

gen2brain avatar Jan 06 '25 13:01 gen2brain

Huh, that's weird. It only took me 3 attempt with the same file to make it crashes 2025-01-08_13-22

Edit:

I just do a quick experiment. Doing 50 convert in batches of 10 with different format. With the same file. JXL: 5 out of 5 try, crashes AVIF: 0 out of 5 try, no crashes (much faster than JXL) WEBP: 0 out of 5 try, no crashes JPEG: 0 out of 5 try, no crashes

hanahaneull avatar Jan 08 '25 06:01 hanahaneull