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: Trygve Inda <email@hidden>
- Date: Sun, 25 Jan 2015 16:40:21 -0800
- Thread-topic: Crash in libsystem_kernel.dylib`__workq_kernreturn:
> What are you using for memory management then? Manual, GC?
>
> Sent from my iPad
>
> On 25 Jan 2015, at 22:57, 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.
Manual (no GC). I am also using memory-mapped files with mmap and munmap.
Trygve
_______________________________________________
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