Bug #936

ETL 2.75 crashes on OSX with other mods (NQ1.2.9)

Added by Odal about 3 years ago. Updated 9 months ago.

Status:Feedback% Done:

80%

Priority:NormalSpent time:-
Assignee:-
Category:Client
Target version:2.78
OS:OS X Arch:

Description

Everything works until entering the game. Then complete exiting with following console message (I don’t know which message are related to this problem):
13/09/16 09:20:16,442 launchservicesd95: SecTaskLoadEntitlements failed error=22
13/09/16 09:20:16,478 com.apple.xpc.launchd1: (com.etlegacy.etl.90819241186) Service exited with abnormal code: 2
13/09/16 09:20:16,478 WindowServer186: CGXGetConnectionProperty: Invalid connection 148235
13/09/16 09:20:16,479 WindowServer186: CGXGetConnectionProperty: Invalid connection 148235
13/09/16 09:20:16,479 WindowServer186: CGXGetConnectionProperty: Invalid connection 148235
13/09/16 09:20:16,479 WindowServer186: CGXGetConnectionProperty: Invalid connection 148235
13/09/16 09:20:16,479 WindowServer186: CGXGetConnectionProperty: Invalid connection 148235
13/09/16 09:20:16,507 WindowServer186: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x0b40caf2 device: 0x7fa77040a8c0 isBackBuffered: 1 numComp: 3 numDisp: 3
13/09/16 09:20:16,549 identityservicesd503: <IMMacNotificationCenterManager: 0x7f876c93fea0>: notification observer: com.apple.iChat notification: __CFNotification 0x7f876ca4dcd0 {name = _NSDoNotDisturbDisabledNotification}
13/09/16 09:20:16,567 identityservicesd503: <IMMacNotificationCenterManager: 0x7f876c93fea0>: NC Disabled: NO
13/09/16 09:20:16,575 identityservicesd503: <IMMacNotificationCenterManager: 0x7f876c93fea0>: DND Enabled: NO
13/09/16 09:20:16,575 identityservicesd503: <IMMacNotificationCenterManager: 0x7f876c93fea0>: Updating enabled: YES (Topics: (
"com.apple.private.alloy.icloudpairing",
"com.apple.private.alloy.continuity.encryption",
"com.apple.private.alloy.continuity.activity",
"com.apple.private.ids",
"com.apple.private.alloy.phonecontinuity",
"com.apple.private.alloy.phone.auth",
"com.apple.private.alloy.keychainsync",
"com.apple.private.alloy.fmf",
"com.apple.private.alloy.screensharing",
"com.apple.private.alloy.maps",
"com.apple.private.alloy.thumper.keys",
"com.apple.private.alloy.continuity.tethering"
))

