duanlvxi8652 2019-01-17 17:00
浏览 300
已采纳

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

  • 写回答

1条回答 默认 最新

  • dongzhi2332 2019-01-17 17:23
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?