SCRIPT5011: Can't execute code from a freed script

We have issue with remove & updateItem method

  1. When we are using below code

var isAlternate=true;
if(isAlternate && $$(“treeId”).exists(‘total’+editedProductId)){

$$(“treeId”).remove(‘total’+editedProductId);
}

flow is coming inside the if block and getting SCRIPT5011: Can’t execute code from a freed script error.

  1. When we are using below code
    var isAlternate=true;
    if(isAlternate && $$(“treeId”).exists(‘total’+editedProductId)){

try{

$$(“treeId”).remove(‘total’+editedProductId);

}catch(e){
alert(e);
}

}

flow is coming inside the if ,catch block & throw SCRIPT5007: Unable to get property ‘length’ of undefined or null reference error

Please suggest us on this ASAP.It will be great help for us.

Hello Maksim,

Even I am also having the same issue and we dont know when this error come and what are the precaution we need to do to handle such kind of issue.

Can any one from the Webix Team, would provide some or atleast few updates on the above concern, we are having a tough time, and we are not able to resolve the issue.

It seems that issue is related to the your code and not component itself.
Please open a support ticket if you need a further help.

Hello Maksim,

If you want I can share the code also, but as of now we do not have any support contract in place, if you could help us, would be appreciated.