gptscript-ai / knowledge

Knowledge for GPTScript
https://gptscript-ai.github.io/knowledge/
Apache License 2.0
29 stars 14 forks source link

fix: use a lock for extracting text from pdf via mupdf to avoid cgo panic (issue #135) #136

Closed iwilltry42 closed 1 month ago

iwilltry42 commented 1 month ago

ref #135

Recovering from the CGO panic is unfortunately not possible. But the locking doesn't introduce any significant latency, so we're good to go.