https://bugs.winehq.org/show_bug.cgi?id=30940
--- Comment #19 from Anastasius Focht focht@gmx.net --- Hello folks,
looks like we're aiming here for a new record to recycle as much as possible different issues in one bug report.
https://wiki.winehq.org/Mono#Versions
OP's bug report started with Wine 1.5.5 = Wine-Mono 0.0.4
The app refuses to start because Mono is not installed by default:
--- snip --- fixme:mscoree:CLRMetaHost_GetRuntime Unrecognized version L"v4.0" wine: Install Mono 2.8 or greater for Windows to run .NET 4.0 applications. --- snip ---
With Mono 2.8 installed from:
https://download.mono-project.com/archive/2.8/windows-installer/9/mono-2.8-g...
--- snip --- fixme:mscoree:CLRMetaHost_GetRuntime Unrecognized version L"v4.0" Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The entry point method could not be loaded --- snip ---
With Mono 2.10 installed from:
https://download.mono-project.com/archive/2.10.8/windows-installer/1/mono-2....
https://github.com/Winetricks/winetricks/commit/b0b1b167910c922d46bfadeeb200... ("winetricks: remove mono210, wine ships its own (and it is outdated)")
One gets to OP's backtrace:
--- snip --- Unhandled Exception: System.InvalidOperationException: WinForms_SeeInnerException ---> System.TypeInitializationException: An exception was thrown by the type initializer for Tween.AppendSettingDialog ---> System.OutOfMemoryException: Not enough memory to complete operation [GDI+ status: OutOfMemory] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0 at System.Drawing.Text.InstalledFontCollection..ctor () [0x00000] in <filename unknown>:0 at System.Drawing.FontFamily.get_Families () [0x00000] in <filename unknown>:0 at System.Windows.Forms.FontDialog.PopulateFontList () [0x00000] in <filename unknown>:0 at System.Windows.Forms.FontDialog..ctor () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.FontDialog:.ctor () at Tween.AppendSettingDialog.InitializeComponent () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) Tween.AppendSettingDialog:InitializeComponent () at Tween.AppendSettingDialog..ctor () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) Tween.AppendSettingDialog:.ctor () at Tween.AppendSettingDialog..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Tween.TweenMain..ctor () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Tween.My.MyProject+MyForms.Create__Instance__[TweenMain] (Tween.TweenMain Instance) [0x00000] in <filename unknown>:0 at Tween.My.MyProject+MyForms.get_TweenMain () [0x00000] in <filename unknown>:0 at Tween.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 at Tween.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0 --- snip ---
Starting with Wine 1.5.6 release, Wine-Mono 0.0.4 gets installed by default which makes explicit Mono install unnecessary.
https://source.winehq.org/git/wine.git/commitdiff/1e721a487775a2f306512a7c71... ("mscoree: Install Wine Mono on prefix update.")
Same backtrace as comment #0
OP's initial problem was fixed in Wine 1.5.7 release.
https://source.winehq.org/git/wine.git/commitdiff/ac38e69a92a443759cc8fb3291... ("gdiplus: Accept wider range of fonts.")
Qian's problem from comment #4:
'System.InvalidOperationException' at 'System.Windows.Forms.TableLayoutPanel.set_LayoutSettings'
This was fixed in Wine 1.7.32 release with the upgrade of Wine-Mono to 4.5.4
--- snip --- libgluezilla not found. To have webbrowser support, you need libgluezilla installed --- snip ---
This was fixed in Wine 4.11 release with the upgrade of Wine-Mono to 4.9.0
Next issue:
--- snip --- Unhandled Exception: System.InvalidOperationException: WinForms_SeeInnerException ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Loading of the ImageList did not succeed. at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x000d8] in <f2e4db7870624d78b14241d9fb824211>:0 at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6cc67c6253564d2282cafa9c7a2b691e>:0 --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 at System.Reflection.RuntimeConstructorInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <6cc67c6253564d2282cafa9c7a2b691e>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 at System.Reflection.RuntimeConstructorInfo.SerializationInvoke (System.Object target, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 ... at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6cc67c6253564d2282cafa9c7a2b691e>:0 --- End of inner exception stack trace --- at Tween.My.MyProject+MyForms.Create__Instance__[T] (T Instance) [0x000c6] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at Tween.My.MyProject+MyForms.get_TweenMain () [0x00000] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at Tween.My.MyApplication.OnCreateMainForm () [0x00006] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00010] in <8173e6b4976949eb9519e73fb97840ac>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00001] in <8173e6b4976949eb9519e73fb97840ac>:0 at Tween.My.MyApplication.Main (System.String[] Args) [0x00012] in <8c6b7ce36eb3413392c524bf588b0a21>:0 --- snip ---
This was fixed in Wine 4.14 release with the upgrade of Wine-Mono to 4.9.2
Another hang turned into a crash with Wine 4.20 release with the upgrade of Wine-Mono to 4.9.4
--- sni --- wine: Unhandled page fault on read access to 7FFDEFFE at address 7E949347 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x7ffdeffe in 32-bit code (0x7e949347). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:7e949347 ESP:0032fac0 EBP:0032ff28 EFLAGS:00010202( R- -- I - - - ) EAX:00000000 EBX:0013c3c0 ECX:00000001 EDX:7ffdf000 ESI:7ffdf000 EDI:0032fd08 ... Backtrace: =>0 0x7e949347 _CorExeMain+0x547() [Z:\home\focht\projects\wine\mainline-src-4.20\dlls\mscoree\corruntimehost.c:1485] in mscoree (0x0032ff28) 1 0x7b460d62 call_process_entry+0x11() in kernel32 (0x0032ff48) 2 0x7b461130 start_process+0xdf(peb=<couldn't compute location>) [Z:\home\focht\projects\wine\mainline-src-4.20\dlls\kernel32\process.c:186] in kernel32 (0x0032ffd8) 3 0x7b460d6e start_process_wrapper+0x9() in kernel32 (0x0032ffec) 0x7e949347 _CorExeMain+0x547 [Z:\home\focht\projects\wine\mainline-src-4.20\dlls\mscoree\corruntimehost.c:1485] in mscoree: cmpw $59,0xfffffffe(%esi,%eax,2) 1485 if (parsed_config.private_path[wcslen(parsed_config.private_path) - 1] != ';') number_of_private_paths++; --- snip ---
It was fixed in Wine 5.0-rc1 release but turned again into a hang.
With Wine 5.11 release which brought the upgrade of Wine-Mono to 4.9.0 it run a bit farther but still hang.
The hang was fixed in Wine 6.6 with the upgrade of Wine-Mono to 6.1.1
There is an error dialog on startup which can be dismissed and the main UI showed up for the first time.
Missing support for webbrowser 'IProfferService':
--- snip --- System.ArgumentNullException: Value cannot be null. Parameter name: pUnk at System.Runtime.InteropServices.Marshal.QueryInterface (System.IntPtr pUnk, System.Guid& iid, System.IntPtr& ppv) [0x0000d] in <a9da539eb2f94b1a84ab84db52450d46>:0 at Mono.Interop.ComInteropProxy.GetProxy (System.IntPtr pItf, System.Type t) [0x00006] in <a9da539eb2f94b1a84ab84db52450d46>:0 at System.Runtime.InteropServices.Marshal.GetObjectForIUnknown (System.IntPtr pUnk) [0x0000a] in <a9da539eb2f94b1a84ab84db52450d46>:0 at Tween.InternetSecurityManager..ctor (System.Windows.Forms.WebBrowser _WebBrowser) [0x000d0] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at Tween.TweenMain.Form1_Load (System.Object sender, System.EventArgs e) [0x00015] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x000d1] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Form.OnCreateControl () [0x00031] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Control.CreateControl (System.Boolean fIgnoreVisible) [0x000ed] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Control.CreateControl () [0x00008] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00051] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0071b] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00043] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x0001a] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Form.WmShowWindow (System.Windows.Forms.Message& m) [0x00013] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00290] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00001] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x000b3] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in <6a1e633bae3948029e60057de3abb3fd>:0 ... --- snip ---
Another, non-fatal error when clicking main menu items:
--- snip --- System.NullReferenceException: Object reference not set to an instance of an object at Tween.TweenMain.MenuItemEdit_DropDownOpening (System.Object sender, System.EventArgs e) [0x00000] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at System.Windows.Forms.ToolStripDropDownItem.OnDropDownShow (System.EventArgs e) [0x00020] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.ToolStripMenuItem.OnDropDownShow (System.EventArgs e) [0x00029] in <6a1e633bae3948029e60057de3abb3fd>:0 at System.Windows.Forms.ToolStripDropDownItem.ShowDropDownInternal () [0x0001f] in <6a1e633bae3948029e60057de3abb3fd>:0 ... --- snip ---
That one was fixed in Wine 6.14 release with the upgrade of Wine-Mono to 6.3.0
Another crash, matching comment #17
--- snip --- Unhandled Exception: System.ComponentModel.Win32Exception (0x80004005): Bad EXE format for %1.
at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00102] in <0c924620d2cd4b85a989ca168d44cf08>:0 at System.Diagnostics.Process.Start () [0x00032] in <0c924620d2cd4b85a989ca168d44cf08>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <0c924620d2cd4b85a989ca168d44cf08>:0 at System.Diagnostics.Process.Start (System.String fileName) [0x00006] in <0c924620d2cd4b85a989ca168d44cf08>:0 at Tween.MyCommon.ExceptionOut (System.Exception ex) [0x001df] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at Tween.My.MyApplication.MyApplication_UnhandledException (System.Object sender, Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs e) [0x00039] in <8c6b7ce36eb3413392c524bf588b0a21>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.raise_UnhandledException (System.Object sender, Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs e) [0x00037] in <c87c6bce56f94b189b597cb46966522f>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnUnhandledException (Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs e) [0x0001e] in <c87c6bce56f94b189b597cb46966522f>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnUnhandledExceptionEventAdaptor (System.Object sender, System.Threading.ThreadExceptionEventArgs e) [0x0000e] in <c87c6bce56f94b189b597cb46966522f>:0 at System.Windows.Forms.Application+ThreadContext.OnThreadException (System.Exception t) [0x0003a] in <549c758871b2437dae49530d4382de22>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.OnThreadException(System.Exception) at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00006] in <549c758871b2437dae49530d4382de22>:0 at System.Windows.Forms.Control.WndProcException (System.Exception e) [0x00001] in <549c758871b2437dae49530d4382de22>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.WndProcException(System.Exception) at System.Windows.Forms.Control+ControlNativeWindow.OnThreadException (System.Exception e) [0x00001] in <549c758871b2437dae49530d4382de22>:0 at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x0003f] in <549c758871b2437dae49530d4382de22>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.NativeWindow.Callback(System.Windows.Forms.Message&) at System.Windows.Forms.NativeWindowProc.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x00037] in <549c758871b2437dae49530d4382de22>:0 at (wrapper native-to-managed) System.Windows.Forms.NativeWindowProc.Callback(intptr,int,intptr,intptr) at (wrapper managed-to-native) System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(System.Windows.Forms.NativeMethods/MSG&) at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponentID, System.Int32 reason, System.Int32 pvLoopData) [0x001d7] in <549c758871b2437dae49530d4382de22>:0 at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00282] in <549c758871b2437dae49530d4382de22>:0 at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0001a] in <549c758871b2437dae49530d4382de22>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int,System.Windows.Forms.ApplicationContext) at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00006] in <549c758871b2437dae49530d4382de22>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00044] in <c87c6bce56f94b189b597cb46966522f>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel () [0x00058] in <c87c6bce56f94b189b597cb46966522f>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x0001b] in <c87c6bce56f94b189b597cb46966522f>:0 at Tween.My.MyApplication.Main (System.String[] Args) [0x00012] in <8c6b7ce36eb3413392c524bf588b0a21>:0 --- snip ---
This is a secondary bug though, caused by the builtin bug reporter tool.
The current issue from Esme's comment #18 is the one mentioned earlier: missing support for webbrowser 'IProfferService'.
--- snip --- 0024:fixme:ieframe:WBServiceProvider_QueryService (0026FD90)->({cb728b20-f786-11ce-92ad-00aa00a74cd0}, {cb728b20-f786-11ce-92ad-00aa00a74cd0} 02DA5F94) [00000024:] EXCEPTION handling: System.ArgumentNullException: Value cannot be null. Parameter name: pUnk --- snip ---
Wine source:
https://source.winehq.org/git/wine.git/blob/86eaf7eeb2603d1b13d18e3fe71a615e...
The corresponding app C# code:
https://github.com/opentween/OpenTween/blob/master/OpenTween/WebBrowserContr...
--- snip --- ... public InternetSecurityManager(WebBrowser _WebBrowser) { // ActiveXコントロール取得 _WebBrowser.Url = new Uri("about:blank"); //ActiveXを初期化する
do { Thread.Sleep(100); Application.DoEvents(); } while (_WebBrowser.ReadyState != WebBrowserReadyState.Complete);
ocx = _WebBrowser.ActiveXInstance;
// IServiceProvider.QueryService() を使って IProfferService を取得 ocxServiceProvider = (WebBrowserAPI.IServiceProvider)ocx;
try { ocxServiceProvider.QueryService( ref WebBrowserAPI.SID_SProfferService, ref WebBrowserAPI.IID_IProfferService, out profferServicePtr); } catch (SEHException ex) { MyCommon.TraceOut(ex, "ocxServiceProvider.QueryService() HRESULT:" + ex.ErrorCode.ToString("X8") + Environment.NewLine); return; } catch (ExternalException ex) { MyCommon.TraceOut(ex, "ocxServiceProvider.QueryService() HRESULT:" + ex.ErrorCode.ToString("X8") + Environment.NewLine); return; }
profferService = (WebBrowserAPI.IProfferService)Marshal.GetObjectForIUnknown(profferServicePtr);
// IProfferService.ProfferService() を使って // 自分を IInternetSecurityManager として提供 try { profferService.ProfferService( ref WebBrowserAPI.IID_IInternetSecurityManager, this, out var cookie); } catch (SEHException ex) { MyCommon.TraceOut(ex, "IProfferSerive.ProfferService() HRESULT:" + ex.ErrorCode.ToString("X8") + Environment.NewLine); return; } catch (ExternalException ex) { MyCommon.TraceOut(ex, "IProfferSerive.ProfferService() HRESULT:" + ex.ErrorCode.ToString("X8") + Environment.NewLine); return; } } --- snip ---
So what now? Are we going to continue to recycle the bug over and over again? The summary doesn't make any sense as of now.
Eiher we reuse it one last time for missing webbrowser 'IProfferService' support which warrants some correction of the title or we use one of the earlier issues as resolution and call it a day here.
$ wine --version wine-7.0-rc5
Regards