[Bug 52407] New: dotnet-sdk-5.0.100-win-x64 simple example fails: error MSB4018: The "AssignCulture" task failed unexpectedly.
https://bugs.winehq.org/show_bug.cgi?id=52407 Bug ID: 52407 Summary: dotnet-sdk-5.0.100-win-x64 simple example fails: error MSB4018: The "AssignCulture" task failed unexpectedly. Product: Wine Version: 7.0-rc6 Hardware: x86-64 URL: https://download.visualstudio.microsoft.com/download/p r/2892493e-df43-409e-af68-8b14aa75c029/53156c889fc08f0 1b7ed8d7135badede/dotnet-sdk-5.0.100-win-x64.exe OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: xerox.xerox2000x(a)gmail.com Distribution: --- Note: this happens on version 5.0.100 of the downloadlink, another tested version like dotnet-sdk-5.0.100-rc.2.20479.15-win-x64.exe doesn`t show this, guess something has changed in the code (?) Steps: wget https://download.visualstudio.microsoft.com/download/pr/2892493e-df43-409e-a... wine dotnet-sdk-5.0.100-win-x64.exe wine dotnet new wpf -o myapp && cd myapp && wine dotnet run Output: 027c:fixme:nls:ResolveLocaleName stub: L"eo", 0000000028CCC000, 85 C:\Program Files\dotnet\sdk\5.0.100\Microsoft.Common.CurrentVersion.targets(2943,5): error MSB4018: The "AssignCulture" task f ailed unexpectedly. [Z:\home\louis\ramdisk\myapp\myapp.csproj] C:\Program Files\dotnet\sdk\5.0.100\Microsoft.Common.CurrentVersion.targets(2943,5): error MSB4018: System.TypeInitializationE xception: The type initializer for 'Microsoft.Build.Tasks.CultureInfoCache' threw an exception. [Z:\home\louis\ramdisk\myapp\m yapp.csproj] I did a bit of testing and in fact ResolveLocaleName _never_ returns 0, so i guess we could just improve stub a bit to return 1 and get away with it. I`ll attach improved stub that fixes the bug -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 --- Comment #1 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- Created attachment 71659 --> https://bugs.winehq.org/attachment.cgi?id=71659 improved stub for ResolveLocaleName Attached improved stub + tests (i've let them now fail to see what windows returns for int i), https://testbot.winehq.org/JobDetails.pl?Key=105289&f101=exe64.report&f102=t...) I'll tidy up and send after codefreeze -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 --- Comment #2 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- Another additional note: I guess it comes from this part of dotnet`s CultureData.Windows.cs: (https://codeload.github.com/dotnet/runtime/zip/refs/tags/v5.0.13) // Neutrals and non-neutrals are slightly different if (_bNeutral) { // Neutral Locale // IETF name looks like neutral name _sName = realNameBuffer; // Specific locale name is whatever ResolveLocaleName (win7+) returns. // (Buffer has our name in it, and we can recycle that because windows resolves it before writing to the buffer) result = Interop.Kernel32.ResolveLocaleName(realNameBuffer, pBuffer, Interop.Kernel32.LOCALE_NAME_MAX_LENGTH); // 0 is failure, 1 is invariant (""), which we expect if (result < 1) { return false; } // We found a locale name, so use it. // In vista this should look like a sort name (de-DE_phoneb) or a specific culture (en-US) and be in the "pretty" form _sSpecificCulture = new string(pBuffer, 0, result - 1); } -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |kernel32 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |focht(a)gmx.net Keywords| |dotnet --- Comment #3 from Anastasius Focht <focht(a)gmx.net> --- Hello Louis, a suggestion for the future: It would be helpful if you could already put stable archive.org links in the download field, along with sha1sum in the comment when creating and/or triaging bugs. Ideally we want to have as much bug reports as possible with archive.org links for exact reproduction and documentation purpose. Thanks. https://web.archive.org/web/20211123224154/https://download.visualstudio.mic... https://www.virustotal.com/gui/file/442fc0280c252aa5c9b63f661dd277912220db1f... $ sha1sum dotnet-sdk-5.0.100-win-x64.exe f58ecdb330111a4f491e0133a3c09a3f61d9b452 dotnet-sdk-5.0.100-win-x64.exe $ du -sh dotnet-sdk-5.0.100-win-x64.exe 143M dotnet-sdk-5.0.100-win-x64.exe Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|https://download.visualstud |https://web.archive.org/web |io.microsoft.com/download/p |/20211123224154/https://dow |r/2892493e-df43-409e-af68-8 |nload.visualstudio.microsof |b14aa75c029/53156c889fc08f0 |t.com/download/pr/2892493e- |1b7ed8d7135badede/dotnet-sd |df43-409e-af68-8b14aa75c029 |k-5.0.100-win-x64.exe |/53156c889fc08f01b7ed8d7135 | |badede/dotnet-sdk-5.0.100-w | |in-x64.exe -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|dotnet-sdk-5.0.100-win-x64 |dotnet-sdk-5.0.100-win-x64 |simple example fails: error |simple example fails: |MSB4018: The |Culture is not supported. |"AssignCulture" task failed |"aa" is an invalid culture |unexpectedly. |identifier. --- Comment #4 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- This bug has now evolved into different output. ResolveLocaleName is not called anymore but it now crashes with : "Culture is not supported. (Parameter 'name')\r\naa is an invalid culture identifier." (after :trace:nls:GetLocaleInfoEx L"aa") Changing title accordingly -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED Summary|dotnet-sdk-5.0.100-win-x64 |dotnet-sdk-5.0.100-win-x64 |simple example fails: |simple example fails: |Culture is not supported. |Culture is not supported. |"aa" is an invalid culture | |identifier. | --- Comment #5 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- I'm going to resolve my bugreport as duplicate of bug 52867 as that one has an easier way to reproduce. *** This bug has been marked as a duplicate of bug 52867 *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52407 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- Closing duplicate. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla