Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

ERROR: First Error Message: Error MSB6006. "dotnet.exe" exited with code -532462766.  #16272

Closed

Description

@derigel23

I've had no clue what's the problem is until I found this in event viewer.

Application: dotnet.exe
CoreCLR Version: 8.0.23.47906
.NET Version: 8.0.0-rc.2.23479.6
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
en-US is an invalid culture identifier.
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at FSharp.Compiler.Driver.main1(CompilationThreadToken ctok, String[] argv, LegacyReferenceResolver legacyReferenceResolver, Boolean bannerAlreadyPrinted, ReduceMemoryFlag reduceMemoryUsage, CopyFSharpCoreFlag defaultCopyFSharpCore, Exiter exiter, IDiagnosticsLoggerProvider diagnosticsLoggerProvider, DisposablesTracker disposables) in C:\MSBFU\visualfsharp\src\Compiler\Driver\fsc.fs:line 490
   at FSharp.Compiler.Driver.CompileFromCommandLineArguments(CompilationThreadToken ctok, String[] argv, LegacyReferenceResolver legacyReferenceResolver, Boolean bannerAlreadyPrinted, ReduceMemoryFlag reduceMemoryUsage, CopyFSharpCoreFlag defaultCopyFSharpCore, Exiter exiter, IDiagnosticsLoggerProvider loggerProvider, FSharpOption`1 tcImportsCapture, FSharpOption`1 dynamicAssemblyCreator) in C:\MSBFU\visualfsharp\src\Compiler\Driver\fsc.fs:line 1197
   at FSharp.Compiler.CommandLineMain.main(String[] argv) in C:\MSBFU\visualfsharp\src\fsc\fscmain.fs:line 84
   at FSharp.Compiler.DiagnosticsLogger.DiagnosticsLoggerExtensions.ReraiseIfWatsonable(Exception exn) in C:\MSBFU\visualfsharp\src\Compiler\Facilities\DiagnosticsLogger.fs:line 419
   at FSharp.Compiler.DiagnosticsLogger.DiagnosticsLoggerExtensions.DiagnosticsLogger.ErrorRecovery(DiagnosticsLogger x, Exception exn, Range m) in C:\MSBFU\visualfsharp\src\Compiler\Facilities\DiagnosticsLogger.fs:line 470
   at FSharp.Compiler.DiagnosticsLogger.errorRecovery(Exception exn, Range m) in C:\MSBFU\visualfsharp\src\Compiler\Facilities\DiagnosticsLogger.fs:line 571
   at FSharp.Compiler.CommandLineMain.main(String[] argv) in C:\MSBFU\visualfsharp\src\fsc\fscmain.fs:line 101

While it's dotnet problem FSC should be less error-prone and do not crash randomly.
But catch exceptions at the highest level and report them clearly.

Activity

  1. added this to the Backlog milestone on Nov 13, 2023
  2. derigel23 commented on Nov 13, 2023

    @derigel23
    Author

    FYI, problem with dotnet8 is caused by setting DOTNET_SYSTEM_GLOBALIZATION_INVARIANT to true.
    But it's not related to this ticket directly. It's just example of system failure which FSC hides and makes hard to understand.

  3. added
    Impact-Low
    Area-Compiler
    and removed on Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-CompilerBugImpact-Low

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions