Skip to content

SteamAPI_Init() failed, after recent steam update on Arch Linux on m_pSteamHTTP == IntPtr.Zero #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tg-roshiroku opened this issue Mar 19, 2025 · 3 comments

Comments

@tg-roshiroku
Copy link

internal static bool Init() {
    HSteamUser hSteamUser = SteamAPI.GetHSteamUser();
    HSteamPipe hSteamPipe = SteamAPI.GetHSteamPipe();
    ...

// Here it fails
    m_pSteamHTTP = SteamClient.GetISteamHTTP(hSteamUser, hSteamPipe, Constants.STEAMHTTP_INTERFACE_VERSION);
    if (m_pSteamHTTP == IntPtr.Zero) { return false; }
    
    ...
    return true;
}

Tried on windows, it works fine with the same account. When running game in Unity Editor, the Steam does inform me that I'm playing the game.

Steam log:

Game Recording - would start recording game XYZ, but recording for this game is disabled
Adding process 80272 for gameID XYZ

I'm looking for a potential fix / information what is wrong.

@zevnda
Copy link

zevnda commented Mar 19, 2025

Appears to be related to changes in the latest Steam Client Beta. Opting out of Steam Client Beta Participation solves the issue but I fear that breaking changes are coming in the next stable release of the Steam client.

Have also made a thread in the Steam Beta group discussion https://steamcommunity.com/groups/SteamClientBeta/discussions/0/612032374411181176/

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Steamworks.NativeMethods.ISteamClient_GetISteamGameSearch(IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, UTF8StringHandle pchVersion)
   at Steamworks.SteamClient.GetISteamGameSearch(HSteamUser hSteamuser, HSteamPipe hSteamPipe, String pchVersion)
   at Steamworks.CSteamAPIContext.Init()
   at Steamworks.SteamAPI.InitEx(String& OutSteamErrMsg)
   at Steamworks.SteamAPI.Init()
   at SteamUtility.Commands.Idle.Execute(String[] args)
   at SteamUtility.Program.Main(String[] args)

@edunad
Copy link

edunad commented Mar 20, 2025

Had the same issue yesterday (on windows), changing from non-beta client fixed it

@rlabrecque
Copy link
Owner

From @Eourist in #680 (comment)

Apparently this issue was solved by Valve in the latest Steam Client Beta patch: https://store.steampowered.com/news/group/4397053/view/605276452911318951?l=english

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants