Skip to content
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

Editor crashes and console prints - ERROR: can't create buffer of size: 216, error -2 after some time when minimized #90009

Open
AdamAvramov opened this issue Mar 29, 2024 · 0 comments

Comments

@AdamAvramov
Copy link

Tested versions

Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org
Vulkan API 1.3.250 - Forward+ - Using Vulkan Device #0: AMD - AMD Radeon RX 5700

System information

Windows 10 - Godot v4.2.1.stable - Vulakn (Forward +) - AMD Radeon RX 5700 - AMD Ryzen 5 3600

Issue description

This bug is going to be unpleasant to pick up, but since it happen in separate projects and versions for me and I couldn't find it in the issues already, I figured it could be useful to know that it is happening.

When my project get big enough Godot slows down a bit, and I notice that sometimes when minimized it completely crashes, leaving only the console with stack similar to this

ERROR: 1 shaders of type SceneForwardClusteredShaderRD were never freed at: ~ShaderRD (servers/rendering/renderer_rd/shader_rd.cpp:841) ERROR: 2 RID allocations of type 'N10RendererRD12LightStorage13LightInstanceE' were leaked at exit. ERROR: 2 RID allocations of type 'N10RendererRD12LightStorage5LightE' were leaked at exit. WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing. at: ~Dependency (servers/rendering/storage/utilities.cpp:56) WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing. at: ~Dependency (servers/rendering/storage/utilities.cpp:56) ERROR: 1 RID allocations of type 'N10RendererRD15MaterialStorage8MaterialE' were leaked at exit. ERROR: 1 RID allocations of type 'N10RendererRD15MaterialStorage6ShaderE' were leaked at exit. ERROR: 2 RID allocations of type 'N17RendererSceneCull8InstanceE' were leaked at exit. ERROR: 2 RID allocations of type 'N17RendererSceneCull6CameraE' were leaked at exit. ERROR: Can't create buffer of size: 216, error -2. at: (drivers/vulkan/rendering_device_vulkan.cpp:1378)

Only crashed without being minimized a handful of times in the past year or so

Steps to reproduce

No idea, this started to happen on v4.1.X on my previous game at some point after lots of scenes and assets were already in place as well as my current one.

Last game used custom shaders heavily so I assumed I just made a mistake there with my own code, but this one uses simple materials so I'm not sure what's up.

Best way to try and replicate is to leave your Editor simply running in the background and after a while (can be an hour or more) it will crash.

Minimal reproduction project (MRP)

Sorry couldn't reproduce it with a project that isn't filled with content, assets, and code

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

No branches or pull requests

2 participants