Re: FxTemporalImageAPI from background thread
Re: FxTemporalImageAPI from background thread
- Subject: Re: FxTemporalImageAPI from background thread
- From: Darrin Cardani <email@hidden>
- Date: Mon, 21 Sep 2015 08:54:41 -0700
Roman,
Can you provide any more detail on what you’re doing? The error you describe doesn’t immediately ring any bells. (My guess would be that some memory is getting corrupted, and OpenGL is just telling you that something’s not right.)
In general, we don’t support you doing any work that involves calling the API from another thread you created unless the API says it does. The problem is that you may call into the app, and the app may call back into your plug-in or some other plug-in, and that can cause a deadlock with other stuff the application is doing. I would expect (though haven’t tested) simple things like retrieving parameter values to work properly. (Note that I’m not saying it’s supported, just that I think it will work.) I wouldn’t expect setting them to work. (That must be done on the main UI thread in all cases.)
Darrin
> On Sep 18, 2015, at 4:31 PM, Roman <email@hidden> wrote:
>
> Hi guys,
>
> Is FxTemporalImageAPI::getInputBitmap supposed to work from another thread? I’m developing a plugin that needs preprocessing of entire clip, so I’m running a loop in a background thread that fetches all the frames using this API. This works fine. But only once per effect life time. E.g. if I need recalculation and run the loop again in another background thread (the first one is already finished) then this function crashes during a call to glGetInteger.
>
> If I delete the effect from a clip and re-apply, then I again can run the loop, but again just one time for the life time of the effect.
>
> Thanks,
> Roman
> _______________________________________________
> 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
_______________________________________________
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