-
Notifications
You must be signed in to change notification settings - Fork 935
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
egui fails to render in browser when using Backends::GL #2573
Comments
I had the same issue a month ago. It is caused by the minimum buffer size in WebGL and can be solved in the egui_wgpu_backend by adding padding to a uniform buffer (they need to have a minimum size of 16). I believe the "getSyncParameter" error message is independent of this problem. I have observed it as well in Firefox with egui rendering successfully. |
Still a bug on our side. We shouldn't submit WebGL commands that are failing. |
Side-note: |
Stumbling upon similar issues as the "getSyncParameter" above, I can summarize some findings in regards to this: There was another (erronous) printout in firefox ver <97, which was fixed through https://bugzilla.mozilla.org/show_bug.cgi?id=1733106 I believe the same example posted on bugzilla now (ver 101) produces another output, namely that TIMEOUT_EXPIRED is returned. I do think that the code posted there should be valid, however, since all it does is ask if a fence has been signalled, so the warning printout seems to be overly verbose in this case. webgl test code which should go through roughly the same firefox code paths:
|
What exactly is the status of these warnings?
Were they independent of the core issue here? I'm wondering because #2802 apparently has resolved the aspect of "fails to render" but the warnings themselves still seem to occur. In my case: I'm observing them in a relatively simple example, basically an attempt of turning the msaa-line example into a leptos app. I'm not really sure what to do now, since they seem to be triggered deep down by wgpu. Should I open a separate issue? EDIT: Sorry, I missed this comment: #3064 (comment) So does that mean they are entirely a false positive that should go away without any change? |
Description
I'm trying to get egui running in the browser using egui_wgpu_backend (rather than egui's own WebGL-based browser support).
I've been able to get it running using
Backends::BROWSER_WEBGPU
in Canary and also in Firefox Nightly, which is great. I'm now trying to also get it running usingBackends::GL
, as our project uses the GL backend as a fallback until browser support for WebGPU becomes mainstream.Repro steps
https://github.com/pierscowburn/egui_wgpu_failure_case contains a minimal example. The example can be run with each backend as follows:
Expected behavior
The example should render with a green background when using either backend.
Observed behavior
With the
wgpu::Backends::BROWSER_WEBGPU
backend the example renders correctly with a green background.With the
wgpu::Backends::GL
backend the example renders with a red background (the clear color is set to red),and some WebGL errors are printed to the console.
In Canary the warning is:
In Firefox the warnings are:
Platform
The text was updated successfully, but these errors were encountered: