• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Unexpected NULL data in PF_EffectWorld after checkout_layer_pixel

Community Beginner ,
Sep 17, 2023 Sep 17, 2023

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?

TOPICS
SDK

Views

128

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2023 Sep 19, 2023

Copy link to clipboard

Copied

LATEST

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines