While creating an instance of GstOmxBaseVfpc2, it frees the existing core and ports to create a new ones, but in that moment there is no certainty that the core objects of that ports exist, so the DEBUG macro can't be used while calling g_omx_port_free because it introduces an unstable behavior while creating and detroying several times the deiscaler element