Error #3502: The extension returned an invalid value.


hi,

 

i'm creating ios app own native extension. working fine air 3.1 sdk. today tried update 3.3 sdk , *sometimes* have following error coming extension :

exception fault: error: error #3502: extension returned invalid value.

          @ flash.external::extensioncontext/_call()

          @ flash.external::extensioncontext/call()

 

it doesn't happen everytime in same session, function working well, don't know problem...

i didn't change in code of extension. tried repackage ane file new sdk , still have error.

thank help!

this error comes when invalid freobject returned native function. can please check, if being returned native function every time, , of correct datatype.

there issue pointers, inputs, returning junk values. can debug using nslogs.

 

also, using fre return codes coding practice determining valid outputs. eg. check if object converted freobject successfully. (fre_ok returned when converting returned object c datatype freobject datatype)

 

also, make sure freobject returned part of extension of correct datatype. eg. should not typecasting array int, etc.

 

hope helps,

neha



More discussions in AIR Bugs and Performance Issues


adobe

Comments