Skip to content

[coreclr] CoreCLR does not load correct satellite resources #124901

@ilonatommy

Description

@ilonatommy

Reproduction:
Run Wasm.Build.Tests.SatelliteLoadingTests

Error:

Collection: [···, "es-ES without satellite: hello", "fr-FR without satellite: hello", "default: hello", "es-ES with satellite: hello", "fr-FR with satellite: hello"]
        Error:      Assert.Equal() Failure: Strings differ
                                                      � (pos 23)
                    Expected: "es-ES with satellite: hola"
                    Actual:   "es-ES with satellite: hello"
                                                      � (pos 23)
Details Wasm.Build.Tests.SatelliteLoadingTests.LoadSatelliteAssembly(loadAllSatelliteResources: False) [FAIL] Assert.Collection() Failure: Item comparison failure � (pos 4) Collection: [···, "es-ES without satellite: hello", "fr-FR without satellite: hello", "default: hello", "es-ES with satellite: hello", "fr-FR with satellite: hello"] Error: Assert.Equal() Failure: Strings differ � (pos 23) Expected: "es-ES with satellite: hola" Actual: "es-ES with satellite: hello" � (pos 23) Stack Trace: C:\Users\itomkowicz\repros\runtime2\src\mono\wasm\Wasm.Build.Tests\SatelliteLoadingTests.cs(54,0): at Wasm.Build.Tests.SatelliteLoadingTests.<>c.b__1_4(String m) Stack Trace: C:\Users\itomkowicz\repros\runtime2\src\mono\wasm\Wasm.Build.Tests\SatelliteLoadingTests.cs(57,0): at Wasm.Build.Tests.SatelliteLoadingTests.LoadSatelliteAssembly(Boolean loadAllSatelliteResources) at System.Runtime.CompilerServices.AsyncHelpers.RuntimeAsyncTask`1.DispatchContinuations() --- End of stack trace from previous location --- --- End of stack trace from previous location --- Output:
      ** -------- build -------- **
      
      Binlog path: C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\xharness-output\logs\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\WasmBasicTestApp-build.binlog
      [] Executing (Captured Output) - C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none\dotnet.exe build -bl:C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\xharness-output\logs\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\WasmBasicTestApp-build.binlog -p:Configuration=Debug -nr:false -p:WasmEnableHotReload=false  -  in pwd C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\App
      	[DOTNET_ROOT] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none
      	[DOTNET_INSTALL_DIR] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none
      	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
      	[PATH] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none;C:\Users\itomkowicz\repros\runtime2\.dotnet;C:\Program Files\PowerShell\7;c:\Users\itomkowicz\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\debugCommand;c:\Users\itomkowicz\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\copilotCli;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Azure Dev CLI;C:\Program Files\GitHub CLI\;C:\Users\vmadmin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\.tools\dotnet;C:\.tools\.npm-global;C:\Users\vmadmin\.dotnet\tools;C:\Program Files\NuGet;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft Dev Box Agent\Scripts;C:\Program Files\dotnet\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Users\itomkowicz\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\itomkowicz\AppData\Local\Programs\Python\Python311\;C:\Users\itomkowicz\AppData\Local\Microsoft\WindowsApps;C:\Program Files\ninja;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64;C:\Users\itomkowicz\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\v8;C:\Users\itomkowicz\AppData\Local\Microsoft\WinGet\Links;C:\Users\itomkowicz\AppData\Roaming\npm;C:\Users\itomkowicz\.dotnet\tools
      	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
      	[WasmEnableWebCil] = false
      	[WasmTestSupport] = true
      	[WasmTestExitOnUnhandledError] = true
      	[WasmTestLogExitCode] = true
      	[NUGET_PACKAGES] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\nuget\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv
      	[TreatPreviousAsCurrent] = false
      [] 
      []   Determining projects to restore...
      []   Restored C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\Json\Json.csproj (in 204 ms).
      []   Restored C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\ResourceLibrary\ResourceLibrary.csproj (in 204 ms).
      []   Restored C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\LazyLibrary\LazyLibrary.csproj (in 204 ms).
      []   Restored C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\App\WasmBasicTestApp.csproj (in 3.34 sec).
      [] C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none\sdk\11.0.100-preview.3.26124.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\App\WasmBasicTestApp.csproj]
      [] C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none\sdk\11.0.100-preview.3.26124.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\LazyLibrary\LazyLibrary.csproj]
      [] C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none\sdk\11.0.100-preview.3.26124.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\Json\Json.csproj]
      []   LazyLibrary -> C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\LazyLibrary\bin\Debug\net11.0\browser-wasm\LazyLibrary.dll
      []   Json -> C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\Json\bin\Debug\net11.0\Json.dll
      []   ResourceLibrary -> C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\ResourceLibrary\bin\Debug\net11.0\ResourceLibrary.dll
      []   WasmBasicTestApp -> C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\App\bin\Debug\net11.0\WasmBasicTestApp.dll
      []   ** MicrosoftNetCoreAppRuntimePackDir : 'C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\nuget\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\microsoft.netcore.app.runtime.browser-wasm\11.0.0-dev'
      [] 
      [] Build succeeded.
      []     0 Warning(s)
      []     0 Error(s)
      [] 
      [] Time Elapsed 00:00:23.77
      [] Executing - C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none\dotnet.exe run -c Debug --no-build  in pwd C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\App
      	[DOTNET_ROOT] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none
      	[DOTNET_INSTALL_DIR] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none
      	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
      	[PATH] = C:\Users\itomkowicz\repros\runtime2\artifacts\bin\dotnet-none;C:\Users\itomkowicz\repros\runtime2\.dotnet;C:\Program Files\PowerShell\7;c:\Users\itomkowicz\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\debugCommand;c:\Users\itomkowicz\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\copilotCli;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Azure Dev CLI;C:\Program Files\GitHub CLI\;C:\Users\vmadmin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\.tools\dotnet;C:\.tools\.npm-global;C:\Users\vmadmin\.dotnet\tools;C:\Program Files\NuGet;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft Dev Box Agent\Scripts;C:\Program Files\dotnet\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Users\itomkowicz\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\itomkowicz\AppData\Local\Programs\Python\Python311\;C:\Users\itomkowicz\AppData\Local\Microsoft\WindowsApps;C:\Program Files\ninja;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64;C:\Users\itomkowicz\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\v8;C:\Users\itomkowicz\AppData\Local\Microsoft\WinGet\Links;C:\Users\itomkowicz\AppData\Roaming\npm;C:\Users\itomkowicz\.dotnet\tools
      	[EM_WORKAROUND_PYTHON_BUG_34780] = 1
      	[WasmEnableWebCil] = false
      	[WasmTestSupport] = true
      	[WasmTestExitOnUnhandledError] = true
      	[WasmTestLogExitCode] = true
      [] WasmAppHost --use-staticwebassets --runtime-config C:\Users\itomkowicz\repros\runtime2\artifacts\bin\Wasm.Build.Tests\Release\net11.0\win-x64\wbt artifacts\SatelliteLoadingTests_Debug_False_3bv1h3m0_gcv\App\bin\Debug\net11.0\WasmBasicTestApp.runtimeconfig.json
      [] 
      [] App url: http://127.0.0.1:63490/index.html
      [] App url: https://127.0.0.1:63491/index.html
      [] Debug at url: http://127.0.0.1:63490/_framework/debug
      [] Debug at url: https://127.0.0.1:63491/_framework/debug
      Launching chrome ('C:\Program Files\Google\Chrome\Application\chrome.exe') via playwright with args = --explicitly-allowed-ports=63490,--ignore-certificate-errors,--lang=en-US,--headless
      Waiting for page to load
      Waiting for additional 10secs to see if any errors are reported
      [log] TestOutput -> default: hello
      [log] TestOutput -> es-ES without satellite: hello
      [log] TestOutput -> fr-FR without satellite: hello
      [log] TestOutput -> default: hello
      [log] TestOutput -> es-ES with satellite: hello
      [log] TestOutput -> fr-FR with satellite: hello
      Exited with 0
      [log] WASM EXIT 0
      Browser has been disconnected

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions