Ran into an engine crash testing the high level multiplayer api on master. I've been running into some walls around using MultiplayerSpawner/MultiplayerSynchronizer and figured building from source and trying to debug things might be a good place to look. However, with no code changes, just a clean master pull, I'm getting the crash below.
The goal of this repo was to setup a simple multiplayer prototype for a game I'm working on. This little prototype is unfinished and I'm sure has some mistakes with how I'm using the MultiplayerSpawner and MultiplayerSynchronizer, however, I don't think any orientation of these nodes should result in an engine crash. I started the project following the networking model presented in the blogpost from last year: https://godotengine.org/article/multiplayer-in-godot-4-0-scene-replication/ with some tweaks to make the players have direct control over their own movement because of latency issues in running input on the server between players on different continents. I'm planning to make a casual co-op game, the extra layer of security/correctness involved in only running input on the server is not really what I'm looking for.
The project has a "main" scene, which loads a "MainMenu" scene with a host/join button which lead to a level scene "MultiplayerSandbox" when the host/join buttons are pressed. In trying to make the high level multiplayer api work in a way that lets players have authority over their own peers, I moved the "MultiplayerSynchronizer" from the level and into the "main" scene (as seen in this repo: https://github.com/devloglogan/MultiplayerFPSTutorial), this is when the crashing started.
I tried to re-create the issue on 4.2.1.stable and I can't get the crash report, but the popped out play windows just exit right away. Are crashes/backtraces only logged on dev builds?
Tested versions
System information
Godot v4.3.dev (f317cc713) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 (NVIDIA; 31.0.15.4601) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
Ran into an engine crash testing the high level multiplayer api on master. I've been running into some walls around using MultiplayerSpawner/MultiplayerSynchronizer and figured building from source and trying to debug things might be a good place to look. However, with no code changes, just a clean master pull, I'm getting the crash below.
The goal of this repo was to setup a simple multiplayer prototype for a game I'm working on. This little prototype is unfinished and I'm sure has some mistakes with how I'm using the MultiplayerSpawner and MultiplayerSynchronizer, however, I don't think any orientation of these nodes should result in an engine crash. I started the project following the networking model presented in the blogpost from last year: https://godotengine.org/article/multiplayer-in-godot-4-0-scene-replication/ with some tweaks to make the players have direct control over their own movement because of latency issues in running input on the server between players on different continents. I'm planning to make a casual co-op game, the extra layer of security/correctness involved in only running input on the server is not really what I'm looking for.
The project has a "main" scene, which loads a "MainMenu" scene with a host/join button which lead to a level scene "MultiplayerSandbox" when the host/join buttons are pressed. In trying to make the high level multiplayer api work in a way that lets players have authority over their own peers, I moved the "MultiplayerSynchronizer" from the level and into the "main" scene (as seen in this repo: https://github.com/devloglogan/MultiplayerFPSTutorial), this is when the crashing started.
I tried to re-create the issue on 4.2.1.stable and I can't get the crash report, but the popped out play windows just exit right away. Are crashes/backtraces only logged on dev builds?
Backtrace
Steps to reproduce
Minimal reproduction project (MRP)
https://github.com/brennennen/GodotMultiplayerProto2024/tree/multiplayer_api_crash GodotMultiplayerProto2024.zip