garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

Garry's Mod x86_64 beta is crashing and looking for .dylibs in /usr/lib?

Open StupidRepo opened this issue 4 years ago • 109 comments

Details

Here is a little snippet when I open the binary in terminal:

 ##### swap interval = 0     swap limit = 1 #####
Could not load program cache file glbaseshaders_osx.cfg
Could not find base GL shader cache file
Could not load program cache file glshaders.cfg
Could not find user GL shader cache file
Precache: Took 0 ms, Vertex 0, Pixel 0
 failed to dlopen GarrysMod_Signed.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/client.dylib error=dlopen(GarrysMod_Signed.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/client.dylib, 0x0002): tried: 'GarrysMod_Signed.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/client.dylib' (no such file), '/usr/local/lib/client.dylib' (no such file), '/usr/lib/client.dylib' (no such file)
 failed to dlopen GarrysMod.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/client.dylib error=dlopen(GarrysMod.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/client.dylib, 0x0002): tried: 'GarrysMod.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/client.dylib' (no such file), '/usr/local/lib/client.dylib' (no such file), '/usr/lib/client.dylib' (no such file)
 failed to dlopen GarrysMod_Signed.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/server.dylib error=dlopen(GarrysMod_Signed.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/server.dylib, 0x0002): tried: 'GarrysMod_Signed.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/server.dylib' (no such file), '/usr/local/lib/server.dylib' (no such file), '/usr/lib/server.dylib' (no such file)
 failed to dlopen GarrysMod.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/server.dylib error=dlopen(GarrysMod.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/server.dylib, 0x0002): tried: 'GarrysMod.app/Contents/MacOS//Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/server.dylib' (no such file), '/usr/local/lib/server.dylib' (no such file), '/usr/lib/server.dylib' (no such file)
ConVarRef mat_dxlevel doesn't point to an existing ConVar
Game.dylib loaded for "Garry's Mod"
 failed to dlopen /Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/soundemittersystem.dylib error=dlopen(/Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/soundemittersystem.dylib, 0x0002): tried: '/Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/soundemittersystem.dylib' (no such file), '/usr/local/lib/soundemittersystem.dylib' (no such file), '/usr/lib/soundemittersystem.dylib' (no such file)
 failed to dlopen /Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/scenefilecache.dylib error=dlopen(/Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/scenefilecache.dylib, 0x0002): tried: '/Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/scenefilecache.dylib' (no such file), '/usr/local/lib/scenefilecache.dylib' (no such file), '/usr/lib/scenefilecache.dylib' (no such file)
 failed to dlopen /Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/engine.dylib error=dlopen(/Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/engine.dylib, 0x0002): tried: '/Users/bradleebarnes/Library/Application Support/Steam/steamapps/common/GarrysMod/bin/engine.dylib' (no such file), '/usr/local/lib/engine.dylib' (no such file), '/usr/lib/engine.dylib' (no such file)
** Unknown exception behavior: 0

It just freezes after that, please help!

Steps to reproduce

Download Garry's Mod with the x86_64 beta Open it, wait for it to freeze. Open ~/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/gmod, it opens in Terminal. Wait for it to freeze and check the Terminal, it should have that error.

NOTE

I'm too lazy to put anything else in this post so if you need more details, tell me.

StupidRepo avatar Jul 06 '21 14:07 StupidRepo

Are you on MacOS 12 beta? I think it has some issues right now with the game.

robotboy655 avatar Jul 06 '21 14:07 robotboy655

Are you on MacOS 12 beta? I think it has some issues right now with the game.

This is what I feared the most. Y... Yes...

StupidRepo avatar Jul 06 '21 15:07 StupidRepo

I can't even downgrade to Big Sur. I swear I was on macOS 12 Dev Beta 1 with my friend and it worked but idk. I can't remember. Oh wait that could have been macOS Big Sur. Again, I can't downgrade because I have no external hard drives, etc. I know I can use curl to download a macOS Big Sur installer from the apple servers but let me check.

StupidRepo avatar Jul 06 '21 15:07 StupidRepo

Wait holy crap if I visit the App Store and type in Big Sur, and click Get on "macOS Big Sur", it opens System Preferences and I get this option: Screenshot 2021-07-06 at 16 04 38 Wait after all this time... no way it will let me though... Surely not... right?

