polpol Posted March 19, 2017 Share Posted March 19, 2017 Sometines I have TypeError: Failed to execute 'attachShader' on 'WebGLRenderingContext': parameter 2 is not of type 'WebGLShader' in pixi.js: 3936 (Ver 4.0.0). This appears few times in a week and I have no idea when and why. Same things can 100 times work and once not. Why this error appears at all and how can I fix or prevent this? Oleksii 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 19, 2017 Share Posted March 19, 2017 Place a breakpoint there? I don't know which features of pixi are you using. Quote Link to comment Share on other sites More sharing options...
polpol Posted March 19, 2017 Author Share Posted March 19, 2017 As I said, pixi.js row 3936. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 19, 2017 Share Posted March 19, 2017 that's not enough, I need more of that stacktrace. Also, try update to latest (4.4.2) https://github.com/pixijs/pixi.js/releases And yes, I remember that we had something like that on 4.0.0 Quote Link to comment Share on other sites More sharing options...
polpol Posted March 20, 2017 Author Share Posted March 20, 2017 Not 100% sure, but always before this there is also ERROR 0:5: '' : array size must be greater than zero. Uploading this error console log for you. Quote Link to comment Share on other sites More sharing options...
xerver Posted March 20, 2017 Share Posted March 20, 2017 This means you tried to compile a shader, it failed, then we tried to use it anyway. The `ERROR 0:5: '' : array size must be greater than zero.` part is the shader compilation error. Fix that and your error should go away. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 20, 2017 Share Posted March 20, 2017 @polpol definitely know that bug. Sprite renderer made a multitexture shader for 0 textures. It was fixed. Pick 4.0.3 or something like that Quote Link to comment Share on other sites More sharing options...
Oleksii Posted March 22, 2017 Share Posted March 22, 2017 Have the same problem. Updating to 4.0.3 didn't help. And I can't update to the latest version because have dependencies on Pixi 4.0.2-3. What to do with this bug? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 22, 2017 Share Posted March 22, 2017 Do you use two or more Renderers? Quote Link to comment Share on other sites More sharing options...
Oleksii Posted March 22, 2017 Share Posted March 22, 2017 I use react-pixi library and work just with components. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 22, 2017 Share Posted March 22, 2017 I dont know how many renderers react-pixi is creating. I need that info, please. How many canvases with webgl are on screen? In SpriteRenderer constructor there's "TICK = 0" line, you can remove it and see if that helps. Another thing: do you use Graphics with rectangles that are parallel to axises? Quote Link to comment Share on other sites More sharing options...
Oleksii Posted March 22, 2017 Share Posted March 22, 2017 I have just one canvas element on the screen. And I've removed this line and it didn't help. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 22, 2017 Share Posted March 22, 2017 Then its not the case. I doubt that someone remembers what really was the issue, so I recommend you to contact pixi-react author or to update it yourself. Quote Link to comment Share on other sites More sharing options...
polpol Posted March 22, 2017 Author Share Posted March 22, 2017 I have also only one renderer. Graphics rectangles are in. Updated PIXI and hope that help, but will inform if same error appears again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.