Looks like there are two things going on here:

1) A bug in ghostscript that fails to correctly convert the PDF files
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1913656

2) A race condition in ocrfeeder itself. The function convertPdfToImages
returns without waiting for the ghostscript command to finish executing.
This sometimes leads to getImagesFromFolder being called before the
images have been converted and placed in the correct location for
ocrfeeder to read them.

I have already done the SRU for the ghostscript bug. The version of
ocrfeeder in jammy correctly calls subprocess.run instead of os.popen,
so that fix should be SRU'd as well.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1890013

Title:
  ocrfeeder PDF import systematically fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocrfeeder/+bug/1890013/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to