Bug 699887 - source/fitz/colorspace.c:1486: fast_rgb_to_cmyk: Assertion `"This should never happen" == NULL' failed.
Summary: source/fitz/colorspace.c:1486: fast_rgb_to_cmyk: Assertion `"This should neve...
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: fitz (show other bugs)
Version: 1.12.0
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-05 06:50 UTC by fiesh
Modified: 2018-10-05 09:33 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
PDF triggering assertion (1.08 MB, application/pdf)
2018-10-05 08:12 UTC, fiesh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fiesh 2018-10-05 06:50:58 UTC
(This happens with 1.13.0 -- It cannot be selected in the Version checkbox.)

Opening the attached PDF file leads to:

fiesh@ltsp117 /tmp % mupdf a.pdf
mupdf: source/fitz/colorspace.c:1486: fast_rgb_to_cmyk: Assertion `"This should never happen" == NULL' failed.
[1]    8235 abort      mupdf a.pdf

I believe this to be a dup of 699262 but was told to report it separately.
Comment 1 Sebastian Rasmussen 2018-10-05 07:43:41 UTC
Please attach the document with which you reproduce this. Without that file it is really hard to figure out what went wrong.
Comment 2 Sebastian Rasmussen 2018-10-05 07:49:32 UTC
Also, having read the other bug, are you building mupdf with the bundled (and patched) lcms2 or are you building with the system version of lcms2?
Comment 3 fiesh 2018-10-05 08:12:58 UTC
Created attachment 15777 [details]
PDF triggering assertion
Comment 4 fiesh 2018-10-05 08:16:15 UTC
Sorry, accidentally omitted the attachment.  I'm building it with the system lcms2.
Comment 5 Sebastian Rasmussen 2018-10-05 08:49:56 UTC
Thank you! I attempted to reproduce this locally and it renders fine. Do you mind try building mupdf with the bundled lcms2 version? You are likely correct in that this is indeed a duplicate of 699262, but it would be nice to confirm that. Building with the system version of lcms2 is not supported because we patch and require lcms2 to support multithreading.
Comment 6 fiesh 2018-10-05 09:12:20 UTC
Indeed compiling it with the provided lcms fixes the issue!
Comment 7 fiesh 2018-10-05 09:12:58 UTC
So I suppose this should be seen as a gentoo bug?  That it attempts to use the system liblcms, when really it is a different, incompatible library?
Comment 8 Sebastian Rasmussen 2018-10-05 09:17:34 UTC
Alright, then we know that this is not really a bug with mupdf itself. That means I'll close the bug.

Yes, I would say so. You can also see this discussion over at fedora where they concluded as much: https://bugzilla.redhat.com/show_bug.cgi?id=1553915#c7
Comment 9 fiesh 2018-10-05 09:33:26 UTC
Reported as such at https://bugs.gentoo.org/667788