StupidRepo avatar Jul 06 '21 15:07 StupidRepo

Screenshot 2021-07-06 at 16 06 00 Well, after all these weeks of having macOS 12, I have finally defeated it! Hahaha! I am so hyped for this to downgrade. I've tried for ages. So many apps... BROKEN.

StupidRepo avatar Jul 06 '21 15:07 StupidRepo

oh it says "This drive can't be downgraded"... WHY!!!!???!?!

StupidRepo avatar Jul 06 '21 17:07 StupidRepo

rip apple user

thegrb93 avatar Jul 06 '21 18:07 thegrb93

Apparently I have to wait for a full update. Just erased my hard drive and reinstalled macOS 12 since Big Sur didn't show. On the phone to apple support for ages :(

StupidRepo avatar Jul 07 '21 11:07 StupidRepo

@StupidRepo Have you been able to work around this issue?

Jake3231 avatar Oct 07 '21 03:10 Jake3231

Just to update, this issue reproduces on the macOS Monterey release candidate, which is very likely to be the build that's released on Monday Oct 25 (as announced by Apple).

Jake3231 avatar Oct 23 '21 03:10 Jake3231

Confirmed, this issue is still present on production release of macOS Monterey 12.0.

rubiksw avatar Oct 26 '21 16:10 rubiksw

Is there any known workaround for this? I played around a bit with the launch script and got nowhere at all. (Can't downgrade, as I'm on the newly released M1 MBP which only runs Monterey)

Doridian avatar Oct 28 '21 01:10 Doridian

M1 macs will not be supported regardless of this issue.

robotboy655 avatar Oct 28 '21 17:10 robotboy655

M1 macs will not be supported regardless of this issue.

They don't have to be directly supported. Rosetta (2) can run x86-64 binaries just fine.

Doridian avatar Oct 28 '21 17:10 Doridian

While some Intel apps seem to have broken on M1's Rosetta 2, this issue persists on both M1 and Intel, macOS 12 being the culprit.

mcthomas avatar Oct 28 '21 18:10 mcthomas

While some Intel apps seem to have broken on M1's Rosetta 2, this issue persists on both M1 and Intel, macOS 12 being the culprit.

According to the crash logs, it looks like there may be some dyld error when launching Gmod. I wonder if there could be changes to dyld in macOS 12.

Jake3231 avatar Oct 28 '21 18:10 Jake3231

I don't know what I can do here without the actual exception that occurs. It's not the file paths as I initially suspected, looking at the code its normal for those errors to appear, it will eventually find the files correctly.

robotboy655 avatar Nov 01 '21 15:11 robotboy655

I don't know what I can do here without the actual exception that occurs. It's not the file paths as I initially suspected, looking at the code its normal for those errors to appear, it will eventually find the files correctly.

I got a crashdump generated trying to launch GMod. Hope this contains the data you need. 1F82E2AD-78CE-45AE-8681-1C633C799C69.dmp.zip

Doridian avatar Nov 01 '21 18:11 Doridian

I don't know what I can do here without the actual exception that occurs. It's not the file paths as I initially suspected, looking at the code its normal for those errors to appear, it will eventually find the files correctly.

But this was functioning on Big Sur though completely normally? I'm also having issues with another program after upgrading which basically relies on a dylib file and now doesn't work

pewf avatar Nov 09 '21 23:11 pewf

But this was functioning on Big Sur though completely normally? I'm also having issues with another program after upgrading which basically relies on a dylib file and now doesn't work

Yeah, this worked as expected on Big Sur.

Jake3231 avatar Nov 09 '21 23:11 Jake3231

Interestingly the Console.app log capture during a failed launch includes the following error, though I'm not sure it is specifically the culprit:

This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 11.00 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

mcthomas avatar Nov 09 '21 23:11 mcthomas

Interestingly the Console.app log capture during a failed launch includes the following error, though I'm not sure it is specifically the culprit:

This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 11.00 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

I saw this as well. I would think that probably is unrelated, but definitely worth investigating.

Jake3231 avatar Nov 09 '21 23:11 Jake3231

Interestingly the Console.app log capture during a failed launch includes the following error, though I'm not sure it is specifically the culprit: This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 11.00 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

