Copy link to clipboard
Copied
Hello everyone! I've been struggling for hours and can't figure out why this is happening. For some reason, after checkout_layer_pixel, when a layer is selected in the layer selection parameter, the data equals NULL. I've encountered this issue a long time ago but can't remember how I solved it. I believe it somehow resolved itself spontaneously back then.
static PF_Err ParamsSetup(...)
// static PF_Err ParamsSetup(...)
AEFX_CLR_STRUCT(def);
PF_ADD_LAYER(LAYER_STR, PF_LayerDefault_NONE, GPU_SKELETON_LAYER_Disk_ID);
static PF_Err PreRender(...):
// static PF_Err PreRender(...)
ERR(extraP->cb->checkout_layer(in_data->effect_ref, GPU_SKELETON_INPUT, GPU_SKELETON_INPUT, &req,
in_data->current_time, in_data->time_step, in_data->time_scale, &in_result));
ERR(extraP->cb->checkout_layer(in_data->effect_ref, GPU_SKELETON_LAYER, GPU_SKELETON_LAYER, &reqEnv,
in_data->current_time, in_data->time_step, in_data->time_scale, &env_result));
static PF_Err SmartRender(...):
// static PF_Err SmartRender(...)
PF_EffectWorld *input_worldP = NULL, *output_worldP = NULL, *env_worldP = NULL;
ERR(extraP->cb->checkout_layer_pixels(in_data->effect_ref, GPU_SKELETON_INPUT, &input_worldP));
ERR(extraP->cb->checkout_layer_pixels(in_data->effect_ref, GPU_SKELETON_LAYER, &env_worldP));
ERR(extraP->cb->checkout_output(in_data->effect_ref, &output_worldP));
if (env_worldP != NULL && env_worldP->data == NULL) {
FX_LOG("FATAL!!!! :: Environment layer data is NULL");
}
ERR2(extraP->cb->checkin_layer_pixels(in_data->effect_ref, GPU_SKELETON_INPUT));
ERR2(extraP->cb->checkin_layer_pixels(in_data->effect_ref, GPU_SKELETON_LAYER));
Here I get FATAL!!!! :: Environment layer data is NULL. Has anyone encountered something similar and knows the reason?
Copy link to clipboard
Copied
i vaguely remember that AE returns NULL for layer checkouts when the user interacts with the params or timeline during render...
what's the PF_Err returned when you get a null?