bitmapImageRepByConvertingToColorSpace generates a warning in the console
| Originator: | sam | ||
| Number: | rdar://16697628 | Date Originated: | 23-Apr-2014 11:19 AM |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | Mac OS X 10.9.2 (13C1021) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
Calling bitmapImageRepByConvertingToColorSpace is producing warnings in the console.
Steps to Reproduce:
Calling bitmapImageRepByConvertingToColorSpace like this:
rep = [rep bitmapImageRepByConvertingToColorSpace:[NSColorSpace sRGBColorSpace] renderingIntent:NSColorRenderingIntentDefault];
with a rep of
NSBitmapImageRep 0x6080028bd340 Size={900, 1600} ColorSpace=(not yet loaded) BPS=8 BPP=(not yet loaded) Pixels=900x1600 Alpha=NO Planar=NO Format=(not yet loaded) CurrentBacking=nil (faulting) CGImageSource=0x60800016bac0
produces this warning:
Apr 23 11:10:55 caconym.local Sketch Nightly Debug[19020] <Error>: The function `CGContextErase' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby
contributing to an overall degradation of system performance.
Expected Results:
No warning should be produced (or the method should be deprecated).
Actual Results:
A warning is produced. The method does not appear to have been deprecated (or is not documented as such).
Regression:
Not every call produces the warning - possibly it’s only the first one?
A second call with a rep of:
NSBitmapImageRep 0x618000aa8820 Size={2112, 1756} ColorSpace=(not yet loaded) BPS=8 BPP=(not yet loaded) Pixels=2112x1756 Alpha=YES Planar=NO Format=(not yet loaded) CurrentBacking=nil (faulting) CGImageSource=0x618000163540
produces a variation on the warning:
Apr 23 11:17:53 caconym.local Sketch Nightly Debug[19869] <Error>: The function `CGContextClear' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!