8000 Free textures after submitting queue instead of before with wgpu renderer on Web by Wumpf · Pull Request #7291 · emilk/egui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Free textures after submitting queue instead of before with wgpu renderer on Web #7291

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

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

Wumpf
Copy link
Collaborator
@Wumpf Wumpf commented Jul 2, 2025

Exactly the same fix as

but for the web painter.
Curiously, this only surfaced now and only on WebGL - I believe this might fix

but still need to confirm.

Likely this wasn't an issue before because there were some helpful bugs (;)) in wgpu's WebGL impl before. But I do wonder why this wouldn't also be a problem on WebGPU

8000

@Wumpf Wumpf changed the title make sure to free textures after queue submit on web painter Free textures after submitting queue instead of before with wgpu renderer on Web Jul 2, 2025
@Wumpf Wumpf added web Related to running Egui on the web egui-wgpu labels Jul 2, 2025
Copy link
github-actions bot commented Jul 2, 2025

Preview available at https://egui-pr-preview.github.io/pr/7291-fix-spurious-webgl-crashes
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

Copy link
Collaborator
@lucasmerlin lucasmerlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Since this is the second time we fix this bug, are there any other places that might be affected? e.g. the glow backend?

@Wumpf
Copy link
Collaborator Author
Wumpf commented Jul 2, 2025

Glow doesn't have the equivalent destroy & queue poisoning logic that wgpu/WebGPU has, so I think we covered everything now

@Wumpf Wumpf merged commit 1878874 into main Jul 2, 2025
48 of 49 checks passed
@Wumpf Wumpf deleted the fix-spurious-webgl-crashes branch July 2, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui-wgpu web Related to running Egui on the web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0