https://bugs.winehq.org/show_bug.cgi?id=41911
Bug ID: 41911 Summary: Studio One 3 fails to launch because of missing FindNLSStringEx implementation Product: Wine Version: 1.9.24 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: meerkatanonymous@gmail.com Distribution: ---
Studio One 3 fails to launch because of this error:
wine: Call from 0x7bc6159c to unimplemented function KERNEL32.dll.FindNLSStringEx, aborting
https://bugs.winehq.org/show_bug.cgi?id=41911
meerkatanonymous@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86 |x86-64
https://bugs.winehq.org/show_bug.cgi?id=41911
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Summary|Studio One 3 fails to |Studio One 3 needs |launch because of missing |KERNEL32.FindNLSStringEx |FindNLSStringEx | |implementation |
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #1 from meerkatanonymous@gmail.com --- Created attachment 56303 --> https://bugs.winehq.org/attachment.cgi?id=56303 FindNLSStringEx implementation
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #2 from meerkatanonymous@gmail.com --- Simple implementation for FindNLSStringEx.
Studio One 3 still won't load, but I believe this is a different issue.
This is by no means complete, it doesn't handle locales, most flags are ignored, etc.
https://bugs.winehq.org/show_bug.cgi?id=41911
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #3 from Austin English austinenglish@gmail.com --- Patches should be submitted to wine-patches@winehq.org. See https://wiki.winehq.org/SubmittingPatches
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #4 from meerkatanonymous@gmail.com --- True :)
This is not intended to be a patch yet though, it's quite dirty, and probably shouldn't be merged until it's cleaned up. I'm just leaving this here in case it helps any developer willing to implement this (or anyone else stumbling upon this issue) :)
https://bugs.winehq.org/show_bug.cgi?id=41911
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |isiraseneviratne@yahoo.com
--- Comment #5 from Austin English austinenglish@gmail.com --- *** Bug 42598 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=41911
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Studio One 3 needs |Studio One 3/Microsoft |KERNEL32.FindNLSStringEx |Office 2016 need | |kernel32.FindNLSStringEx
https://bugs.winehq.org/show_bug.cgi?id=41911
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |bunglehead@gmail.com Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- Confirming, I'll take a look.
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #7 from Isira Seneviratne isiraseneviratne@yahoo.com --- This bug affects Access 2013 Date/Time fields as well.
https://bugs.winehq.org/show_bug.cgi?id=41911
Adrian Kalla adrian.kalla@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adrian.kalla@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=41911
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
https://bugs.winehq.org/show_bug.cgi?id=41911
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bunglehead@gmail.com |wine-bugs@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=41911
BP bapartridge+wine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bapartridge+wine@gmail.com
--- Comment #8 from BP bapartridge+wine@gmail.com --- Any update on getting this patch accepted? Seems lots of Microsoft software is blocked on this fix.
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #9 from meerkatanonymous@gmail.com --- I didn't submit the patch because I didn't have any proper way of testing it (even earlier buggy versions I wrote worked for Studio One 3, but it would always crash at a later step), and also because it doesn't implement all the functionality of FindNLSStringEx, namely various localization-specific parts of the code, again because I couldn't test properly (and because I don't know much about localization).
Does the patch fix the problem for Office products?
https://bugs.winehq.org/show_bug.cgi?id=41911
Jens Staal staal1978@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |staal1978@gmail.com
--- Comment #10 from Jens Staal staal1978@gmail.com --- This bug also affects PowerShell
https://github.com/PowerShell/PowerShell/issues/4619
https://bugs.winehq.org/show_bug.cgi?id=41911
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Studio One 3/Microsoft |Multiple Microsoft |Office 2016 need |applications need |kernel32.FindNLSStringEx |kernel32.FindNLSStringEx | |(Studio One 3, Microsoft | |Office 2016, PowerShell 6) CC| |focht@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=41911
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/PowerShe | |ll/PowerShell/releases/down | |load/v6.0.0-beta.5/PowerShe | |ll-6.0.0-beta.5-win7-x86.ms | |i Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello folks,
I've refined the summary to collect more apps.
Steps to reproduce with PowerShell 6.x:
Download: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/Pow...
--- snip --- $ winetricks -q dotnet40 $ winetricks win7 # if not default upon creation $ wine msiexec -i PowerShell-6.0.0-beta.5-win7-x86.msi --- snip ---
Run:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/PowerShell/6.0.0-beta.5
$ wine ./powershell.exe ... fixme:msvcrt:_configure_wide_argv (1) stub fixme:msvcrt:_initialize_wide_environment stub ... fixme:process:GetNumaHighestNodeNumber (0x3beffc): semi-stub fixme:thread:SetThreadStackGuarantee (0x3beff8): stub fixme:ntdll:EtwEventRegister ({e13c0d23-ccbc-4e12-931b-d9cc2eee27e4}, 0x794e20, 0x97bb90, 0x984fe8) stub. fixme:ntdll:EtwEventRegister ({763fd754-7086-4dfe-95eb-c01a46faf4ca}, 0x794e20, 0x97bb20, 0x984fd8) stub. fixme:ntdll:EtwEventRegister ({a669021c-c450-4609-a035-5af59af4df18}, 0x794e20, 0x97bb58, 0x984fe0) stub. fixme:wer:WerRegisterRuntimeExceptionModule (L"C:\Program Files\PowerShell\6.0.0-beta.5\mscordaccore.dll", 0x5a0000) stub! fixme:process:FlushProcessWriteBuffers : stub ... fixme:ntdll:EtwEventRegister ({a0c1853b-5c40-4b15-8766-3cf1c58f985a}, 0x3e3536, (nil), 0xf214b4) stub.
Unhandled Exception: fixme:module:load_library unsupported flag(s) used (flags: 0x00000800) fixme:module:load_library unsupported flag(s) used (flags: 0x00000800) System.TypeInitializationException: The type initializer for 'System.Management.Automation.Utils' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'FindNLSStringEx' in DLL 'kernel32.dll'. at Interop.Kernel32.FindNLSStringEx(Char* lpLocaleName, UInt32 dwFindNLSStringFlags, Char* lpStringSource, Int32 cchSource, Char* lpStringValue, Int32 cchValue, Int32* pcchFound, Void* lpVersionInformation, Void* lpReserved, IntPtr sortHandle) at System.Globalization.CompareInfo.FindString(UInt32 dwFindNLSStringFlags, String lpStringSource, Int32 startSource, Int32 cchSource, String lpStringValue, Int32 startValue, Int32 cchValue, Int32* pcchFound) at System.Globalization.CompareInfo.IndexOfCore(String source, String target, Int32 startIndex, Int32 count, CompareOptions options, Int32* matchLengthPtr) at System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, Int32 count, CompareOptions options) at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType) at System.String.IndexOf(String value, StringComparison comparisonType) at Microsoft.Win32.RegistryKey.ValidateKeyName(String name) at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at System.Management.Automation.Platform.get_IsNanoServer() at System.Management.Automation.Platform.get_IsInbox() at System.Management.Automation.Utils..cctor() --- End of inner exception stack trace --- at System.Management.Automation.PSSnapInReader.ReadRegistryInfo(Version& assemblyVersion, String& publicKeyToken, String& culture, String& architecture, String& applicationBase, Version& psVersion) at System.Management.Automation.PSSnapInReader.ReadCoreEngineSnapIn() at System.Management.Automation.Runspaces.InitialSessionState.ImportCorePSSnapIn() at System.Management.Automation.Runspaces.InitialSessionState.CreateDefault2() at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args, Int32 argc) at Microsoft.PowerShell.ManagedPSEntry.Main(String[] args) in C:\powershell\src\powershell\Program.cs:line 23 wine: Unhandled exception 0xe0434352 in thread 9 at address 0x7bc50023:0x7b446223 (thread 0009), starting debugger... --- snip ---
So anything that uses .NET 4+ System.Globalization.CompareInfo class will encounter this problem.
$ wine --version wine-2.15
Regards
https://bugs.winehq.org/show_bug.cgi?id=41911
Mikhail Paulyshka me@mixaill.tk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |me@mixaill.tk
--- Comment #12 from Mikhail Paulyshka me@mixaill.tk ---
winetricks -q dotnet40 So anything that uses .NET 4+ System.Globalization.CompareInfo class will encounter this problem.
Little correction: you do not need to install dotnet40 for Powershell Core. It contains bundled .NET Core 2.0 which uses FindNLSStringEx.
https://github.com/dotnet/coreclr/search?q=FindNLSStringEx&type=Code&...
https://bugs.winehq.org/show_bug.cgi?id=41911
Luke lukebenes@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lukebenes@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=41911
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=41911
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=41911
oleg_krv krivorot.oleg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |krivorot.oleg@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=41911
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |2d74a4ff43284c35447ed2a915b | |0b5b3e40748f1
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com --- Partial implementation is in Wine now, see 2d74a4ff43284c35447ed2a915b0b5b3e40748f1. Marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #14 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming, tested with MS PowerShell, works fine for me
Thanks Sergio
Regards
https://bugs.winehq.org/show_bug.cgi?id=41911
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.4.
https://bugs.winehq.org/show_bug.cgi?id=41911
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://github.com/PowerShe |https://web.archive.org/web |ll/PowerShell/releases/down |/20210312102608/https://git |load/v6.0.0-beta.5/PowerShe |hub.com/PowerShell/PowerShe |ll-6.0.0-beta.5-win7-x86.ms |ll/releases/download/v6.0.0 |i |-beta.5/PowerShell-6.0.0-be | |ta.5-win7-x86.msi