Re: Crash in libsystem_kernel.dylib`__workq_kernreturn:
Re: Crash in libsystem_kernel.dylib`__workq_kernreturn:
- Subject: Re: Crash in libsystem_kernel.dylib`__workq_kernreturn:
- From: "Stephen J. Butler" <email@hidden>
- Date: Sun, 25 Jan 2015 19:05:15 -0600
I agree that it sounds like a memory management bug. Especially since
you aren't using ARC. Try turning on NSZombies and see if it crashes
at a more helpful point.
http://michalstawarz.pl/2014/02/22/debug-exc_bad_access-nszombie-xcode-5/
On Sun, Jan 25, 2015 at 4:57 PM, Trygve Inda <email@hidden> wrote:
>> On Jan 25, 2015, at 12:33 , Trygve Inda <email@hidden> wrote:
>>>
>>> It does seem like if I remove a call to
>>>
>>> NSData* imageData = [[self myImageRep]
>>> representationUsingType:NSJPEGFileType properties:imageProperties];
>>>
>>> It no longer crashes, but the crash happens 3-5 seconds after this call when
>>> my program should be idle.
>>
>> It sounds like a memory management bug. What’s the context of the above line
>> of code? Is it in a block? Are you using ARC?
>>
>>
>
> No ARC and not in a block. I am trying to make a jpg file from a
> NSBitmapImageRep which works fine, but sometimes I get a crash... Even
> though the file is correctly produced.
>
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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