[Bug 40248] New: Exception when I try to call Translate method
https://bugs.winehq.org/show_bug.cgi?id=40248 Bug ID: 40248 Summary: Exception when I try to call Translate method Product: Wine Version: 1.9.4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs(a)winehq.org Reporter: gennady.alimov(a)gmail.com Distribution: --- Created attachment 53797 --> https://bugs.winehq.org/attachment.cgi?id=53797 code & exception if I try to translate SIDs to Names I've got the exception "Index was outside the bounds of the array." It looks like there is no mapping between account names and SIDs. -- 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=40248 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de --- Comment #1 from Sebastian Lackner <sebastian(a)fds-team.de> --- Could you maybe attach the full source for a minimal example, and also a compiled binary? -- 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=40248 --- Comment #2 from Gennady Alimov <gennady.alimov(a)gmail.com> --- Created attachment 53898 --> https://bugs.winehq.org/attachment.cgi?id=53898 compiled binary this is compiled binary -- 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=40248 --- Comment #3 from Gennady Alimov <gennady.alimov(a)gmail.com> --- Created attachment 53900 --> https://bugs.winehq.org/attachment.cgi?id=53900 source This is the source for compiled binary -- 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=40248 --- Comment #4 from Gennady Alimov <gennady.alimov(a)gmail.com> --- I've added source and compiled binary -- 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=40248 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest(a)luukku.com --- Comment #5 from winetest(a)luukku.com --- Tested the compiled exe against wine 1.9.20-git and staging 1.9.20 and they both fail. -- 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=40248 --- Comment #6 from winetest(a)luukku.com --- The error message has changed. at System.Security.Principal.WindowsIdentity.get_Groups () <0x1c0eff0 + 0x0001f> in <filename unknown>:0 at ConsoleApplication1.Program.Main (System.String[] args) <0x1bd0f60 + 0x0005f> in <filename unknown>:0 The method or operation is not implemented. wine 2.0rc6 and staging 2.0rc6. -- 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=40248 --- Comment #7 from Nikolay Sivov <bunglehead(a)gmail.com> --- Hi, Gennady. What version of .NET runtime are you testing with? With wine-mono it fails earlier, at 'id.Groups', because of this: --- WindowsIdentity.cs [MonoTODO ("not implemented")] public IdentityReferenceCollection Groups { get { throw new NotImplementedException (); } } --- -- 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=40248 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |download, source Summary|Exception when I try to |Some .NET applications |call Translate method |throw unhandled exception: | |System.NotImplementedExcept | |ion: | |'System.Management.Manageme | |ntObjectSearcher.Get' when | |using Wine-Mono Component|advapi32 |mscoree CC| |focht(a)gmx.net --- Comment #8 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, the app works fine here with .NET 4.0 Framework installed ('winetricks -q dotnet40) and Wine 3.5 --- snip --- $ wine ./ConsoleApplication1.exe ... 0009:fixme:advapi:LsaOpenPolicy ((null),0x33f054,0x00000800,0x33f02c) stub 0009:fixme:advapi:LsaClose (0xcafe) stub ... userName: n550\focht id.Groups: S-1-1-0 id.Groups: S-1-2-0 id.Groups: S-1-5-4 id.Groups: S-1-5-11 id.Groups: S-1-5-32-544 id.Groups: S-1-5-32-545 0009:fixme:advapi:LsaOpenPolicy ((null),0x33f084,0x00000800,0x33f05c) stub 0009:fixme:advapi:LsaClose (0xcafe) stub Everyone LOCAL NT AUTHORITY\INTERACTIVE NT AUTHORITY\Authenticated Users BUILTIN\Administrators BUILTIN\Users account: n550\focht 0009:fixme:advapi:LsaOpenPolicy ((null),0x33f08c,0x00000800,0x33f064) stub 0009:fixme:advapi:LsaClose (0xcafe) stub sid: S-1-5-21-0-0-0-1000 0009:fixme:advapi:GetWindowsAccountDomainSid (0xc9e824 0xc9e84c 0x33f1d0): semi-stub 0009:fixme:advapi:GetWindowsAccountDomainSid (0xc9e940 0xc9e964 0x33f1c8): semi-stub isDomainAdmin: False --- snip --- Making this ticket about Wine-Mono insufficiency to be still useful. https://github.com/mono/mono/blob/HEAD/mcs/class/corlib/System.Security.Prin... $ wine --version wine-3.5 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=40248 Gijs Vermeulen <gijsvrm(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #9 from Gijs Vermeulen <gijsvrm(a)gmail.com> --- This works fine with wine-9.8 and wine-mono-9.1.0. -- 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=40248 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #10 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.9. -- 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=40248 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |9c1ffb545f350743e71cdfcc0da | |e5e98324d10ee Summary|Some .NET applications |Multiple .NET applications |throw unhandled exception: |crash with unimplemented |System.NotImplementedExcept |'System.Security.Principal. |ion: |WindowsIdentity.get_Groups' |'System.Management.Manageme |using Wine-Mono |ntObjectSearcher.Get' when | |using Wine-Mono | --- Comment #11 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, adding/correcting information for completeness. The subject line "Some .NET applications throw unhandled exception: System.NotImplementedException: 'System.Management.ManagementObjectSearcher.Get' when using Wine-Mono" was certainly wrong/misleading and not related to the problem at all. Even with ancient Wine/Wine-Mono versions, the output was already hinting at the problem. Wine 1.7.8, Wine-Mono 4.5.2: --- snip --- userName: romi-n550\focht at System.Security.Principal.WindowsIdentity.get_Groups () [0x00000] in <filename unknown>:0 at ConsoleApplication1.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 The requested feature is not implemented. --- snip --- Anyway, it was fixed with the upgrade to Wine-Mono 8.1.0, commit https://source.winehq.org/git/wine.git/commit/9c1ffb545f350743e71cdfcc0dae5e... ("mscoree: Update Wine Mono to 8.1.0."). Part of Wine 8.19 release. Thanks Esme. Wine 8.19, Wine-Mono 8.1.0 --- snip --- userName: ROMI-N550\focht id.Groups: S-1-1-0 id.Groups: S-1-2-0 id.Groups: S-1-5-4 id.Groups: S-1-5-11 id.Groups: S-1-5-21-0-0-0-513 id.Groups: S-1-5-32-544 id.Groups: S-1-5-32-545 Everyone LOCAL NT AUTHORITY\INTERACTIVE NT AUTHORITY\Authenticated Users ROMI-N550\None BUILTIN\Administrators BUILTIN\Users account: ROMI-N550\focht sid: S-1-5-21-0-0-0-1000 0160:fixme:security:GetWindowsAccountDomainSid (00007FFFFEC5DB18 00007FFFFEC5DB58 00007FFFFE1FF4A8): semi-stub 0160:fixme:security:GetWindowsAccountDomainSid (00007FFFFEC5DCD8 00007FFFFEC5DD10 00007FFFFE1FF478): semi-stub isDomainAdmin: False --- snip --- One Wine-Mono release before: Wine 8.9, Wine-Mono 8.0.0 --- snip --- userName: ROMI-N550\focht at System.Security.Principal.WindowsIdentity.get_Groups () [0x00000] in <3d7a9349295c42b6abb3487b4473a6b8>:0 at ConsoleApplication1.Program.Main (System.String[] args) [0x00021] in <e6ce58cf1a9346c394d18192c399427f>:0 The method or operation is not implemented. --- snip --- Wine -> Wine-Mono mappings: https://wiki.winehq.org/Mono#Versions https://gist.github.com/rmi1974/a65b875934f87509b536a776347d007a (automated extraction, with hashes) For reference, related issues: * bug 32266 ("Songr Portable 2.0.1977 (.NET app) fails to start with Wine-Mono (needs WindowsIdentity.get_User)") * bug 50789 ("Multiple .NET applications crash with unimplemented 'System.Security.Principal.WindowsIdentity.get_Owner' using Wine-Mono (Affinity Photo 1.9.1, Pivot Animator 4.2)") 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.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla