A malloc error usually means you have run out of memory: a memory leak. It's hard to tell without analyzing the code, but you should start by looking at the image created with "createSnapshot..." because it follows the create rule for ownership which means you need to release it.

On Jun 4, 2008, at 7:35 PM, Roger Jones <[EMAIL PROTECTED]> wrote:

I'm trying to render a frame sequence with QC offline but it dies with a memory error after rendering some frames. My output is 720p (1280 x720 30fps) and offline dies after rendering about 600 frames. I've tried a few times and the error seems consistent. Not sure where to start looking for the memory error.
Any siggestions?

roger jones

The console message is

QuartzComposerOffline(5265,0xa0b75074) malloc: *** mmap (size=3690496) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
2008-06-04 19:00:49.258 QuartzComposerOffline[5265:807] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[NSBitmapImageRep _lazilyAllocateData] Insufficient memory to allocate pixel data buffer of 3686400 bytes'
2008-06-04 19:00:49.543 QuartzComposerOffline[5265:807] Stack: (
   2462477776,
   2474829676,
   2462477536,
   2462477592,
   2422693848,
   2419212136,
   2419211892,
   2443916572,
   9800,
   10640,
   9620
)
Trace/BPT trap

and the crash log contains:

Process:         QuartzComposerOffline [5265]
Path: /Developer/Examples/Quartz Composer/Applications/ Offline copy/build/Release/QuartzComposerOffline
Identifier:      QuartzComposerOffline
Version:         ??? (???)
Code Type:       PPC (Native)
Parent Process:  tcsh [5255]

Date/Time:       2008-06-04 19:00:50.457 -0700
OS Version:      Mac OS X 10.5.3 (9D34)
Report Version:  6

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000092c66d78
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[NSBitmapImageRep _lazilyAllocateData] Insufficient memory to allocate pixel data buffer of 3686400 bytes'

Thread 0 Crashed:
0 com.apple.CoreFoundation 0x92c66d78 ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ + 0 1 libobjc.A.dylib 0x9382e768 objc_exception_throw + 68 2 com.apple.CoreFoundation 0x92c66cdc +[NSException raise:format:arguments:] + 136 3 com.apple.CoreFoundation 0x92c66d14 +[NSException raise:format:] + 52 4 com.apple.AppKit 0x90675fd4 -[NSBitmapImageRep _lazilyAllocateData] + 128 5 com.apple.AppKit 0x90323f64 -[NSBitmapImageRep getBitmapDataPlanes:] + 216 6 com.apple.AppKit 0x90323e70 -[NSBitmapImageRep bitmapData] + 28 7 com.apple.QuartzComposer 0x91ab3518 -[QCCGLContext (SnapshotImage) createSnapshotImageOfType:withColorSpace:] + 1892 8 QuartzComposerOffline 0x00002644 -[OfflineRenderer bitmapImageForTime:] + 68
9   QuartzComposerOffline             0x0000298c main + 356
10  QuartzComposerOffline             0x00002590 start + 64

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/tkoelling%40apple.com

This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to