gfx-rs / metal-rs

Rust bindings for Metal
Apache License 2.0
567 stars 112 forks source link

Dropping InstanceAccelerationStructureDescriptor causes a segfault in autoreleasepool #324

Closed K0bin closed 3 months ago

K0bin commented 3 months ago
autoreleasepool(|| { let _ = metal::InstanceAccelerationStructureDescriptor::descriptor(); });

crashes with a segfault.

Repro.zip

grovesNL commented 3 months ago

I believe this was fixed with #320, could you retry using master?

K0bin commented 3 months ago

I worked around it locally by manually sending retain before it goes out of scope. So that merged PR should definitely fix it.