Re: Context leak detected, msgtracer returned -1 ?
Re: Context leak detected, msgtracer returned -1 ?
- Subject: Re: Context leak detected, msgtracer returned -1 ?
- From: Greg Parker <email@hidden>
- Date: Mon, 22 May 2017 14:24:51 -0700
> On May 22, 2017, at 8:52 AM, Jonathan Mitchell <email@hidden> wrote:
>
> Hi
>
> On occasion I see the following in the Xcode console when running my Obj-C app:
>
> Context leak detected, msgtracer returned -1
>
> I have tried setting symbolic breakpoints on NSLog etc but to no avail.
>
> Is the context in question a CGContext?
The context is an IOAccelContext, which itself is deep in the graphics machinery. The log complains once for every 512 objects allocated. Try setting a breakpoint on IOAccelLogContextLeak or fprintf.
You should also file a bug report that this log is too vague.
--
Greg Parker email@hidden <mailto:email@hidden> Runtime Wrangler
_______________________________________________
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