godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91k stars 21.17k forks source link

Multiple editors open crash on debugging scene #66540

Open dhbahr opened 2 years ago

dhbahr commented 2 years ago

Godot version

Godot Engine v4.0.beta1.official (20d6672846b3fd1537603ac080116dcc914c10e3)

System information

Arch Linux - Vulkan API 1.2.0 - Using Vulkan Device # 1: NVIDIA - NVIDIA GeForce MX450

Issue description

I'm working on a Authoritative Multiplayer server implementation, to that end I currently have 4 projects:

When running the Authentication Server and Gateway, and trying to run the Game client, debugging crashes with the following report:

ERROR: Can't create buffer of size: 24, error -2.
   at: _buffer_allocate (drivers/vulkan/rendering_device_vulkan.cpp:1348)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta1.official (20d6672846b3fd1537603ac080116dcc914c10e3)
Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues
[1] /usr/lib/libc.so.6(+0x38a00) [0x7efce8b9ea00] (??:0)
[2] /usr/lib/libnvidia-glcore.so.515.76(+0x12528f2) [0x7efcd18528f2] (??:0)
[3] /usr/bin/godot4() [0x18a698f] (??:0)
[4] /usr/bin/godot4() [0x18a731d] (??:0)
[5] /usr/bin/godot4() [0x416240d] (??:0)
[6] /usr/bin/godot4() [0x3b814a4] (??:0)
[7] /usr/bin/godot4() [0xaab6bc] (??:0)
[8] /usr/bin/godot4() [0x3aa83d0] (??:0)
[9] /usr/bin/godot4() [0xabd250] (??:0)
[10] /usr/bin/godot4() [0xac3e08] (??:0)
[11] /usr/bin/godot4() [0xa7d53c] (??:0)
[12] /usr/lib/libc.so.6(+0x23290) [0x7efce8b89290] (??:0)
[13] /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7efce8b8934a] (??:0)
[14] /usr/bin/godot4() [0xa88121] (??:0)
-- END OF BACKTRACE --
================================================================

Note 1: if I run the authentication and gateway directly from the directory without launching the editor, the client editor can actually debug.

Note 2: I can confirm this happens with whichever combination of open editors, not exclusively the ones mentioned before.

Steps to reproduce

Minimal reproduction project

No response

Calinou commented 2 years ago

You may be running out of VRAM since 3 editor instances are opened at the same time on a low-end GPU, and Godot isn't managing to fall back to system memory somehow. Use watch -n1 nvidia-smi in a terminal to monitor VRAM usage as you're opening more editor instances.

dhbahr commented 2 years ago

Not being very knowledgeable on this stuff I'd say you are likely on spot. The third editor already uses half the memory as the first two, running the scene doesn't show up at all (see screenshot).

Screenshot from 2022-09-29 19-46-14