gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
369 stars 87 forks source link

panic: runtime error: gobytes: length out of range #70

Closed shockerjue closed 1 year ago

shockerjue commented 1 year ago

panic: runtime error: gobytes: length out of range

goroutine 202 [running]: github.com/gen2brain/go-fitz._Cfunc_GoBytes(...) _cgo_gotypes.go:927 github.com/gen2brain/go-fitz.(Document).ImageDPI.func13(0x0?, {0x2afe590?, 0x0?, 0x0?, 0x40855555?}) /opt/go/pkg/mod/github.com/gen2brain/go-fitz@v1.20.2/fitz.go:226 +0x4f github.com/gen2brain/go-fitz.(Document).ImageDPI(0xc00085a000, 0x0, 0x4072c00000000000) /opt/go/pkg/mod/github.com/gen2brain/go-fitz@v1.20.2/fitz.go:226 +0x412 github.com/gen2brain/go-fitz.(*Document).Image(...) /opt/go/pkg/mod/github.com/gen2brain/go-fitz@v1.20.2/fitz.go:177 crontask/reading.Reading.pdf({}, {0x17bdf97, 0x2}, {0xc000464fc0, 0x56})