Currently I am making a plugin for rapidweaver but I get this error when adding too many images to the Plugin:
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
Dec 29 02:01:45 tommy-pavliceks-computer /Applications/RapidWeaver.app/Contents/MacOS/RapidWeaver: img_data_lock: Cannot allocate memory
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
I am guessing not enough memory is available to preform the task. What I am asking is how can I limit it, to do all the images no matter the size, and also show a loading bar instead of having the spinning curser. I am using a NSImage Lock and Unlock.
Basically is this:
newImage = [[NSImage alloc] initWithSize:targetSize];
[newImage lockFocus];
NSRect thumbnailRect;
thumbnailRect.origin = thumbnailPoint;
thumbnailRect.size.width = scaledWidth;
thumbnailRect.size.height = scaledHeight;
[sourceImage drawInRect: thumbnailRect
fromRect: NSZeroRect
operation: NSCompositeSourceOver
fraction: 1.0];
[newImage unlockFocus];
With a few extra things. Also faster ways? Anything is appreciated.
Chris
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
Dec 29 02:01:45 tommy-pavliceks-computer /Applications/RapidWeaver.app/Contents/MacOS/RapidWeaver: img_data_lock: Cannot allocate memory
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
RapidWeaver(19697,0xa000d000) malloc: *** vm_allocate(size=18051072) failed (error code=3)
RapidWeaver(19697,0xa000d000) malloc: *** error: can't allocate region
RapidWeaver(19697,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
I am guessing not enough memory is available to preform the task. What I am asking is how can I limit it, to do all the images no matter the size, and also show a loading bar instead of having the spinning curser. I am using a NSImage Lock and Unlock.
Basically is this:
newImage = [[NSImage alloc] initWithSize:targetSize];
[newImage lockFocus];
NSRect thumbnailRect;
thumbnailRect.origin = thumbnailPoint;
thumbnailRect.size.width = scaledWidth;
thumbnailRect.size.height = scaledHeight;
[sourceImage drawInRect: thumbnailRect
fromRect: NSZeroRect
operation: NSCompositeSourceOver
fraction: 1.0];
[newImage unlockFocus];
With a few extra things. Also faster ways? Anything is appreciated.
Chris