GoJS Error


We are using GoJS v1.4.5 JavaScript Library for HTML Canvas Diagrams for creating chart. In one of customized print functionality where user prints button and we generate image in new popup window we are getting error from go.JS file.

In FF message comes as<span ="logCounterValue "> “78 [Exception… “Component is not available” nsresult: “0x80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: http://localhost:59859/Framework/JavaScript/OrgChartGOJS/go.js :: Rk.prototype.gl :: line 1236” data: no]”

In IE 10 message is a.context="svg";a=Rj(this,a);return null!==a?a.yl:null}; z.prototype.makeImage=function(a){void 0===a&&(a={});var b=(a.document||document).createElement("img");b.src=this.aJ(a);return b instanceof HTMLImageElement?b:null};z.prototype.makeImageData=z.prototype.aJ=function(a){void 0===a&&(a={});var b=Rj(this,a);return null!==b?b.toDataURL(a.type,a.details):""};

Security Error…

function Rj(a,b){a.vg();if(null===a.gb)return null;“object”!==typeof b&&t.l(“properties argument must be an Object.”);var c=!1,d=b.size||null,e=b.scale||null;void 0!==b.scale&&isNaN

Please let us know if you need more information.

Try using the latest (1.4.10), does it still happen?

Are you using Pictures (images or SVG) in your Diagram?

Yes, we are using SVG images, but that is not giving issue elsewhere, eg: Save Chart with image.

I am afraid we can not upgrade GoJS at this point and need some fix with current version.

So makeImage is working sometimes, but not others?

Are you certain all images have loaded in both cases?

I’m not sure either way here. I may need to see the code in action to debug. Can you put it up somewhere publicly, or send it to us? GoJS (at) nwoods.com<span =“Apple-tab-span” style=“white-space:pre”>