[Bug 50789] Multiple .NET applications crash with unimplemented 'System.Security.Principal.WindowsIdentity.get_Owner' using Wine-Mono (Affinity Photo 1.9.1)

WineHQ Bugzilla wine-bugs at winehq.org
Wed Mar 10 05:54:55 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50789

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|-unknown                    |mscoree
             Status|UNCONFIRMED                 |NEW
                 CC|                            |focht at gmx.net
                URL|                            |https://web.archive.org/web
                   |                            |/20210310074014/https://sec
                   |                            |uredl.cdn.chip.de/downloads
                   |                            |/54314858/affinity-photo-1.
                   |                            |9.1.exe?cid=103235188&platf
                   |                            |orm=chip&1615361687-1615369
                   |                            |187-f826d3-B-e27fe858a03d1f
                   |                            |69658a56632e9672e0.exe=
     Ever confirmed|0                           |1
            Summary|Affinity Photo 1.9.1        |Multiple .NET applications
                   |installer crashes           |crash with unimplemented
                   |                            |'System.Security.Principal.
                   |                            |WindowsIdentity.get_Owner'
                   |                            |using Wine-Mono (Affinity
                   |                            |Photo 1.9.1)

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming.

The managed backtrace from Wine 6.3 matches yours from Wine-Staging:

--- snip ---
Unhandled Exception:
System.NotImplementedException: The method or operation is not implemented.
  at System.Security.Principal.WindowsIdentity.get_Owner () [0x00000] in
<3d7a9349295c42b6abb3487b4473a6b8>:0 
  at SetupUI.App.OnStartup (System.Windows.StartupEventArgs e) [0x0000f] in
<d5a13fa7ac63422e98d49b7ef571a683>:0 
  at System.Windows.Application.<.ctor>b__1_0 (System.Object unused) [0x00014]
in <448e66291df6403d9c976e81bc01fa3f>:0 
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall
(System.Delegate callback, System.Object args, System.Int32 numArgs) [0x000c6]
in <bc6a8e4ae05c4436a373d86253e7438b>:0 
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object
source, System.Delegate callback, System.Object args, System.Int32 numArgs,
System.Delegate catchHandler) [0x00004] in <bc6a8e4ae05c4436a373d86253e7438b>:0 
  at System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate
callback, System.Object args, System.Int32 numArgs, System.Delegate
catchHandler) [0x00001] in <bc6a8e4ae05c4436a373d86253e7438b>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeImpl () [0x00099] in
<bc6a8e4ae05c4436a373d86253e7438b>:0 
  at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext
(System.Object state) [0x00008] in <bc6a8e4ae05c4436a373d86253e7438b>:0 
  at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper
(System.Object obj) [0x0001d] in <bc6a8e4ae05c4436a373d86253e7438b>:0 
  at System.Threading.ExecutionContext.RunInternal
(System.Threading.ExecutionContext executionContext,
System.Threading.ContextCallback callback, System.Object state, System.Boolean
preserveSyncCtx) [0x00071] in <3d7a9349295c42b6abb3487b4473a6b8>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext
executionContext, System.Threading.ContextCallback callback, System.Object
state, 
...
  at System.Windows.Application.Run () [0x00009] in
<448e66291df6403d9c976e81bc01fa3f>:0 
  at SetupUI.App.Main () [0x0000e] in <d5a13fa7ac63422e98d49b7ef571a683>:0 
--- snip ---

Similar to bug 25167 ("Multiple .NET applications crash with unimplemented
System.Security.Principal.WindowsIdentity.get_User (Eraser 6.0, Chocolatey
package manager, WinAuth 3.6.x) when using Wine-Mono") which is about
'System.Security.Principal.WindowsIdentity.User' property.

Refining summary in anticipation of more dupes.

Mono sources:

https://github.com/mono/mono/blob/5e70c0b65b43f233799f3639c22a76f407240428/mcs/class/corlib/System.Security.Principal/WindowsIdentity.cs#L252

--- snip ---
        [MonoTODO ("not implemented")]
        [ComVisible (false)]
        public SecurityIdentifier Owner {
            get { throw new NotImplementedException (); }
        }
--- snip ---

NOTE: With native .NET Framework 4.7 installed the installer works but it needs
a patch from bug 45868 ("Multiple .NET 4.x applications crash due to
shell32.SHGetStockIconInfo lacking support for SHGSI_ICON flag (Windower 5
beta/FF XI tool, Affinity Designer 1.x)").

'SetupUI.log':

--- snip ---
...
+ProductVersion: 1.9.1
+InstallType: Normal
+Initialising main window...
+Unhandled exception:
+  Message: Value cannot be null.
Parameter name: icon
+  StackTrace:
   at System.Windows.Interop.Imaging.CreateBitmapSourceFromHIcon(IntPtr icon,
Int32Rect sourceRect, BitmapSizeOptions sizeOptions)
   at SetupUI.Util.GetShieldIcon()
   at SetupUI.MainWindow..ctor()
   at SetupUI.App.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at
System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Boolean
isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority,
Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at SetupUI.App.Main()
--- snip ---

$sha1sum affinity-photo-1.9.1.exe 
f68d5fcd52e58a1501ab1ff7b4eb35ac8422f863  affinity-photo-1.9.1.exe

$ du -sh affinity-photo-1.9.1.exe 
527M    affinity-photo-1.9.1.exe

$ wine --version
wine-6.3

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.


More information about the wine-bugs mailing list