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

Couldn't find a valid ICU package installed on the system #329

Open
benNeuro opened this issue May 16, 2024 · 1 comment
Open

Couldn't find a valid ICU package installed on the system #329

benNeuro opened this issue May 16, 2024 · 1 comment

Comments

@benNeuro
Copy link

benNeuro commented May 16, 2024

As of version 3.22.0 my builds are failing with 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.Globalization.CultureInfo.GetCultureInfoHelper(Int32, System.String, System.String)
   at System.Globalization.CultureInfo.GetCultureInfo(System.String)
   at System.Reflection.RuntimeAssembly.GetLocale()
   at System.Reflection.RuntimeAssembly.GetName(Boolean)
   at System.Reflection.Assembly.GetName()
   at Unity.Options.OptionsParser.LoadOptionTypesFromAssembly(System.Reflection.Assembly, Boolean, System.Func`2<System.Reflection.AssemblyName,Boolean>, System.Func`2<System.Reflection.Assembly,System.Type[]>)
   at il2cpp.Il2CppOptionParser.ParseArguments(System.String[], Boolean ByRef, il2cpp.ExitCode ByRef, Unity.IL2CPP.Common.RuntimePlatform ByRef, Unity.IL2CPP.Building.BuildingOptions ByRef, System.String ByRef)
   at il2cpp.Program.Run(System.String[], Boolean, Boolean)
   at il2cpp.Program.Main(System.String[])

Everything works as expected with version 3.19.6

Some additional details:

  • Our project uses an embedded Unity player using this package. The error seems to be related to that
  • Adding the environment variable DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 fixes this, but I'm worried about potential issues
  • This is running in gitlab ci
@bartekpacia
Copy link
Contributor

Can you provide a reproducible example?

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