{"action":"created","issue":{"url":"https://api.github.com/repos/aframevr/aframe/issues/3779","repository_url":"https://api.github.com/repos/aframevr/aframe","labels_url":"https://api.github.com/repos/aframevr/aframe/issues/3779/labels{/name}","comments_url":"https://api.github.com/repos/aframevr/aframe/issues/3779/comments","events_url":"https://api.github.com/repos/aframevr/aframe/issues/3779/events","html_url":"https://github.com/aframevr/aframe/issues/3779","id":364917451,"node_id":"MDU6SXNzdWUzNjQ5MTc0NTE=","number":3779,"title":"THREE.WebGLRenderer: Context Lost","user":{"login":"florentpeyrard","id":15159900,"node_id":"MDQ6VXNlcjE1MTU5OTAw","avatar_url":"https://avatars0.githubusercontent.com/u/15159900?v=4","gravatar_id":"","url":"https://api.github.com/users/florentpeyrard","html_url":"https://github.com/florentpeyrard","followers_url":"https://api.github.com/users/florentpeyrard/followers","following_url":"https://api.github.com/users/florentpeyrard/following{/other_user}","gists_url":"https://api.github.com/users/florentpeyrard/gists{/gist_id}","starred_url":"https://api.github.com/users/florentpeyrard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florentpeyrard/subscriptions","organizations_url":"https://api.github.com/users/florentpeyrard/orgs","repos_url":"https://api.github.com/users/florentpeyrard/repos","events_url":"https://api.github.com/users/florentpeyrard/events{/privacy}","received_events_url":"https://api.github.com/users/florentpeyrard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-28T14:38:10Z","updated_at":"2019-01-03T18:14:08Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm using A-Frame 0.8.2 with Vue.js 2.5.13 on Chrome 69.\r\n\r\nIn my scene, I have entities using gltf-model component, and an a-sky to have a 360 image as a background. In various cases (like having 10 entities at the same time, destroying/creating entities with v-for, destroying/creating the scene with v-if ), I get this error : \r\n `THREE.WebGLRenderer: Context Lost`\r\n\r\nThe scene is broken, even reloading the tab doesn't help. Only opening a new tab allows recovering.\r\n\r\nI had a look at https://github.com/mrdoob/three.js/issues/11435 and tried to apply this to my case, with no success : \r\n\r\n- listening to the `webglcontextlost` event on the `canvas` property of A-Frame scene object : it is fired properly.\r\n- calling `forceContextRestore` on the `renderer` property of A-Frame scene object. Sometimes the scene object is `undefined`.\r\n- listening to the `webglcontextrestored` event on the `canvas` property of A-Frame scene object : it is never fired.\r\n- calling `reload` on the  A-Frame scene object : I get the `not a function` error.\r\n\r\n\r\nDo you plan to manage this error at A-Frame level ? \r\nAnyway, how can I handle this problem which makes the experience very unstable ? \r\nThanks in advance :)\r\n\r\n- A-Frame Version: 0.8.2\r\n- Platform / Device: Windows 10 on a laptop with a second display (which may trigger the error, as stated in the three.js issue mentionned above)\r\n- Reproducible Code Snippet or URL:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aframevr/aframe/issues/comments/451229392","html_url":"https://github.com/aframevr/aframe/issues/3779#issuecomment-451229392","issue_url":"https://api.github.com/repos/aframevr/aframe/issues/3779","id":451229392,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTIyOTM5Mg==","user":{"login":"florentpeyrard","id":15159900,"node_id":"MDQ6VXNlcjE1MTU5OTAw","avatar_url":"https://avatars0.githubusercontent.com/u/15159900?v=4","gravatar_id":"","url":"https://api.github.com/users/florentpeyrard","html_url":"https://github.com/florentpeyrard","followers_url":"https://api.github.com/users/florentpeyrard/followers","following_url":"https://api.github.com/users/florentpeyrard/following{/other_user}","gists_url":"https://api.github.com/users/florentpeyrard/gists{/gist_id}","starred_url":"https://api.github.com/users/florentpeyrard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florentpeyrard/subscriptions","organizations_url":"https://api.github.com/users/florentpeyrard/orgs","repos_url":"https://api.github.com/users/florentpeyrard/repos","events_url":"https://api.github.com/users/florentpeyrard/events{/privacy}","received_events_url":"https://api.github.com/users/florentpeyrard/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T18:14:08Z","updated_at":"2019-01-03T18:14:08Z","author_association":"NONE","body":"The memory leak due to partial unloading is actually referenced by this open issue : https://github.com/aframevr/aframe/issues/3137\r\n\r\nStill, recovering from lost context sould be addressed here."}}
{"actor":{"display_login":"florentpeyrard"}}