I saw this as well. I would think that probably is unrelated, but definitely worth investigating.

Actually, it most likely is. The title of this issue is about .dylibs which is like a library file (google it), and that's what the error is talking about; a library.

Edit: Also it would be useful if somebody on Big Sur could do the same Console.log capture and see if that message shows up.

pewf avatar Nov 10 '21 19:11 pewf

I am experiencing the same issue. Would be nice to have this fixed soon!

Sleggie avatar Nov 23 '21 04:11 Sleggie

Interestingly the Console.app log capture during a failed launch includes the following error, though I'm not sure it is specifically the culprit: This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 11.00 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

I saw this as well. I would think that probably is unrelated, but definitely worth investigating.

Actually, it most likely is. The title of this issue is about .dylibs which is like a library file (google it), and that's what the error is talking about; a library.

Edit: Also it would be useful if somebody on Big Sur could do the same Console.log capture and see if that message shows up.

I've an M1 Mac with Big Sur (I've downgraded from Monterey), so I launched the "hl2_osx" program in the Garrysmod folder and saved the log as you asked :) gmod.log

rexracer1998 avatar Nov 27 '21 10:11 rexracer1998

Interestingly the Console.app log capture during a failed launch includes the following error, though I'm not sure it is specifically the culprit: This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 11.00 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

I saw this as well. I would think that probably is unrelated, but definitely worth investigating.

Actually, it most likely is. The title of this issue is about .dylibs which is like a library file (google it), and that's what the error is talking about; a library. Edit: Also it would be useful if somebody on Big Sur could do the same Console.log capture and see if that message shows up.

I've an M1 Mac with Big Sur (I've downgraded from Monterey), so I launched the "hl2_osx" program in the Garrysmod folder and saved the log as you asked :) gmod.log

Yup. I scrolled through your .log capture and I never saw any warning or anything related to a "deprecated Component Manager" or anything deprecated. I used the cmd + f find feature as well.

Edit: I ran the same hl2_osx thing on my own system but ended up not finding mcthomas' error either. I am actually not sure anymore.

pewf avatar Nov 27 '21 19:11 pewf

Interestingly the Console.app log capture during a failed launch includes the following error, though I'm not sure it is specifically the culprit: This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 11.00 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

I saw this as well. I would think that probably is unrelated, but definitely worth investigating.

Actually, it most likely is. The title of this issue is about .dylibs which is like a library file (google it), and that's what the error is talking about; a library. Edit: Also it would be useful if somebody on Big Sur could do the same Console.log capture and see if that message shows up.

I've an M1 Mac with Big Sur (I've downgraded from Monterey), so I launched the "hl2_osx" program in the Garrysmod folder and saved the log as you asked :) gmod.log

Yup. I scrolled through your .log capture and I never saw any warning or anything related to a "deprecated Component Manager" or anything deprecated. I used the cmd + f find feature as well.

Edit: I ran the same hl2_osx thing on my own system but ended up not finding mcthomas' error either. I am actually not sure anymore.

I can confirm that there is no error. It just gets stuck on the blue loading screen.

Sleggie avatar Nov 29 '21 19:11 Sleggie

This also reproduces on macOS 12.1 beta (21C5045a) with the latest builds of Steam and Gmod (at the time of writing)

Jake3231 avatar Dec 04 '21 02:12 Jake3231

While poking at this issue, I just saw this in the console, and it looks like a potential culprit: AMFI: constraint violation /Users/[user]/Library/Application Support/Steam/steamapps/common/GarrysMod/GarrysMod_Signed.app/Contents/MacOS/gmod_audio.dylib has entitlements but is not a main binary

AMFI deals with security, and through a quick search, it seems like the configuration Gmod is using could be invalid.

Update: I tried disabling SIP to reduce the security policy, and that did NOT resolve the issue, but seemingly it did make the Console logs more detailed, and revealed more audio-related errors.

Jake3231 avatar Dec 04 '21 02:12 Jake3231

We have identified the problem, and it is CEF. Temporary "fix" would be to run the game with -nochromium, naturally HTML related things will no longer work such as the main menu.

robotboy655 avatar Dec 04 '21 12:12 robotboy655