Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the software renderer is working #85

Open
baszczewski opened this issue Dec 20, 2024 · 11 comments
Open

Only the software renderer is working #85

baszczewski opened this issue Dec 20, 2024 · 11 comments
Labels
Portability Portability Issues among the machines

Comments

@baszczewski
Copy link

Whenever I try to run an animation with a renderer other than software, I encounter an error:

TypeError: Cannot read properties of undefined (reading 'resize')

image

Confirmed on the following browsers:

  • Chromium 131
@baszczewski
Copy link
Author

Firefox (v133) is also problematic, though in a different situation, and returns a different error:

Uncaught (in promise) TypeError: this._TVG is undefined

image

@tinyjin tinyjin added the bug Something isn't working label Dec 20, 2024
@tinyjin
Copy link
Member

tinyjin commented Dec 20, 2024

CleanShot 2024-12-20 at 20 39 34@2x

@baszczewski
I just tested on my chrome(v131), it works well.

Still not sure, I assume the WASM binary from the network isn't fetched properly. Could you please capture network tab on developer tools as well?

@baszczewski
Copy link
Author

Sure. I prepared a short video to show the debugger's behavior at different stages of the application's execution. I should also mention that I don't have any adblockers or other scripts in the browser that could affect the functionality of the page.

Screencast.from.2024-12-20.15-58-16.mp4

@baszczewski
Copy link
Author

Maybe the error is due to the application always trying to create a WebGPU context, even when I choose WebGL?

@hermet
Copy link
Member

hermet commented Dec 27, 2024

@baszczewski May I ask your OS and graphics device?
@tinyjin Just so you now, firefox (v133) with WebGL/WebGPU doesn't work on my Windows machine as well. Edge/Chrome nicely work.

When using WebGL:
image

@hermet hermet added Portability Portability Issues among the machines and removed bug Something isn't working labels Dec 27, 2024
@tinyjin
Copy link
Member

tinyjin commented Dec 27, 2024

@baszczewski
I think your chromium's gpu feature flag option turned off. Could you go to chrome://gpu/ and check whether webgl/webgpu are available?

CleanShot 2024-12-27 at 14 05 10@2x

@tinyjin
Copy link
Member

tinyjin commented Dec 27, 2024

@hermet Yes, I found firefox/safari browsers don't run WebGPU as a default option. I'll support feature checker so library doesn't break and notice users.

@hermet
Copy link
Member

hermet commented Dec 27, 2024

@hermet Yes, I found firefox/safari browsers don't run WebGPU as a default option. I'll support feature checker so library doesn't break and notice users.

@tinyjin May I ask what is the default option? I can test many WebGPU samples on firefox. More problem is our viewer doesn't work with WebGL as well.

@tinyjin
Copy link
Member

tinyjin commented Dec 27, 2024

WebGPU support used to be on experimental option, users had to enable the option. Now chrome(chromium) gets this default enabled from 113 version.

While chrome does, Firefox/Safari still doesn't support WebGPU as default, which means users should enable by them selves.

I also had same issue that our WebGL2 doesn't work in firefox. Still unknown, I will investigate it : )

@tinyjin
Copy link
Member

tinyjin commented Dec 27, 2024

In thorvg.web lottie-player, WebGPU initialization wrongly called even in WebGL case by logic bug.
As a result, WebGL didn't work when WebGPU feature isn't supported.

Corrected this, thorvg/thorvg.web#87

@baszczewski
Copy link
Author

@hermet

@baszczewski May I ask your OS and graphics device?

Sure. On a daily basis, I work on Fedora 39 (Linux) using up-to-date open-source graphics drivers. My graphics card is a Radeon RX 6600, which, as far as I know, supports the latest versions of OpenGL and Vulkan with these drivers. Unfortunately, I’m traveling at the moment, so I can’t provide more detailed information.

I experienced viewer issues with this setup on various browsers, including Chromium and Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portability Portability Issues among the machines
Projects
None yet
Development

No branches or pull requests

3 participants