Hi,
I got this error recently where the animation won't start to due to a stack limit breached. This only occurs on Google Chrome. I have browser tested it on all major browsers such as Safari, IE, Firefox and Edge. Everything seemed fine.
Source code
function init() {
canvas = document.getElementById("verticalSlideshow");
anim_container = document.getElementById("vertical_container");
dom_overlay_container = document.getElementById("vertical_overlay_container");
images = images||{};
ss = ss||{};
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", handleFileLoad);
loader.addEventListener("complete", handleComplete);
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt) {
if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
}
function handleComplete(evt) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
console.log("Image Names: "+ queue.getResult(ssMetadata[i].name));
ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
}
exportRoot = new lib.CombinedExpanded_RainLeafAni(); //ERROR TRIGGERS HERE
From what I gather that it is a recursive function constantly being called and Google Chrome has a limited stack memory compared to other browsers.
I initially developed this in Adobe Animate 2017 version, I updated yesterday and the 2018 exported the same source files with a small tweek. No luck.
Full Error Log
rainleaf.slideshow.init.js?oxjymg:26 Uncaught RangeError: Maximum call stack size exceeded
at handleComplete (rainleaf.slideshow.init.js?oxjymg:26)
at a.b._dispatchEvent (createjs-2015.11.26.min.js?oxjymg:formatted:210)
at a.b.dispatchEvent (createjs-2015.11.26.min.js?oxjymg:formatted:171)
at a.b._sendComplete (createjs-2015.11.26.min.js?oxjymg:formatted:5389)
at a.b._loadNext (createjs-2015.11.26.min.js?oxjymg:formatted:6159)
at a.b._processFinishedLoad (createjs-2015.11.26.min.js?oxjymg:formatted:6263)
at a.b._handleFileComplete (createjs-2015.11.26.min.js?oxjymg:formatted:6212)
at createjs-2015.11.26.min.js?oxjymg:formatted:127
at a.b._dispatchEvent (createjs-2015.11.26.min.js?oxjymg:formatted:210)
at a.b.dispatchEvent (createjs-2015.11.26.min.js?oxjymg:formatted:171)
If anyone could help me with this that would be great.
Thanks