Skip to content

Commit

Permalink
Enough MIDI crashes.
Browse files Browse the repository at this point in the history
Set glibc.rtld.dynamic_sort=1 to work around space-wizards/RobustToolbox#2563
  • Loading branch information
PJB3005 committed Mar 14, 2022
1 parent d47c78a commit b4ff735
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SS14.Launcher/Models/Connector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ private async Task<InstalledServerContent> 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);
Expand Down

0 comments on commit b4ff735

Please sign in to comment.