[argyllcms] Re: colprof: segmentation fault (v1.9.2, v1.8.3)

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 20 Feb 2017 23:10:32 +1100

Emanuele Olivetti wrote:

Hi,

Today I found a bug, or at least an unexpected behavior. When running colprof 
and applying
gamut mapping ("-S AdobeRGB1998.icc"), I get "segmentation fault - core 
dumped" after a
few seconds of execution. The problem is the file AdobeRGB1998.icc which, 
according to
iccgamut, has "ICC v4" header, which is unsupported. Such icc file is 
distributed with
colord - I have it installed in /usr/share/color/icc/colord/AdobeRGB1998.icc 
on Ubuntu
16.04.

Hmm. As far as I know, there is no such thing from Adobe, just the V2 profile.

ArgyllCMS provides a replacement for distribution too: ref/ClayRGB1998.icm

Given that the profile is a matrix profile, there is absolutely no point
whatsoever in it being V4, so it's kind of sad that such a thing is
being distributed with Linux, since it will just cause incompatibility
for no reason.

If I use the colord V4 AdobeRGB.icc this I get:

colprof -v -ql -S AdobeRGBV4.icc -cmt -dpp RGB_printer
No total ink limit being used
No black ink limit being used
No of test patches = 1026
Estimating white point
Approximate White point XYZ = 0.84652658 0.88045699 0.85040867, Lab = 95.180179 
-0.454397
-10.35025

Creating optimised per channel curves
Initial White Point XYZ 0.846527 0.880457 0.850409, Lab 95.180179 -0.454397 
-10.350259
About to optimise temporary matrix
 100%
About to optimise a common ord 0 input curve and matrix
 100%
About to optimise a common input curve and matrix
 100%
About to optimise input curves and matrix
 100%
About to optimise output curves and matrix
 100%
About to optimise input curves and matrix again
 100%
About to optimise input, matrix and output together
 100%
About to adjust a and b output curves for white point
About to create grid position input curves
Create final clut from scattered data
*********************************
Doing White point fine tune:
Before fine tune, rel WP = XYZ 0.963526 0.999140 0.824464, Lab 99.966723 
0.026339 -0.021724
After fine tune, rel WP = XYZ 0.964203 1.000000 0.824905, Lab 100.000000 
0.000000 -0.000000
                 abs WP = XYZ 0.84593746 0.87970042 0.84995627, Lab 95.148325 
-0.428181
-10.369347
Creating fast inverse input lookups
White point XYZ = 0.84593746 0.87970042 0.84995627, Lab = 95.148325 -0.428181 
-10.369347
Find black point
Black point XYZ = 0.00543442 0.00625735 0.00549936, Lab = 5.652242 -2.418538 
-0.637459
Done A to B table creation
Setting up B to A table lookup
colprof: Error - Can't open file 'AdobeRGBV4.icc'

so I'm at a loss to know why you got a crash. Was this with an executable from
the ArgyllCMS website, or was it built by someone else ?

Graeme Gill.









Other related posts: