View Issue Details

IDProjectCategoryLast Update
0028103AI War 2Bug - OtherJan 4, 2024 1:13 pm
Reporterabhi Assigned To 
Status newResolutionopen 
Product Version5.581 Mod Updates 
Summary0028103: Mac client not logging into Steam (Apple Silicon, Metal)
DescriptionHi Chris,

I'm brand-new to the game and haven't played anything from your studio before, but I'm impressed by the post-launch support and how actively you engage with the community around your games. You clearly take pride in your work!

Came across a bug: The current version of the game on Mac consistently seems to be unable to log into Steam for me. I've attached a screenshot of the issue and the relevant ArcenDebugLog.txt lines.

Tested with macOS 14.2.1 on a new M3 Max MacBook Pro (Apple Silicon), using Metal. The latest version of the OS X native Steam client is running, I'm launching the game from the Steam client, and the Steam Overlay is enabled. I've verified the integrity of the game files and restarted the computer/Steam/game more than once for good measure. Single-player gameplay itself seems unaffected but I think Steam Achievements aren't working--for example, I didn't get the achievement for hacking a ship line even after doing so as part of one of the tutorials.

Steps to reproduce:
- Open the game

Please let me know if something is wrong with my personal machine/setup, or if there's anything more I can do to help make sure this is fixed. Thanks!

-Abhi
TagsNo tags attached.

Activities

abhi

Dec 29, 2023 4:07 am

reporter  

Mac_No_Steam_Login_ArcenDebugLog.txt (11,622 bytes)   
~~~~~~~~~~~~~~~12/29/2023 1:50:29 AM	SINGLEP	Current directory used: /Users/abhi/Library/Application Support/Steam/steamapps/common/AI War 2/
PlayerDataDirectory used: /Users/abhi/Library/Application Support/Steam/steamapps/common/AI War 2/PlayerData/
12/29/2023 1:50:29 AM	SINGLEP	Boot up FleetOS (0.0611s)
12/29/2023 1:50:29 AM	SINGLEP	-----------
DllNotFoundException: GalaxyCSharpGlue
Stack Trace: Galaxy.Api.GalaxyInstancePINVOKE+SWIGExceptionHelper..cctor () (at <00184a4f2c3c4908a4c3caf2d1c23042>:0)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Galaxy.Api.GalaxyInstancePINVOKE..cctor () (at <00184a4f2c3c4908a4c3caf2d1c23042>:0)
Rethrow as TypeInitializationException: The type initializer for 'Galaxy.Api.GalaxyInstancePINVOKE' threw an exception.
Galaxy.Api.InitParams..ctor (System.String _clientID, System.String _clientSecret) (at <00184a4f2c3c4908a4c3caf2d1c23042>:0)
ArcenGOGWrapper.Init () (at <f9b4726ee52f4e86b87845772b7606b2>:0)
ArcenGOGWrapper.Update () (at <f9b4726ee52f4e86b87845772b7606b2>:0)
Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () (at <f9b4726ee52f4e86b87845772b7606b2>:0)
ArcenGameController.Update () (at <154935f4a3f842d6a5779c732027326e>:0)


  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at Arcen.Universal.ArcenDebugging.ArcenLog_InnerOnMainThreadOnly (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity, System.DateTime Timestamp) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.Engine_Universal.LogWritten (System.String LogString, System.String StackTrace, UnityEngine.LogType Type, System.Exception Cause, System.Boolean CameFromUnity) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.Engine_Universal.LogWrittenFromUnity (System.String LogString, System.String StackTrace, UnityEngine.LogType Type) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) [0x00000] in <0cbbc6558ea04890a7819020058bd741>:0 

