memory leak in Blockly.Xml.clearWorkspaceAndLoadFromXml(dom, workspace)

62 views
Skip to first unread message

yonatan maman

unread,
Nov 24, 2020, 4:36:01 PM11/24/20
to blo...@googlegroups.com, David Buchbut
Hi
In our use case, the server loads XMLs for our XML repository transforms them into JS and executes the code.

We have found a memory leak when running Blockly.Xml.clearWorkspaceAndLoadFromXml(dom, workspace)

* We are using Blockly version 3.20200123.1
* The server is headless (of course)

Any suggestion? is there a better way to transform XML into JS on the server side? 
Thanks



/* Yonatan */

yonatan maman

unread,
Nov 24, 2020, 4:50:35 PM11/24/20
to blo...@googlegroups.com, David Buchbut
workspace.dispose() for the rescue ?   https://developers.google.com/blockly/reference/js/Blockly.Workspace#dispose
is that supposed to do the trick? 

/* Yonatan */

yona...@gmail.com

unread,
Nov 25, 2020, 2:56:51 PM11/25/20
to Blockly
update-  workspace.dispose() is king.
Reply all
Reply to author
Forward
0 new messages