I get a bus error in jasper on the attached test file in MuPDF. #0 0x00086adf in jp2_decode (in=0x721ee0, optstr=0x0) at jp2_dec.c:395 #1 0x0007d9a6 in jas_image_decode (in=0x721ee0, fmt=-1, optstr=0x0) at jas_image.c:380 #2 0x0005115c in fz_processjpxd (filter=0x721c00, in=0x721f80, out=0x721fc0) at fitz/filt_jpxd.c:103
Created attachment 4883 [details] HSBC.pdf
It may or may not be relevant, but this PDF file is damaged. Although created 9th January 2009, it was modified on 17th February 2009, I would suspect the edit of having caused the damage. Opening the file with Acrobat briefly displays a warning before displaying the page, and when you close the file asks if you want to 'save the changes'. Ghsostcript gives a warning that the xref table is damaged, then 24 warnings about stream lengths being incorrect, and finally 24 errors reading content streams. It does however display all the pages without causing a crash. Possibly MuPDF is using an older version of JasPer, or possibly the problem is caused by the damaged xref/content streams.
Works with OpenJPEG.