Windows 10 64位分割时使用Fitz将PDF转换为图像的错误

I am compiling the following program on OSX and Windows (VM)

package main

import (
    "fmt"

    fitz "github.com/gen2brain/go-fitz"
)

func main() {
    doc, err := fitz.New("ML-XX-XX-XX.000_REV1.pdf")
    if err != nil {
        panic(err)
    }
    fmt.Println("finished")
    defer doc.Close()
}

On OSX This runs absolutely fine, on Windows I get a segmentation fault, and the output message (in command prompt) of exit status 3221225477

Googling around this seems like a buffer overflow, but not completely sure how to debug/deal with it. I thought it was a path issue (e.g C:\\Users\me\pdfs\ML-XX-XX-XX.000_REV1.pdf but seems not as I copied the pdf right next to the code.

I'm using the library for PDF-PNG here

As a user of a 3rd party library you can't handle such a fault gracefully. You also can't really investigate it easily without source code. It may be a problem in their own code or it may be a fault in the underlying MuPDF library.

You could try ensuring you're using the latest release to see if the problem still occurs.

You should open a case with the software provider for them to investigate it.