{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7408","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7408/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7408/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7408/events","html_url":"https://github.com/mrdoob/three.js/issues/7408","id":112877712,"number":7408,"title":"userData object cause toJSON throw 'max call stack size exceeded' exception","user":{"login":"jin-yc10","id":4022531,"avatar_url":"https://avatars.githubusercontent.com/u/4022531?v=3","gravatar_id":"","url":"https://api.github.com/users/jin-yc10","html_url":"https://github.com/jin-yc10","followers_url":"https://api.github.com/users/jin-yc10/followers","following_url":"https://api.github.com/users/jin-yc10/following{/other_user}","gists_url":"https://api.github.com/users/jin-yc10/gists{/gist_id}","starred_url":"https://api.github.com/users/jin-yc10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jin-yc10/subscriptions","organizations_url":"https://api.github.com/users/jin-yc10/orgs","repos_url":"https://api.github.com/users/jin-yc10/repos","events_url":"https://api.github.com/users/jin-yc10/events{/privacy}","received_events_url":"https://api.github.com/users/jin-yc10/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Help%20(please%20use%20Stackoverflow)","name":"Help (please use Stackoverflow)","color":"cfcfcf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-22T19:50:25Z","updated_at":"2015-10-22T20:00:24Z","closed_at":"2015-10-22T20:00:24Z","body":"In r72 and r73, if we set userData.object to the parent object, this will cause a recursive toJSON call and will finally lead to an exception. Maybe we should do an extra check?"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/150339460","html_url":"https://github.com/mrdoob/three.js/issues/7408#issuecomment-150339460","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/7408","id":150339460,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T20:00:24Z","updated_at":"2015-10-22T20:00:24Z","body":"You just shouldn't set `userData.object` to the parent object. If anything, you could do `userData.object = parent.uuid` instead."}}