Try wrapping your -compositionWithFile: message in a @try/@catch block. An NSException (with -name == NSInternalInconsistencyException) is thrown when there's trouble loading the composition.

Can you post sample code/sample composition to generate this? Because I'm not seeing it.

Attachment: multiface rotating cube.qtz
Description: application/quartzcomposer

(modified composition to use a "QCImpossiblePatch" to trigger a non- existant patch problem)

QuartzCrystal source snippet:
        QCComposition *composition = nil;
        @try{
composition = [QCComposition compositionWithFile: [settings compositionFile]];
        }
        @catch(NSException *e){NSLog(@"exception: %@", e);}
        @catch(...){NSLog(@"exception on loading");}
        if(!composition)
        {
NSLog(@"QuartzCrystalCLI: Failed to load composition [...@]", [settings compositionFile]); [[settings appController] indicateError: @"Failed to load the Composition"];
                return -1;
        }

output on both 10.5 and 10.6:
1/29/10 10:49:25 AM QuartzCrystalCLI[75393] *** <QCNodeManager | namespace = "com.apple.QuartzComposer" | 678 nodes>: Patch with name "QCImpossiblePatch" is missing 1/29/10 10:49:25 AM QuartzCrystalCLI[75393] *** Message from <QCPatch = 0x00244590 "(null)">:
Cannot create node of class "QCImpossiblePatch" and identifier "(null)"
1/29/10 10:49:25 AM QuartzCrystalCLI[75393] *** State restoration failed on <QCPatch = 0x00244590 "(null)">

(no "exception on loading" or "exception: [blah blah]" message is emitted -- only QC-generated log info)

--
[ christopher wright ]
[email protected]
http://kineme.net/

 _______________________________________________
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