Closed PreownedFIN closed 4 years ago
Hi @PreownedFIN,
Thanks for reporting!
It fails after a while or with a specific chapter?
I encountered this error when downloading many chapters at once. This particular one got up to 65 chapters, on other 'runs' it would panic somewhere between 30-50 chapters.
I'll try to investigate in the weekend 👍
I'm finding the same bug. Randomly crashes with the same bug. When this happens, it leaves a 0kb jpg file in the images folder, which luckily gets re-downloaded and fixed when the script is run again.
It's probably the same, but here's my log.
/home/mainuser/apps/comics-downloader/comics-downloader --all -country gb -format cbr -output "/home/mainuser/storage/local" https://mangadex.org/title/36329/useless-ponko
19% |███████ | [0s:3s]panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x677149]
goroutine 1 [running]:
image/jpeg.Encode(0x8f52e0, 0xc000270000, 0x0, 0x0, 0x0, 0x3, 0x8f5a80)
/usr/local/Cellar/go/1.13/libexec/src/image/jpeg/writer.go:576 +0x29
github.com/Girbons/comics-downloader/pkg/util.SaveImage(0x8f52e0, 0xc000270000, 0x7f08d1408930, 0xc000393900, 0x85d70c, 0x3, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/util/util.go:171 +0x221
github.com/Girbons/comics-downloader/pkg/core.(*Comic).DownloadImages(0xc0000102d0, 0x7fffc433e7cb, 0x1c, 0x0, 0x0, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:259 +0x616
github.com/Girbons/comics-downloader/pkg/core.(*Comic).makeCBRZ(0xc0000102d0, 0x7fffc433e7cb, 0x1c, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:169 +0x93
github.com/Girbons/comics-downloader/pkg/core.(*Comic).MakeComic(0xc0000102d0, 0x7fffc433e7cb, 0x1c, 0xc000010ab0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:286 +0x62
github.com/Girbons/comics-downloader/cmd/app.download(0xc0000161e0, 0x2f, 0x7fffc433e7bf, 0x3, 0x7fffc433e7b4, 0x2, 0x1, 0x85d70c, 0x3, 0x7fffc433e7cb, ...)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/app/downloader.go:83 +0x6e6
github.com/Girbons/comics-downloader/cmd/app.Run(0xc0000161e0, 0x2f, 0x7fffc433e7bf, 0x3, 0x7fffc433e7b4, 0x2, 0x85d70c, 0x3, 0x1, 0x258, ...)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/app/downloader.go:118 +0x1da
main.main()
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/downloader/main.go:44 +0x59b
Sorry guys for the delay, I probably have found a possible fix that I'm going to release soon.
Hi!
I encountered this error when downloading many chapters at once. This particular one got up to 65 chapters, on other 'runs' it would panic somewhere between 30-50 chapters.
Here's the command I used:
.\comics-downloader.exe -url https://mangadex.org/title/22369/jahy-sama-wa-kujikenai -output "T:\Manga\Jahy-sama Won't Be Discouraged!" -format epub
(The output is on a mapped network drive, not sure if relevant, but hey.)
I can still download all of the chapters by restarting the download with the same command, but it is a bother still. Thanks for the nifty scraper though!