I tried on a MacMini (late 2012) and a MacBookPro (13", mid 2012) both updated to ElCapitan (10.11.6)


Related issues

Related to ET: Legacy Development - Bug #825: Mac OS X, ET:L crashes when killed on other mods Fixed 27.02.2015
Duplicated by ET: Legacy Development - Bug #1347: Mac OS: Crashes when trying to connect to silent Servers Invalid 13.09.2019

History

#1 Updated by Odal about 3 years ago

It crashes with the downloaded version (2.75 "official") and also with the git/compiled version.

#2 Updated by Odal about 3 years ago

  • Category set to Client

#3 Updated by Spyhawk about 3 years ago

  • Related to Bug #825: Mac OS X, ET:L crashes when killed on other mods added

#4 Updated by Spyhawk about 3 years ago

See https://dev.etlegacy.com/projects/etlegacy/wiki/Compatible_Mods.

Support of third party mods on Mac OS X is somewhat erratic.

#5 Updated by Odal about 3 years ago

  • Subject changed from etl crashes on OSX to etl crashes on OSX with mod NQ1.2.9

I tried to connect to a server with MOD "etlegacy" and it worked!

So, for now it does NOT work with NQ 1.2.9 mod

#6 Updated by Odal about 3 years ago

I am sorry.
Now I understand.
Thanks for your work.

v55

#7 Updated by IR4T4 about 3 years ago

  • Subject changed from etl crashes on OSX with mod NQ1.2.9 to ETL 2.75 crashes on OSX with other mods (NQ1.2.9)
  • Target version set to 2.76

Alright. I did expect issues with OSX see #825 #848 #883 (there are more - do a ticket search for 'osx’) But this is the first time we are loading the mod libs for real.

"SecTaskLoadEntitlements failed error=22" is an apple specific error we should examine.

#8 Updated by Odal about 3 years ago

Today, after compiling, I re-tried and ... it works!

I usually connect to [UJE] Clan - Teamplay server (37.120.174.14) with etlegacy server 2.71rc1 1 and NQ 1.29.
So, NQ 1.29 works with EtLegacy on OSX.

OSX 10.12 Sierra.

#9 Updated by Odal about 3 years ago

Also with ElCapitan works (10.11.6)

#10 Updated by Spyhawk about 3 years ago

Well, I really don’t get that Mac OS X stuff..

#11 Updated by IR4T4 about 3 years ago

I’ve heard the NQ guys did pay you for this post ... Great news!

#13 Updated by IR4T4 almost 3 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 80

#14 Updated by Mateos almost 3 years ago

Is there any related commit(s)?

#15 Updated by Spyhawk almost 3 years ago

No. This is why this mac issue is so fun to debug!

#16 Updated by IR4T4 almost 3 years ago

There are related commits ... see #825. We no longer load the default mod and some fixes were done in the zip code ...

#17 Updated by IR4T4 over 2 years ago

  • Status changed from Feedback to Fixed
  • % Done changed from 80 to 100

#18 Updated by IR4T4 almost 2 years ago

From the forums https://dev.etlegacy.com/boards/2/topics/3276

fs_basepath

Sys_LoadGameDll > FS_CL_ExtractFromPakFile(/Users/Loic/Library/Application Support/etlegacy, silent, ui_mac)
Sys_LoadDll → Sys_TryLibraryLoad(/Users/Loic/Library/Application Support/etlegacy, silent, ui_mac)...
- Trying zipped .bundle... failed. (Not a valid zip).
– Trying extension-less dylib... failed: "Failed loading /Users/Loic/Library/Application Support/etlegacy/silent/ui_mac: dlopen(/Users/Loic/Library/Application Support/etlegacy/silent/ui_mac, 6): image not found" 
– Trying dylib with extension... failed: "Failed loading /Users/Loic/Library/Application Support/etlegacy/silent/ui_mac.dylib: dlopen(/Users/Loic/Library/Application Support/etlegacy/silent/ui_mac.dylib, 6): image not found" 
Sys_LoadDll > Sys_TryLibraryLoad(/Applications/ET Legacy, silent, ui_mac)...

fs_homepath

- Trying zipped .bundle... failed. (Not a valid zip).
– Trying extension-less dylib... failed: "Failed loading /Applications/ET Legacy/silent/ui_mac: dlopen(/Applications/ET Legacy/silent/ui_mac, 6): image not found" 
– Trying dylib with extension... failed: "Failed loading /Users/Loic/Library/Application Support/etlegacy/silent/ui_mac.dylib: dlopen(/Users/Loic/Library/Application Support/etlegacy/silent/ui_mac.dylib, 6): image not found" 
Sys_LoadDll(silent/ui) failed to load library


It looks like there is something terrible wrong with the search paths at least for the fs_homepath search. The extension-less dylib is missing the real path prefix? See https://github.com/etlegacy/etlegacy/blob/master/src/sys/sys_main.c#L593
Sys_TryLibraryLoad is called twice (for fs_basepath and fs_homepath)

Clarify (from our wiki): fs_basepath and fs_homepath are same path on OS X?! I do assume this won’t work because of apple priviledges?

#19 Updated by IR4T4 almost 2 years ago

  • Status changed from Fixed to Feedback
  • % Done changed from 100 to 80

#20 Updated by IR4T4 11 months ago

  • Target version changed from 2.76 to 2.78

#21 Updated by IR4T4 10 months ago

  • Target version changed from 2.78 to 2.77

#22 Updated by Spyhawk 9 months ago

  • Target version changed from 2.77 to 2.78

#23 Updated by Spyhawk 2 months ago

  • Duplicated by Bug #1347: Mac OS: Crashes when trying to connect to silent Servers added

Also available in: Atom PDF