{"action":"created","issue":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1562","labels_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1562/labels{/name}","comments_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1562/comments","events_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1562/events","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1562","id":63050773,"number":1562,"title":"[V3-RC2] Something goes (horribly) wrong in CocoonJS when you render with webgl","user":{"login":"JiDW","id":581736,"avatar_url":"https://avatars.githubusercontent.com/u/581736?v=3","gravatar_id":"","url":"https://api.github.com/users/JiDW","html_url":"https://github.com/JiDW","followers_url":"https://api.github.com/users/JiDW/followers","following_url":"https://api.github.com/users/JiDW/following{/other_user}","gists_url":"https://api.github.com/users/JiDW/gists{/gist_id}","starred_url":"https://api.github.com/users/JiDW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiDW/subscriptions","organizations_url":"https://api.github.com/users/JiDW/orgs","repos_url":"https://api.github.com/users/JiDW/repos","events_url":"https://api.github.com/users/JiDW/events{/privacy}","received_events_url":"https://api.github.com/users/JiDW/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/labels/CocoonJS","name":"CocoonJS","color":"eb6420"},{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/labels/WebGL","name":"WebGL","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/milestones/5","html_url":"https://github.com/GoodBoyDigital/pixi.js/milestones/v3.x","labels_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/milestones/5/labels","id":924727,"number":5,"title":"v3.x","description":"","creator":{"login":"englercj","id":944497,"avatar_url":"https://avatars.githubusercontent.com/u/944497?v=3","gravatar_id":"","url":"https://api.github.com/users/englercj","html_url":"https://github.com/englercj","followers_url":"https://api.github.com/users/englercj/followers","following_url":"https://api.github.com/users/englercj/following{/other_user}","gists_url":"https://api.github.com/users/englercj/gists{/gist_id}","starred_url":"https://api.github.com/users/englercj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/englercj/subscriptions","organizations_url":"https://api.github.com/users/englercj/orgs","repos_url":"https://api.github.com/users/englercj/repos","events_url":"https://api.github.com/users/englercj/events{/privacy}","received_events_url":"https://api.github.com/users/englercj/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":195,"state":"open","created_at":"2015-01-07T00:13:47Z","updated_at":"2015-04-20T15:52:32Z","due_on":"2015-03-31T07:00:00Z","closed_at":null},"comments":11,"created_at":"2015-03-19T17:43:48Z","updated_at":"2015-04-21T13:56:24Z","closed_at":null,"body":"Hello,\r\n\r\nThere is a strange bug with PIXI v3 and CocoonJS and it is very hard to understand what.\r\nTo understand why our game didnt work with PIXI v3 and CocoonJS, we created an empty canvas/container and tried to add texts, sprites and graphics to it and see what happens.\r\n\r\nUnder some combinations of displayobject, the renderer fails silently and nothing is displayed.\r\n\r\nI will use symbols to represent our test cases : T is for a PIXI.Text, S is for a PIXI.Sprite and G is for a PIXI.Graphics.\r\n\r\nThe order of the combination is revelant.\r\n\r\nT :ok: \r\nS :ok: \r\n\r\nTT :red_circle: \r\nTS :ok:\r\nST :red_circle: \r\nSS :ok: \r\n\r\nTTT :red_circle: \r\nTTS :red_circle: \r\nTSS :ok: \r\nSSS :ok: \r\nSTS :red_circle: \r\nSST :red_circle: \r\nSTT :red_circle: \r\nTST :red_circle: \r\n\r\nSo it appears that you can't have more than one Text, and it can only be in first position in the container.\r\n\r\nBut, because there is magic in this world, everything works again when you add one or more graphics.\r\nIt can be at any position, it fixes every combination we tested.\r\n\r\nDo you have any clue of why this happens ? We really need to debug this as we need to use PIXI v3. We could really use advices or ideas to pinpoint the bug.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/comments/94801773","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1562#issuecomment-94801773","issue_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1562","id":94801773,"user":{"login":"JiDW","id":581736,"avatar_url":"https://avatars.githubusercontent.com/u/581736?v=3","gravatar_id":"","url":"https://api.github.com/users/JiDW","html_url":"https://github.com/JiDW","followers_url":"https://api.github.com/users/JiDW/followers","following_url":"https://api.github.com/users/JiDW/following{/other_user}","gists_url":"https://api.github.com/users/JiDW/gists{/gist_id}","starred_url":"https://api.github.com/users/JiDW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiDW/subscriptions","organizations_url":"https://api.github.com/users/JiDW/orgs","repos_url":"https://api.github.com/users/JiDW/repos","events_url":"https://api.github.com/users/JiDW/events{/privacy}","received_events_url":"https://api.github.com/users/JiDW/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T13:56:24Z","updated_at":"2015-04-21T13:56:24Z","body":"Btw, I'm talking about updateText() because if you draw two sprites, wait 2 seconds, and then draw a text, you will see the two sprites during the two seconds before the drawing of the text, then nothing."}}