code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

Received Signal SIGSEGV, Segmentation fault #128

Closed k0T0z closed 1 year ago

k0T0z commented 1 year ago
Thread 1 "MainThrd" received signal SIGSEGV, Segmentation fault.
0x00007ffe35878be5 in steamclient64!Steam_TerminateGameConnection ()
   from C:\Program Files (x86)\Steam\steamclient64.dll

is there anything that should be done before calling SteamUser()->GetSteamID()? I initialized the Steamworks API and I already logged into my account, but SteamUser()->GetSteamID() still crashes and gives me the above error!!

Another question: does this related to authentication? sending tickets and open sessions? if it's not, in what situation do I need to use the authentication stuff?

I really appreciate the help, thanks

k0T0z commented 1 year ago

The problem is related to ABI compatibility, as I am using GCC instead of MSVC, and btw it's working using MSVC without issues because Steamworks SDK is compiled using MSVC on Windows. Using Linux solves this problem.