Repository: godot
Issue: [4.3 Crash] While browsing remote tab
Labels: bug,topic:editor,needs testing,crash

### Tested versions

v4.3.stable.official [77dcf97d8]

### System information

Debian 11 - v4.3.stable.official [77dcf97d8] - Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org OpenGL API OpenGL ES 3.0 Mesa 20.3.5 - Compatibility - Using Device: Intel Open Source Technology Center - Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)

### Issue description

As stated in title I have crash with several errors while browsing the remote tab. It happen now in 4.3. I think its a regression because I don't have these errors in 4.2.x

### Steps to reproduce

My project is quite complex. So I just browse my remote tree while running my project. These are errors in Output tab before crash:
```
 core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  Malformed packet received, not an Array.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:134 - Condition "read != 4 || err != OK || size > (uint32_t)in_buf.size()" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:121 - Condition "(header & 0xFF) >= Variant::VARIANT_MAX" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/io/marshalls.cpp:117 - Condition "len < 4" is true. Returning: ERR_INVALID_DATA
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
  core/debugger/remote_debugger_peer.cpp:145 - Condition "read != in_pos || err != OK" is true. Continuing.
```

### Minimal reproduction project (MRP)

I don't have it right now because my project is quite complex. Also I'm not sure if I can extract the right section to make a MRP. Let me know if you have some guideline that allow me to focus in a specified section of my code.
Thanks