Following minified code from a project using ErupteD Vulkan bindings crashes to "core.exception.OutOfMemoryError@src/core/exception.d(700): Memory allocation failed" when compiled with -profile=gc:
struct VkInstance_handle;
alias VkInstance = VkInstance_handle*;
void main()
{
VkInstance[] instances = new VkInstance[1];
}
This can be worked around by changing the opaque handle declaration to:
struct VkInstance_handle {};
The related issue in ErupteD GitHub: https://github.com/ParticlePeter/ErupteD/issues/11
Comment #1 by robert.schadek — 2024-12-13T19:00:22Z