question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

syncUniforms stopped working on Chrome Dev channel

See original GitHub issue

Hey everyone! I’m trying to trace down a change in Chrome that causes my global uniforms to no longer work. What I’m doing: I’m adding matrices as 16-entry arrays to renderer.globalUniforms for 3D stuff. In the past this worked just fine, but it broke in Chrome Canary and now also in the Chrome Dev channel.

The error is of the form:

TypeError: Cannot read properties of undefined (reading '17')
    at ShaderSystem2.syncUniforms (ShaderSystem.ts:152:32)
    at ShaderSystem2.syncUniformGroup (ShaderSystem.ts:140:18)
    at eval (eval at generateUniformsSync (generateUniformsSync.ts:269:12), <anonymous>:11:41)

Somehow the code-generation for syncing uniforms is different (?) on Chrome 108 causing the array to be interpreted as a UniformGroup, causing the above error.

I briefly tried the latest 6.x version of pixi and the error happened there as well.

Before embarking on building a repro case, I wanted to see if others have noticed issues with uniforms on the Chrome Dev channel. Also, I’d be grateful for pointers regarding correct use of globalUniforms, as I couldn’t find anything in the docs and I don’t understand the source well enough yet.

Environment

  • pixi.js version: 6.5.1
  • Browser & Version: works in Chrome 105 and 106, also in Firefox, but is broken in Chrome 108
  • OS & Version: Windows 10

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hdemmercommented, Nov 16, 2022

I’m happy to report that my issue has been fixed in Chrome 109 (Canary and Dev channels) and never landed in mainline Chrome releases. This issue can be closed.

0reactions
joel-Yoltedcommented, Nov 4, 2022

Thanks! @SuperSodaSea Ill see if i can apply the same workaround or just fork that filter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switch between stable, beta & dev software - Chromebook Help
Stable channel: This channel is fully tested by the ChromeOS team, and is the best choice to avoid crashes and other problems. ·...
Read more >
Chrome Release Channels - The Chromium Projects
Back up your data! Reporting Dev channel and Canary build problems; Going back to a more stable channel. Chrome supports a number of...
Read more >
Issues: Find and fix problems - Chrome Developers
Use it to find solutions to problems detected by the browser, such as cookie issues and mixed content.
Read more >
Google Chrome Developer Tools
Chrome is a fast, secure, free web browser. Google Chrome for developers. Build for the open web. Download Chrome Dev.
Read more >
Dev Channel Update for Desktop - Chrome Releases
A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found