-[QCPlugInPatch _addOutputPortWithClass:forKey:attributes:]: Inconsistent state
I came across this error recently when trying to write a custom patch for QC. If you get this error more than likely you are trying to use a consumer patch with outputs. You can not have outputs with a consumer patch. Change kQCPlugInExecutionModeConsumer to kQCPlugInExecutionModeProcessor.