cheminfo / jsme

19 stars 5 forks source link

Stack overflow when getting SVG in change callback #8

Closed targos closed 7 years ago

targos commented 7 years ago

Given this code:

var jsmeApplet = new JSApplet.JSME("appletContainer", w + "px", h + "px");
jsmeApplet.setAfterStructureModifiedCallback(changeCallback);
function changeCallback(event) {
  var svg = jsmeApplet.getMolecularAreaGraphicsString();
}

A stack overflow happens. I suppose getMolecularAreaGraphicsString triggers the change callback itself.

targos commented 7 years ago

See: https://github.com/NPellet/visualizer/issues/969

brunob54 commented 7 years ago

Bug fixed with JSME 2016-10-09.