Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Error when running latest release #44

Open
scramble45 opened this issue May 23, 2023 · 1 comment
Open

Linux Error when running latest release #44

scramble45 opened this issue May 23, 2023 · 1 comment

Comments

@scramble45
Copy link

scramble45 commented May 23, 2023

When running the latest release on my arch mainline rig I ran into the following error:

Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.StringComparer..cctor()
   at System.StringComparer.get_OrdinalIgnoreCase()
   at Avalonia.Media.KnownColors..cctor()
   at Avalonia.Media.KnownColors.ToBrush(Avalonia.Media.KnownColor)
   at Avalonia.Media.Brushes.get_Black()
   at Avalonia.Controls.TextBlock..cctor()
   at Avalonia.Controls.Primitives.TemplatedControl..cctor()
   at Avalonia.Controls.Window..cctor()
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime..cctor()
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime..ctor()
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon, System.String[], Avalonia.Controls.ShutdownMode)
   at GDMENUCardManager.Program.Main(System.String[])
[1]    543118 IOT instruction (core dumped)  ./GDMENUCardManager

ICU deps are installed properly, the solution to get around this error was to do this:
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

Then the application ran fine. Putting this here to help folks that may run into this and perhaps help the dev to figure out a better solution.

Linux  6.2.13-zen-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 26 Apr 2023 20:49:44 +0000 x86_64 GNU/Linux
@sonik-br
Copy link
Owner

Thanks for the heads up.
I can also set this on the app code. I'm going to do some tests and let you know how this goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants