godot: Can't start project from editor

Godot version: 3.1 ef7b38486

OS/device including version: Windows 10

Issue description: After clicking “play” project does not start.

Console shows:

Running: D:\Projects\godot\godot-src\bin\godot.windows.opt.tools.64.exe --path D:/Projects/godot-issues/interia-2d-problem --remote-debug 127.0.0.1:6007 --allow_focus_steal_pid 9932 --position 448,240
ERROR: NetSocketPosix::poll: Condition ' ret < 0 ' is true. returned: FAILED
   At: drivers\unix\net_socket_posix.cpp:356
ERROR: ScriptDebuggerRemote::connect_to_host: Remote Debugger: Unable to connect. Status: 3
   At: core\script_debugger_remote.cpp:92
ERROR: NetSocketPosix::_get_socket_error: Socket error: 10054
   At: drivers\unix\net_socket_posix.cpp:191

Steps to reproduce: Start any project (including new empty project).

Minimal reproduction project: n/a

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 24 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Seems like WSAPoll is broken by design. MS wrote (long time ago) we should all move to that: https://blogs.msdn.microsoft.com/wndp/2006/10/26/wsapoll-a-new-winsock-api-to-simplify-porting-poll-applications-to-winsock/

But they then apparently decided to keep the broken implementation they have: https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/

I’ll likely have to change the code to use select instead.

@Faless confirming it works as intended.

Well, to be honest, I think we can wait few hours. The issue is here, if one wants to use master can revert that commit in their branch. master can be broken for short periods of time. Of course, if the investigation take 2 days, then a quick fix can be an option. But in this case I think I can wrap my head around this in few hours.

Well, I’m the OP 😃 I did not look in-depth what is going on, but removing the checks fixes the issue for me. Mind you - I’m just bisecting your code without analyzing much. If I knew why that is happening, I would submit a PR.