Product: NodeJS + PDFNet/OCRModule
Product Version: 10.4.0
Please give a brief summary of your issue:
When executing the OCRModule on Linux, gives a Segmentation Fault error
Please describe your issue and provide steps to reproduce it:
We are using the @pdftron/pdfnet-node@10.4.0
libraries, and downloaded the lib from https://www.pdftron.com/downloads/OCRModuleLinux.tar.gz?_ga=2.168404713.938843601.1696230339-585641438.1676276555
When executing the Samples for the OCRModule in our server, it gives the following error:
PDFNet is running in demo mode.
Package: base
Package: idp
{
message: 'Exception: \n' +
'\t Message: Error using OCR module Add-On. Child process was terminated by signal: 0XB\n' +
'Page conversion failed.\n' +
'\t Conditional expression: false\n' +
'\t Version : 10.4.0-cae97e1\n' +
'\t Platform : Linux\n' +
'\t Architecture : AMD64\n' +
'\t Filename : OCRModule.cpp\n' +
'\t Function : ProcessPDF\n' +
'\t Linenumber : 70\n',
type: 'PDFWorkerError'
}
If we try executing the OCRModule itself via ./OCRModule
, gives the following:
> ./OCRModule
Segmentation fault
Executing the very same application using the Windows library in my computer, the samples work without any problem, and executing the exe shows the following:
> OCRModule.exe
PDFNet OCR Module 10.4.0-cae97e182c.
This module was not designed to run as a standalone application: its features are available via the Apryse SDK.
Any idea what might be causing the issue on the Linux server?
Maybe lack of permissions? Not compiled for AMD64 architecture?
If it’s of any help, here is the uname --a
command and some info about the hostnamectl
output:
> uname --a
Linux 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux
> hostnamectl
Virtualization: kvm
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-25-amd64
Architecture: x86-64
Thanks!