Skip to content
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

Random segmentation faults on x86 macOS #51

Open
kongeor opened this issue Nov 22, 2024 · 1 comment
Open

Random segmentation faults on x86 macOS #51

kongeor opened this issue Nov 22, 2024 · 1 comment

Comments

@kongeor
Copy link

kongeor commented Nov 22, 2024

Hello,

Thank you for your work on this library.

I'm having very similar issues to the ones reported in #44.

I'm using love 11.5, luasteam 3.2.1 and steamworks 1.61 (had the same issues with 1.60 and 1.59).

On windows and linux everything works without issues.

On intel macs (tested on Sonoma and Monterey versions of OSX) my game is crashing randomly.
Initially I thought it was related to Steam input as the game was crashing almost instantly on boot. When Steam input
was disabled the issue was still happening but more sporadically although it didn't seem to be related to some specific API trigger.
I'm using Steam stats and achievements but those are registered fine. I don't make use of Steam.userStats.onUserStatsReceived()

I'll try to get my hands on an arm based mac to test it there and will report back if this issue is appearing there.

Attaching the OSX report in case it can provide something useful:
macrash.txt

Any help would be much appreciated.

@kongeor
Copy link
Author

kongeor commented Nov 23, 2024

After some further poking with this I tried rebuilding the library on my mac, but ran onto this error:

$ make osx
c++ src/*.cpp -Wno-invalid-offsetof -Wall -arch arm64 sdk/redistributable_bin/osx/libsteam_api.dylib ./third-party/lib/libluajit-5.1.a -o luasteam.so.arm64 -shared -fPIC -I./third-party/include/ -std=c++11 -mmacosx-version-min=10.11
src/user_stats.cpp:280:38: error: no member named 'RequestCurrentStats' in 'ISteamUserStats'
  280 |     bool success = SteamUserStats()->RequestCurrentStats();
      |                    ~~~~~~~~~~~~~~~~  ^
1 error generated.

Docs stated that this callback was removed as it was not needed, so I commented out the corresponding luasteam bits. This was built against steamworks 1.61.
I've then bundled my game with the produced luasteam.so for osx and it felt that the error went away. I enabled Steam input but then the game started crashing again. I disabled Steam input again, and I continued experiencing random crashes.

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

1 participant