From b4ff735527c3f4f81874bfafd38696ef5440c886 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 14 Mar 2022 22:59:37 +0100 Subject: [PATCH] Enough MIDI crashes. Set glibc.rtld.dynamic_sort=1 to work around https://github.com/space-wizards/RobustToolbox/issues/2563 --- SS14.Launcher/Models/Connector.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SS14.Launcher/Models/Connector.cs b/SS14.Launcher/Models/Connector.cs index f508d314..52faa067 100644 --- a/SS14.Launcher/Models/Connector.cs +++ b/SS14.Launcher/Models/Connector.cs @@ -319,6 +319,13 @@ private async Task RunUpdateAsync(ServerInfo info, Cance startInfo.EnvironmentVariables["DOTNET_ReadyToRun"] = "0"; } + if (OperatingSystem.IsLinux()) + { + // Work around https://github.com/space-wizards/RobustToolbox/issues/2563 + // Yuck. + startInfo.EnvironmentVariables["GLIBC_TUNABLES"] = "glibc.rtld.dynamic_sort=1"; + } + startInfo.UseShellExecute = false; startInfo.ArgumentList.AddRange(extraArgs); var process = Process.Start(startInfo);