12/29/2023 1:50:29 AM	SINGLEP	ErrorsReportedByEngine:    -----------
DllNotFoundException: GalaxyCSharpGlue
Stack Trace: Galaxy.Api.GalaxyInstancePINVOKE+SWIGExceptionHelper..cctor () (at <00184a4f2c3c4908a4c3caf2d1c23042>:0)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Galaxy.Api.GalaxyInstancePINVOKE..cctor () (at <00184a4f2c3c4908a4c3caf2d1c23042>:0)
Rethrow as TypeInitializationException: The type initializer for 'Galaxy.Api.GalaxyInstancePINVOKE' threw an exception.
Galaxy.Api.InitParams..ctor (System.String _clientID, System.String _clientSecret) (at <00184a4f2c3c4908a4c3caf2d1c23042>:0)
ArcenGOGWrapper.Init () (at <f9b4726ee52f4e86b87845772b7606b2>:0)
ArcenGOGWrapper.Update () (at <f9b4726ee52f4e86b87845772b7606b2>:0)
Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () (at <f9b4726ee52f4e86b87845772b7606b2>:0)
ArcenGameController.Update () (at <154935f4a3f842d6a5779c732027326e>:0)


  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at Arcen.Universal.ArcenDebugging.ArcenLog_InnerOnMainThreadOnly (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity, System.DateTime Timestamp) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.Engine_Universal.WriteToErrorFile (System.String ErrorFile, System.String ErrorName, System.String ErrorText, System.Boolean SuppressArcenDebugLog) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.Engine_Universal.WriteToErrorFile (System.String ErrorFile, System.String ErrorName, System.String ErrorText) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.Engine_Universal.LogWritten (System.String LogString, System.String StackTrace, UnityEngine.LogType Type, System.Exception Cause, System.Boolean CameFromUnity) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at Arcen.Universal.Engine_Universal.LogWrittenFromUnity (System.String LogString, System.String StackTrace, UnityEngine.LogType Type) [0x00000] in <5d47012f0630403a9cc4949822e175b8>:0 
  at UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) [0x00000] in <0cbbc6558ea04890a7819020058bd741>:0 

