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

Memory leak and crash #164

Open
wladi0097 opened this issue Sep 23, 2023 · 1 comment
Open

Memory leak and crash #164

wladi0097 opened this issue Sep 23, 2023 · 1 comment

Comments

@wladi0097
Copy link

This is a very weird bug that is not available when I remove the scatters from the scenes.
This bug is not reproducible on all machines I tested on except one, it is listed under "System".

Reproduction:

  1. Fill two scenes with the default tree scatter
  2. load a new scene with get_tree().change_scene_to_file("res://worlds/test.tscn")
  3. load a second new scene with get_tree().change_scene_to_file("res://worlds/otherTest.tscn")
  4. repeat steps 1-2 until the game crashes. Used memory went up every time by 500 MB.

My Guess:
scatter is never really freed but kept in memory and therefore the parent scene is never really freed and is keeping a "device" entity. The crash happens when Vulkan cannot assign more "devices" than provided by the operating system and therefore dies. I do not think the issue is because of the memory going up every newly loaded scene.

Crash Log:

ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        terminator_CreateDevice: Failed in ICD C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_d3828c822366e497\.\nvoglv64.dll vkCreateDevice call
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTAhNtCeEr,r aHiann.dglde:  1U6p9d3a0t0i8n9g1 9t4e0r8r

System:
OS: Microsoft Windows 10 Pro
GPU: RTX 2080 Ti -> Nvidia driver latest (eg 537.42)
CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz, 3600 Mhz, 8 Core(s), 8 Logical Processor(s)
RAM: 32GB DDR4

@HungryProton
Copy link
Owner

Thanks for the report, I will try to replicate it on my end, hoping it's not a driver issue (I have an AMD graphic card)

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

No branches or pull requests

2 participants