Skip to content

Conversation

@almarklein
Copy link
Member

@almarklein almarklein commented Nov 5, 2025

Fixes #763 (very probably)

I checked every case of ffi.cast(), and refactored each instance where we use nextInChain to use the same pattern.

The actual problem in #763 is fixed by letting the function _create_render_pipeline_descriptor() also return a list of objects, so that their lifetime is bound to the scope of the caller instead of the scope of the function.

@almarklein almarklein merged commit 68eb8d8 into main Nov 5, 2025
19 checks passed
@almarklein almarklein deleted the fix-early-mem-release branch November 5, 2025 12:17
@hmaarrfk
Copy link
Contributor

hmaarrfk commented Nov 5, 2025

Thanks. Confirmed this actually does fix things on my machine.

I ran it on the previous commit and it would crash 5/5 with a segfault.

And with this it would pass 5/5

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Nov 5, 2025

its funny, i had pushed my hack, now i'm backporting this, thx.

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Nov 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wgpu-py 0.26.0 crash with imgui?

4 participants