• 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: Is CGImage... thread-safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is CGImage... thread-safe?


  • Subject: Re: Is CGImage... thread-safe?
  • From: Rob Petrovec via Cocoa-dev <email@hidden>
  • Date: Wed, 27 May 2020 13:13:50 -0600


> On May 27, 2020, at 1:08 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
>>>
>>> I've just had a crash in
>>> CGImageSourceCreateThumbnailAtIndex( new_image, 0, imageOpts );
>>
>> We went through this quite a while ago in private emails.
>> CGImageSourceCreateThumbnailAtIndex is fine to use from any thread. Are you
>> sure the image source even has an image at index 0? Not all do. What's the
>> crashed stack look like?
>
> I can't recall/reproduce, but it was definitely *inside*
> CGImageSourceCreateThumbnailAtIndex().
>
> If there is no image a tinder 0, shouldn't it just return NULL gracefully?
        There can be valid arguments going either way.  If you think it’s
acting inappropriately I’d suggest filing a bug with Apple.

—Rob


_______________________________________________

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: 
 >Re: Is CGImage... thread-safe? (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Is CGImage... thread-safe?
  • Next by Date: Re: Localization under Catalina
  • Previous by thread: Re: Is CGImage... thread-safe?
  • Next by thread: Re: Is CGImage... thread-safe?
  • Index(es):
    • Date
    • Thread