In version 2.1.0 the attached PDF, generated by RICOH scanners, generates a segmentation fault in the close method. In attachement you find also a program duplicating the problem.
Hi Franco,
I was able to reproduce the BUG. I have a development release in progress and it still crashes on that pdf.
That pdf is corrupted, the core-mupdf issues a warning (see below), and I suppose the problem is there (i.e. core-mupdf does not properly deallocates the memory ...)
Have you tried to open/close that pdf with the original mupdf tools ?
Next week I will try to debug ..
The version we tested was 2.1.1. I apologize.
Hi Franco,
I was able to reproduce the BUG. I have a development release in progress and it still crashes on that pdf.
That pdf is corrupted, the core-mupdf issues a warning (see below), and I suppose the problem is there (i.e. core-mupdf does not properly deallocates the memory ...)
Have you tried to open/close that pdf with the original mupdf tools ?
Next week I will try to debug ..
package require tclMuPDF
mupdf::printwarnings true ;# --- enable warnings
set pdfObj [mupdf::open PROBLEM.pdf]
# --> MuPDF Warning:: broken xref subsection, proceeding anyway.
$pdfObj close ;# --> crash
BUG FIXED.
See the new release 2.2
New binaries at https://sourceforge.net/projects/irrational-numbers/files/tclMuPDF-2.x/
Hi Aldo. We will test the new deployment ASAP. Thanks a lot. Ciao. Franco.
It works perfectly. Thank You.