View Issue Details

IDProjectCategoryLast Update
0023128AI War 2Crash/ExceptionApr 14, 2020 11:43 am
Reportershampoocat Assigned ToChris_McElligottPark  
Severitycrash 
Status resolvedResolutionfixed 
Product Version2.021 Hotfix 
Fixed in Version2.026 The Faction Duality Problem 
Summary0023128: Game Crashes on Startup
DescriptionGot the game via GoG and running on Linux Mint 19.3 Tricia. The Game starts loading but then crashes without much fanfare.

This is the only relevant error message i could gather:

1/1/0001 12:00:00 AM (null version) Mem: 3,215,360 Mode: nullsocket Plat:LinuxPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
DllNotFoundException: GalaxyCSharpGlue
Stack Trace: Galaxy.Api.GalaxyInstancePINVOKE+SWIGExceptionHelper..cctor () (at <3b449dcde8434527a16333f25634f562>:0)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Galaxy.Api.GalaxyInstancePINVOKE..cctor () (at <3b449dcde8434527a16333f25634f562>: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 <3b449dcde8434527a16333f25634f562>:0)
ArcenGOGWrapper.Init () (at <4640d01d186749dcb1e1fcc87bef2201>:0)
ArcenGOGWrapper.Update () (at <4640d01d186749dcb1e1fcc87bef2201>:0)
ArcenGameController.Update () (at <4640d01d186749dcb1e1fcc87bef2201>:0)
TagsNo tags attached.

Activities

BadgerBadger

Apr 13, 2020 1:54 am

manager   ~0056796

If I recall, this was eventually resolved with some magic with a flatpack?

Chris_McElligottPark

Apr 13, 2020 12:15 pm

administrator   ~0056802

Badger, is this running for you on linux at with the gog version? I'm wondering if maybe GOG stripped out some dlls on the linux build for some reason. There is no gog galaxy linux client, so that would be a reasonable reason to do that, but this stuff should fail gracefully when GOG isn't present.

BadgerBadger

Apr 13, 2020 12:32 pm

manager   ~0056803

Last edited: Apr 13, 2020 12:33 pm

Dunno, I never installed gog. If given instructions I could try installing it later.

Chris_McElligottPark

Apr 13, 2020 2:10 pm

administrator   ~0056808

I just sent you a key for it.

BadgerBadger

Apr 13, 2020 3:02 pm

manager   ~0056816

I can start the game no problem on linux, but there definitely isn't a Glue dll
(13:01:42) eliot:~/GOG Games/AI War 2 $ find . | grep CSharp
./game/AIWar2Linux_Data/Managed/GalaxyCSharp.dll
./game/AIWar2Linux_Data/Managed/Assembly-CSharp-firstpass.dll
./game/AIWar2Linux_Data/Managed/Assembly-CSharp.dll
./game/ReliableDLLStorage/Microsoft.CodeAnalysis.CSharp.Scripting.dll
./game/ReliableDLLStorage/Microsoft.CodeAnalysis.CSharp.dll
./game/ReliableDLLStorage/Microsoft.CSharp.Core.targets
./game/AIW2ModdingAndGUI/Assembly-CSharp-Editor-firstpass.csproj
./game/AIW2ModdingAndGUI/Assembly-CSharp.csproj
./game/AIW2ModdingAndGUI/Assembly-CSharp-Editor.csproj
./game/AIW2ModdingAndGUI/Assembly-CSharp-firstpass.csproj
(13:01:59) eliot:~/GOG Games/AI War 2 $ find . | grep -i glue
(13:02:17) eliot:~/GOG Games/AI War 2 $

Chris_McElligottPark

Apr 13, 2020 3:34 pm

administrator   ~0056818

It's not something that GOG is stripping out... looks like GalaxyCSharpGlue is only present for the windows version of the game right now. I'm not sure if the OSX Galaxy Client integration is working or not, therefore.

What is really baffling is why it is failing catastrophically for him and not for you.

Chris_McElligottPark

Apr 13, 2020 3:34 pm

administrator   ~0056819

Coming in 2.025:

* Put in a change to the GOG wrapper code that should make it fail more gracefully when it is missing a managed dll, such as for instance on linux where the galaxy client is not yet supported.

Hopefully this works.

shampoocat

Apr 14, 2020 8:05 am

reporter   ~0056836

Tried the 2.025 version. Unfortunately the issue persists.

Chris_McElligottPark

Apr 14, 2020 11:16 am

administrator   ~0056845

Is it the exact same message? And you're sure it's definitely the 2.025 version?

Chris_McElligottPark

Apr 14, 2020 11:43 am

administrator   ~0056848

Either way, I went ahead and made some more substantial changes for you:

* The linux version of the game now has code in place to not even try to launch anything GOG-related, since GOG Galaxy does not exist on linux.
** For most people it was failing silently (as it should), and basically causing no harm. But for at least one person, it was causing a crash on startup. This should work around that. When GOG galaxy support is added on linux at some point, then we'll revisit.

Thanks!

Issue History

Date Modified Username Field Change
Apr 11, 2020 2:59 pm shampoocat New Issue
Apr 11, 2020 8:30 pm BadgerBadger Assigned To => Chris_McElligottPark
Apr 11, 2020 8:30 pm BadgerBadger Status new => assigned
Apr 13, 2020 1:54 am BadgerBadger Note Added: 0056796
Apr 13, 2020 12:15 pm Chris_McElligottPark Note Added: 0056802
Apr 13, 2020 12:32 pm BadgerBadger Note Added: 0056803
Apr 13, 2020 12:33 pm BadgerBadger Note Edited: 0056803
Apr 13, 2020 2:10 pm Chris_McElligottPark Note Added: 0056808
Apr 13, 2020 3:02 pm BadgerBadger Note Added: 0056816
Apr 13, 2020 3:34 pm Chris_McElligottPark Note Added: 0056818
Apr 13, 2020 3:34 pm Chris_McElligottPark Status assigned => feedback
Apr 13, 2020 3:34 pm Chris_McElligottPark Note Added: 0056819
Apr 14, 2020 8:05 am shampoocat Note Added: 0056836
Apr 14, 2020 8:05 am shampoocat Status feedback => assigned
Apr 14, 2020 11:16 am Chris_McElligottPark Note Added: 0056845
Apr 14, 2020 11:43 am Chris_McElligottPark Status assigned => resolved
Apr 14, 2020 11:43 am Chris_McElligottPark Resolution open => fixed
Apr 14, 2020 11:43 am Chris_McElligottPark Fixed in Version => 2.026 The Faction Duality Problem
Apr 14, 2020 11:43 am Chris_McElligottPark Note Added: 0056848