Re: Cancelled action
Re: Cancelled action
- Subject: Re: Cancelled action
- From: Peter Litwinowicz <email@hidden>
- Date: Tue, 01 Feb 2011 14:03:15 -0800
- Thread-topic: Cancelled action
Title: Re: Cancelled action
I wrote a simple plugin that demonstrates the problem.
Easily repeatable. Just scrub with the one float slider after you apply the plugin.
I check out 3 different source images... Inbetween the checkout calls I call –userHasCancelled. If that returns YES, then I abort and return NO form the -renderOutput call. Crash. Burn.
It dies in OZProPlug_GenerateFailedRenderTexture.
I should mention that I’m rendering with an FxPlug that does not render in hardware.
I’ll file a bug.
Pete
On 2/1/11 10:17 AM, "Darrin Cardani" <email@hidden> wrote:
On Jan 31, 2011, at 5:56 PM, Peter Litwinowicz wrote:
So I have a plugin that accesses 3 frames with the FxTemporalImageAPI
In both FCP and Motion, if I query fProgressAPI userHasCancelled and get a positive result, I back out of my plugin and return NO as is described in the FxPlug header files. From the header file:
/*!
@method userHasCancelled
@abstract Indicates whether or not the user has cancelled.
@result YES if the user has cancelled. NO otherwise.
@discussion A plug-in should call this method (or the -updateProgress method)
periodically (say, once every tenth of a second) during a slow
render. If the user cancels, the method returns YES, and the
plug-in should then abort the rest of the render and return NO
from its render method.
*/
- (BOOL)userHasCancelled;
However, in Motion this seems to cause Motion to crash. If I return “Yes” from my plug-ins renderOutput call instead, it doesn’t crash, but I’m afraid I’m not doing the right thing.
FYI: this is Motion 4.0.3.
Does this ring any bells?
Well, looking at the source, I don't see anything obvious. The method is very simple. It checks to see if an object is nil, and if not, calls a method on that object to see if the user aborted and returns that value. If the object was nil, it simply returns NO. So that means that the object must be invalid for some reason. If you could file a bug, I'd appreciate it, and please include a crash log if you can.
Thanks,
Darrin
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden