seriot.ch

About | Projects | Trail

Core Graphics Bug Report

2nd July 2025

Summary

Preview.app crash when opening PDF with certain ICC profile.

What is required to reproduce the issue?

Steps to reproduce

  1. download https://gist.github.com/nst/373748f2bd0e074935eb5fcab8bc185a
  2. rename the downloaded document as x.pdf
  3. open x.pdf with Preview.app

Expected results

Preview.app displays the PDF document, or shows an error message if Preview.app cannot parse the PDF doc properly.

Actual results

Preview.app does crash.

2025-07-02 17:56:26.936054+0200 Preview[33718:1714638] [com.apple.Preview]
    create_icc: CGColorSyncTransformCacheGetRetained failed!
    warning: already in a text object.

2025-07-02 17:56:26.936220+0200 Preview[33718:1714638] [com.apple.Preview]
    CoreGraphics assert(cs != NULL) failed in img_pixels_for_destination:
    colorspace missing
    /AppleInternal/Library/BuildRoots/1c8f7852-1ca9-11f0-b28b-226177e5bb69/Library/Caches/com.apple.xbs/Sources/CoreGraphics/CoreGraphics/Images/
    CGSImage.c:4029: failed assertion `cs != NULL'