12/29/2023 1:50:29 AM	SINGLEP	graphicsDeviceType in use: Metal
graphicsDeviceVersion in use: Metal
graphicsMultiThreaded: True
graphicsShaderLevel: 50
operatingSystem: Mac OS X 14.2.1
graphicsDeviceName: Apple M3 Max
graphicsDeviceID: 0
graphicsDeviceVendor: Apple
graphicsDeviceVendorID: 0
graphicsDeviceVersion: Metal
graphicsMemorySize: 49152
maxTextureSize: 16384
npotSupport: Full
processorType: Apple M3 Max
processorCount: 16
processorFrequency: 2400
systemMemorySize: 65536
supportedRenderTargetCount: 8
supportsComputeShaders: True
supportsShadows: True
usesReversedZBuffer: True
12/29/2023 1:50:29 AM	5.581	SINGLEP	Game Version: 5.581
12/29/2023 1:50:29 AM	5.581	SINGLEP	Check System Logs For Rogue Intelligence (0.0815s)
12/29/2023 1:50:29 AM	5.581	SINGLEP	Inspect Aft Hatches (0.0185s)
12/29/2023 1:50:29 AM	5.581	SINGLEP	Found 919 xml files in 156 folders in 24ms
12/29/2023 1:50:30 AM	5.581	SINGLEP	Check For Extra Modules (0.7223s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	919 Xml Files Parsed in 694ms
12/29/2023 1:50:30 AM	5.581	SINGLEP	Gather Ancient Lifeforms (0.0005s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Eject Trash Into Hyperspace (0.0242s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Bring Cloaking Systems Online (0.0249s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Update mod and expansion statuses!
12/29/2023 1:50:30 AM	5.581	SINGLEP	Expansions:  The Spire Rises (Installed And Enabled!)  Zenith Onslaught (Installed And Enabled!)  The Neinzul Abyss (Installed And Enabled!)  
12/29/2023 1:50:30 AM	5.581	SINGLEP	Mods:  ClassicFusion (Disabled)  AIShieldGenerators (Disabled)  AMU (Disabled)  AchievementRestorer (Disabled)  AzaranEmpire (Disabled)  Bonus_Assets (Disabled)  CapturableDreadnoughts (Disabled)  CityShips (Disabled)  DireMacrophage (Disabled)  DpsHud (Disabled)  DysonSidekick (Disabled)  ExoticShips (Disabled)  ExowarVarietyLON (Disabled)  ExpertMinusScaling (Disabled)  ExtendedShipVariants (Disabled)  FrigatesFocus (Disabled)  FromSpireFrigateToDreadnought (Disabled)  Generator (Disabled)  HydralFedBalance (Disabled)  HydralFederation (Disabled)  JuicyJournals (Disabled)  KaizersMarauders (Disabled)  Leere (Disabled)  Lore (Disabled)  LostHumans (Disabled)  LostSpireCoilbeam (Disabled)  MacrophageHistiocytes (Disabled)  MicroModCollection (Disabled)  MoreFrigates (Disabled)  MoreStartingFleets (Disabled)  MoreSystemDefenders (Disabled)  NecroParty (Disabled)  NecromancerIsNotNeinzul (Disabled)  OutguardParty (Disabled)  PaladinTransports (Disabled)  PlayableFlenser (Disabled)  Poi (Disabled)  PowerfulCommandStations (Disabled)  RadiantColors (Disabled)  RadiantDysonTweaks (Disabled)  RadiantFleets (Disabled)  RadiantMaps (Disabled)  RadiantPruning (Disabled)  RaisingTheFloorMultiAIAdjustment (Disabled)  Reclaimers (Disabled)  SKCivilianIndustry (Disabled)  SapperAlterations (Disabled)  ShipLineUpgrades (Disabled)  SimpleOptions (Disabled)  SuperchargeRaid (Disabled)  TameDarkSpire (Disabled)  UniversalNemesis (Disabled)  Xushido (Disabled)  facc_fleet_names (Disabled)  facc_ASF (Disabled)  facc_ASF_plus (Disabled)  facc_GSF (Disabled)  facc_GSF_plus (Disabled)  
12/29/2023 1:50:30 AM	5.581	SINGLEP	Check Nearby Stellar Masses (0.0160s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	919 Xml Files Checked For Exp/Mod Status in 6ms
12/29/2023 1:50:30 AM	5.581	SINGLEP	Pruning Excess Brain Cells (0.0332s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	No resolution change was required.
12/29/2023 1:50:30 AM	5.581	SINGLEP	Applied graphics settings: 
AntialiasingMode:x2
UseSoftParticles:False
BillboardsFaceCameraPosition:False
AnisotropicMode:ForceEnable
TextureQuality:Full
12/29/2023 1:50:30 AM	5.581	SINGLEP	Applied Framerate Type: 120 FPS (vsync: 0 targetFPS:120)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Remembering Alamo (0.0498s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Calculate Odds Of Success (0.1219s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Briefly Panic (0.0553s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Install Confidence Routines (0.1490s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Warning Only: No entries found for table 'ExtraDamageModifiers'.
12/29/2023 1:50:30 AM	5.581	SINGLEP	Late Axionic Computations (0.1174s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Acquiring Towel (0.0292s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Inhibiting Visual Scans (0.0134s)
12/29/2023 1:50:30 AM	5.581	SINGLEP	Ejecting Tactical Core (0.0418s)
12/29/2023 1:50:31 AM	5.581	SINGLEP	Grouping Flow Fields (0.0264s)
12/29/2023 1:50:31 AM	5.581	SINGLEP	Ignoring Starfields (0.0497s)
12/29/2023 1:50:31 AM	5.581	SINGLEP	Scouring Distant Planets (0.0478s)

LOG: NodeProcessor line 84
dll_name=AIWarExternalCode type_name=Arcen.AIW2.External.ChooseCustomTarget CachedTypeForImplementation=ChooseCustomTarget12/29/2023 1:50:31 AM	5.581	SINGLEP	Calculating Firing Cones (0.0081s)
12/29/2023 1:50:31 AM	5.581	SINGLEP	Holding Ship Parts For Comfort (0.6738s)
12/29/2023 1:50:31 AM	5.581	SINGLEP	Warning Only: No entries found for table 'Curves'.
12/29/2023 1:50:31 AM	5.581	SINGLEP	Warning Only: No entries found for table 'Effects'.
12/29/2023 1:50:31 AM	5.581	SINGLEP	Re-Aligning Objectives (0.0849s)
12/29/2023 1:50:32 AM	5.581	SINGLEP	Overwrote old entry for OrbitalDireConcussionGuardPost in OrbitalDireGuardPosts_FreeforAll
12/29/2023 1:50:32 AM	5.581	SINGLEP	Turn Systems On And Off Again (0.8963s)
12/29/2023 1:50:32 AM	5.581	SINGLEP	Post-Proton Surge (0.0161s)
12/29/2023 1:50:32 AM	5.581	SINGLEP	Background Radiation Taste Test (0.0176s)
12/29/2023 1:50:32 AM	5.581	SINGLEP	Shuffling Chairs On Command Deck (0.0141s)
12/29/2023 1:50:32 AM	5.581	SINGLEP	Windshield Wiping (0.0589s)
12/29/2023 1:50:33 AM	5.581	SINGLEP	Last Organizational Modeling (0.9268s)
12/29/2023 1:50:34 AM	5.581	SINGLEP	Stimulate Modulation (0.2441s)
12/29/2023 1:50:34 AM	5.581	SINGLEP	ArcenAssetBundleCache.InstantiatedObjects: 0
12/29/2023 1:50:33 AM	5.581	SINGLEP	DELAYED1 TID45 Info: will dump 2130 rows for GameEntityReferenceData.csv and GameEntityStrengthList.txt.

CustomSystemTypeTable_ExternalHooks.HandleExternalHook 'PostAllTableInitialize
_UI.Encyclopedia_PreProcessing, begin at 3.234142
~~~~~~~~~~~~~~~12/29/2023 1:50:34 AM	5.581	SINGLEP	We got 0 campaign's data when deserializing
12/29/2023 1:50:34 AM	5.581	SINGLEP	Order Cores By Seniority (0.1058s)
12/29/2023 1:50:34 AM	5.581	SINGLEP	Load Historical Documents (0.0041s)
12/29/2023 1:50:34 AM	5.581	SINGLEP	4.7 seconds total load time.
Check For Extra Modules (0.7s)
Holding Ship Parts For Comfort (0.7s)
Turn Systems On And Off Again (0.9s)
Last Organizational Modeling (0.9s)
12/29/2023 1:50:34 AM	5.581	SINGLEP	Error on init Steam - is Steam running?

_UI.Encyclopedia_PreProcessing, done after 5.94607
~~~~~~~~~~~~~~~

Chris_McElligottPark

Dec 29, 2023 2:30 pm

administrator   ~0068061

Thanks for the report!

At the moment, I'm not sure what else to do with this. We had reports that thing were working fine on M1 macs, but have not tested on M2 or M3. I see you're running an M3.

It's possible that we'll need to update the version of steamworks used by the game, but that's a nontrivial thing that can cause issues for a lot of other people. I am the only person at the company and am booked solid right now, so I don't have the ability to take on something that disruptive at the moment. However, it may wind up being resolved in the next two months simply because it wound line up with some other steamworks work I'm doing for the next game of the company.

In the log you posted, I see that there's actually an exception happening in the GOG wrapper, where it's trying to find a dll that should be there, and which is not for some reason. That's very perplexing, and I wonder if it's in some way related. Bear in mind that in your case, since this is not installed through GOG, it would just go "oh, huh, I cannot connect to gog." But if you did have gog installed, and you wanted to use it for multiplayer, you could do so.

Based on the above error, there's a vague possibility that this is actually a permissions issue on your machine, or a sandboxing type issue.

A few years ago, Apple went through this phase of not really allowing programs full read and write access to their own folders, and while they were running launching a secondary isolated environment for said programs. This caused lots of problems with... lots of things. Games not able to find their savegames. In this particular case, there's a p/invoke call that is failing to find a file, and if that file is actually present... then this might be related. Or it might be that Apple changed the location for where external dlls are found in the application package (again, grr).

It's something I'm likely to be revisiting in the next couple of months, and I can backport whatever I find to AI War 2. The good news is that any achievements that you log offline will be retroactively granted after launching a fixed version later. Or if you happened to load the game on an older mac, or any pc, the cloud saves should cause all your achievements to hit in a rush.

Sorry about the inconvenience!

abhi

Dec 29, 2023 8:54 pm

reporter   ~0068062

Thanks for the quick response, and no worries! I poked around the game files and found no GalaxyCSharpGlue DLL, though I did find GalaxyCSharp (no Glue) DLLs in the following locations:

/Users/abhi/Library/Application Support/Steam/steamapps/common/AI War 2/ReliableDLLStorage/ForLinkingOnly
/Users/abhi/Library/Application Support/Steam/steamapps/common/AI War 2/AIW2ModdingAndGUI/Assets/ArcenDLLs/ForLinkingOnly

Could it simply be a DLL somehow omitted in the latest Mac build of the game? It doesn't seem to be a general permissions/sandboxing issue since the game is otherwise working properly/able to save and load files, plus other Unity games using the same Steamworks SDK are working fine on my machine. I doubt there's any difference between the M1/M2/M3 hardware for this purpose.

Chris_McElligottPark

Dec 30, 2023 11:08 am

administrator   ~0068063

That could also be the case, yeah -- it's very strange indeed.

abhi

Dec 30, 2023 3:55 pm

reporter   ~0068064

If you're able to share the GalaxyCSharpGlue DLL with me, I can try putting it in those directories and see if that makes any difference.

Chris_McElligottPark

Dec 30, 2023 7:45 pm

administrator   ~0068065

I've pushed a new minor hotfix that includes those files; let's see if that resolves it for you. Knock on wood!

abhi

Dec 30, 2023 8:58 pm

reporter   ~0068066

Thanks so much for the hotfix—I really appreciate you taking the time to help! I see the new files in the game’s root directory but unfortunately get the same error in-game and the same GalaxyCSharpGlue DLLNotFound message in the log file. Googling around I tried copying and pasting the files into various directories within the game’s app bundle (.app file) itself, even renaming the .dylib files to .bundle, but to no avail. One of the threads I looked into: https://qa.fmod.com/t/dllnotfoundexception-in-mac-build/16115/2

I recognize you’re busy - no need to look further into this for now given that I’m the only person reporting this issue and Macs probably represent a tiny fraction of your install base. Thanks again for the help!

Chris_McElligottPark

Dec 30, 2023 9:08 pm

administrator   ~0068067

Cheers -- I will have to revisit this, yeah. I am guessing that for the new silicon platform I need to completely upgrade steamworks and gog. I will be planning to backport that when I do it for the next title.

BadgerBadger

Jan 3, 2024 1:34 pm

manager   ~0068068

I don't think AIW2 ever worked with steam on M1 Macs. It does not work on my M1 mac right now (says "Not logged into steam" even when I invoked the game through steam)

Chris_McElligottPark

Jan 3, 2024 2:01 pm

administrator   ~0068069

Oh! Well, you'd know -- that's news to me, but that's good to know. Sounds like an updated version of the steamworks packages will be in order when I get a chance.

BadgerBadger

Jan 4, 2024 12:22 pm

manager   ~0068070

Last edited: Jan 4, 2024 12:23 pm

We discussed this problem on discord in a private DM on May 14 2022.

Chris_McElligottPark

Jan 4, 2024 1:13 pm

administrator   ~0068071

Oh, good to know. Well, my memory is terrible, clearly.

Issue History

Date Modified Username Field Change
Dec 29, 2023 4:07 am abhi New Issue
Dec 29, 2023 4:07 am abhi File Added: Mac_No_Steam_Login_ArcenDebugLog.txt
Dec 29, 2023 4:07 am abhi File Added: Screenshot 2023-12-29 at 1.59.14 AM.png
Dec 29, 2023 2:30 pm Chris_McElligottPark Note Added: 0068061
Dec 29, 2023 8:54 pm abhi Note Added: 0068062
Dec 30, 2023 11:08 am Chris_McElligottPark Note Added: 0068063
Dec 30, 2023 3:55 pm abhi Note Added: 0068064
Dec 30, 2023 7:45 pm Chris_McElligottPark Note Added: 0068065
Dec 30, 2023 8:58 pm abhi Note Added: 0068066
Dec 30, 2023 9:08 pm Chris_McElligottPark Note Added: 0068067
Jan 3, 2024 1:34 pm BadgerBadger Note Added: 0068068
Jan 3, 2024 2:01 pm Chris_McElligottPark Note Added: 0068069
Jan 4, 2024 12:22 pm BadgerBadger Note Added: 0068070
Jan 4, 2024 12:23 pm BadgerBadger Note Edited: 0068070
Jan 4, 2024 1:13 pm Chris_McElligottPark Note Added: 0068071