[Bug 45840] Steam Desktop Authenticator 1.0.9 (.NET 4.6 app) crashes in CefSharp managed wrapper '<Module>.CefInitialize' when clicking "View Confirmations" with Wine-Mono

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 16 12:16:53 CDT 2018


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

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
            Summary|Steam Desktop Authenticator |Steam Desktop Authenticator
                   |1.0.9 (.NET 4.6 app)        |1.0.9 (.NET 4.6 app)
                   |crashes when clicking "View |crashes in CefSharp managed
                   |Confirmations"              |wrapper
                   |                            |'<Module>.CefInitialize'
                   |                            |when clicking "View
                   |                            |Confirmations" with
                   |                            |Wine-Mono

--- Comment #4 from Anastasius Focht <focht at gmx.net> ---
Hello Ilnar,

--- quote ---
Maybe it's happening because the programm cannot start default browser, IE for
simple?
--- quote ---

Likely not, it's using the Chromium Embedded Framework (CEF) which provides an
own browser implementation. It used managed wrappers for .NET from this
project:

http://cefsharp.github.io/

NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework 

https://github.com/cefsharp/CefSharp

The callout from managed code to unmanaged:

https://github.com/cefsharp/CefSharp/blob/05b37ab61583cbc3c7aa2ce6dce42bf83bbce945/CefSharp.Core/Cef.h#L190

--- snip ---
...
            CefMainArgs main_args;
            CefRefPtr<CefSharpApp> app(new CefSharpApp(cefSettings,
browserProcessHandler));

auto success = CefInitialize(main_args, *(cefSettings->_cefSettings),
app.get(), NULL);
...
--- snip ---

Unmanaged (pinvoke) entry declaration:

--- snip ---
  [SuppressUnmanagedCodeSecurity]
  [MethodImpl(MethodImplOptions.Unmanaged | MethodImplOptions.PreserveSig,
MethodCodeType = MethodCodeType.Native)]
  [return: MarshalAs(UnmanagedType.U1)]
  internal static extern unsafe bool CefInitialize([In] CefMainArgs* obj0, [In]
CefStructBase\u003CCefSettingsTraits\u003E* obj1, [In]
scoped_refptr\u003CCefApp\u003E* obj2, [In] void* obj3);
--- snip ---

No idea since I don't come that far. Could be some interop marshalling problem
in the platform invoke for the 'libcef.dll.CefInitialize' entry point. Maybe
some object reference is invalid due to earlier problems.

You could try with native (Microsoft) .NET Framework 4.6.x using 'winetricks'.

Be aware installation of MS .NET Frameworks 4.x via 'winetricks' is broken
again in recent Wine versions due to MSI regressions. The frequency of MSI
regressions really *** me off so I didn't bother to look anymore.

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