• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage TIFFRepresentation crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage TIFFRepresentation crashes


  • Subject: Re: NSImage TIFFRepresentation crashes
  • From: Markus Spoettl <email@hidden>
  • Date: Sun, 10 Mar 2013 14:31:09 +0100

On 3/10/13 2:07 PM, Mike Abdullah wrote:
OK, I'll look into that, thanks. Since performance is not really a concern
and if the implementation doesn't have any other weak spots that could
cause legitimate trouble, it's a bit academic, though.

The point of the original question was to find out if -TIFFRepresentation
is "allowed" to crash on special images and if there was a way to predict
such a crash or avoid it.

I think what you're seeing is that any method in the frameworks is allowed to
fail weirdly should you ask of it something that exceeds the available
memory.

From the original exception, I wonder if your user has brought in an image
that is a massive black and white scan. Many, many pixels, but each is only
either black or white, so the overall memory usage is reasonable. Converting
to a TIFF might attempt to use more data per pixel, ballooning the file
size.

I have asked for details on the image in question but haven't heard anything yet. We we manage to find out what kind of image is was or get our hands on it, I'll report back here.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSImage TIFFRepresentation crashes (From: Markus Spoettl <email@hidden>)
 >Re: NSImage TIFFRepresentation crashes (From: Mike Abdullah <email@hidden>)
 >Re: NSImage TIFFRepresentation crashes (From: Markus Spoettl <email@hidden>)
 >Re: NSImage TIFFRepresentation crashes (From: Mike Abdullah <email@hidden>)
 >Re: NSImage TIFFRepresentation crashes (From: Markus Spoettl <email@hidden>)
 >Re: NSImage TIFFRepresentation crashes (From: Mike Abdullah <email@hidden>)

  • Prev by Date: NSCollectionView and key view loop
  • Next by Date: Re: How to disable crash reporter temporarily
  • Previous by thread: Re: NSImage TIFFRepresentation crashes
  • Next by thread: Re: NSImage TIFFRepresentation crashes
  • Index(es):
    • Date
    • Thread