Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exportJSON then importJSON on a Group results in MAXIMUM CALLSTACK EXCEEDED #764

Closed
kaelumania opened this issue Aug 31, 2015 · 2 comments
Closed

Comments

@kaelumania
Copy link

var exported = item.exportJSON()
item = new Group().importJSON(exported)

where item is a loaded SVG

_UPDATE_
When I use the following Snippet:

this.item = paper.project.importJSON(memento.item)

no callstack is exeeded.

@lehni
Copy link
Member

lehni commented Aug 31, 2015

Yeah it's supposed to be called on Project... But I'll investigate the endless recursive loop.

@namwkim
Copy link

namwkim commented Sep 18, 2015

I recently observed the same problem.I am exporting a group and importing the group back (to revert an action or so). In my case, the problem seems to happen when a group has more than one-level hierarchy(e.g. a group has child groups).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants