rlabrecque / Steamworks.NET

Steamworks wrapper for Unity / C#
http://steamworks.github.io
MIT License
2.84k stars 371 forks source link

Editor hangs every few seconds after initializing Steamworks.NET #228

Open sebastianfreitag opened 6 years ago

sebastianfreitag commented 6 years ago

When entering Play Mode in the Unity Editor, and initializing Steamworks there, and ending the game, the Unity Editor starts hanging every few seconds. So, every few seconds, the GUI does not react at all for ~2 seconds. It does not happen in Play Mode (only in the Editor), and only happens after Steamworks is first initialized (in Play Mode). Restarting Unity fixes the issue until Steamworks is initialized again. Note that it also doesn't happen if Steam is not started and therefore Steamworks is never correctly initialized.

This makes it almost impossible to work with Unity.

For me, the bug has only existed for a week or so (maybe May 6th?), and might have appeared together with a Steam update, but I'm not sure.

I can reproduce the bug every time without fail, so it's very deterministic.

Unity Version is 2017.3.0 Steamworks SDK 1.42 latest master branch of Steamworks.NET (also happens on the last Release version)

rlabrecque commented 6 years ago

Did you ever figure out what was causing this?

spajus commented 6 years ago

It sounds like it could be a network issue, for example a dead DNS server in network settings, which hangs every time a host is looked up, until it times out and moves to the next DNS server. Just guessing. Should be easy to reproduce by adding a non working IP address to the top of DNS list, and seeing if it causes the hang.