rlabrecque / Steamworks.NET

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

[Mac OS X ] Steamworks initialization hangs Unity when entering play mode #289

Open flashmandv opened 5 years ago

flashmandv commented 5 years ago

I'm struggling with Unity hanging and eventually crashing when entering Play Mode and trying to initialize Steamworks Unity SDK. I was using Unity SDK 10 and tried to upgrade to SDK 12 but it still hangs/crashes. While it hangs, no new logs are appened in Editor.log but when it crashes 1-2 minutes later, this log is append:

/Users/buildbot/buildslave/steam_rel_client_osx/build/src/common/pipes.cpp (770) : Assertion Failed: fatal stalled cross-thread pipe
/Users/buildbot/buildslave/steam_rel_client_osx/build/src/common/pipes.cpp (770) : Assertion Failed: fatal stalled cross-thread pipe
/Users/buildbot/buildslave/steam_rel_client_osx/build/src/common/pipes.cpp (770) : Fatal assert failed: /Users/buildbot/buildslave/steam_rel_client_osx/build/src/common/pipes.cpp, line 770.  Application exiting.

I'm using Unity 2017.1.2 (and updating Unity is not an option). The problem happens only on Mac OS X I deleted old Steam SDK 10 and imported the new one V 12 from the .unitypackage release file

Any ideas what can I do?

flashmandv commented 5 years ago

The hanging and crashing method is SteamAPI::Init() -> NativeMethods.SteamAPI_Init()

KaneFreeman commented 2 years ago

I am currently having the same issue. @flashmandv did you ever find a solution for this?

KaneFreeman commented 2 years ago

Never mind ... restarting steam fixed the issue. See: https://steamcommunity.com/app/283640/discussions/8/358417008726237144/