http://bugs.winehq.org/show_bug.cgi?id=28682
Bug #: 28682 Summary: Ragnarok download shows a .NET exception on start Product: Wine Version: 1.3.30 Platform: x86 URL: http://www.ragnarokeurope.com/inscription/inscrire.php OS/Version: Linux Status: NEW Keywords: dotnet, download Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com Classification: Unclassified
Created attachment 36860 --> http://bugs.winehq.org/attachment.cgi?id=36860 .net debug log
Download http://www.ragnarokeurope.com/telechargement/DLM/FilesDownloader.exe (sha1 cc0f63408d9ee46cd864a56bdd7b2372806d48f9) and run it. Wants .NET 2.0. Winetricks dotnet20, try again. Throws an exception:
************** Exception Text ************** System.Management.ManagementException: Error code: 0x80041001 at System.Management.ManagementScope.Initialize() at System.Management.ManagementObject.Initialize(Boolean getObject) at System.Management.ManagementClass.GetInstances(EnumerationOptions options) at System.Management.ManagementClass.GetInstances() at FilesDownloader.MainForm.GetCPUId() at FilesDownloader.MainForm.MainForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I'll attach the full info.
If you simply hit escape, download continues without problems.
Small download, 1.2MB.
http://bugs.winehq.org/show_bug.cgi?id=28682
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |wmi&wbemprox Depends on| |20651 Summary|Ragnarok download shows a |Ragnarok download shows a |.NET exception on start |.NET exception on start | |(needs Win32_Processor WMI | |class)
--- Comment #1 from Anastasius Focht focht@gmx.net 2011-12-13 05:43:15 CST --- Hello,
depends on infrastructure covered by bug 20651 (WBEM / WMI not implemented, affects many .NET apps). Not marking duplicate because once the core infrastructure is in place, various schema classes included in the "root\cimv2" namespace need to be implemented separately.
--- snip --- ... (29.2a): CLR exception - code e0434f4d (first chance) OS Thread Id: 0x2a (0) ESP EIP 0033eb00 7b838b8b [HelperMethodFrame: 0033eb00] 0033eba4 05701ccc System.Management.ManagementScope.Initialize() 0033ebd0 05701756 System.Management.ManagementObject.Initialize(Boolean) 0033ec2c 05701302 System.Management.ManagementClass.GetInstances(System.Management.EnumerationOptions) 0033ec68 05701237 System.Management.ManagementClass.GetInstances() 0033ec6c 05700290 FilesDownloader.MainForm.GetCPUId() 0033ec9c 02b720d0 FilesDownloader.MainForm.MainForm_Load(System.Object, System.EventArgs) ... --- snip ---
The .NET code:
--- snip --- ManagementClass class2 = new ManagementClass("Win32_Processor"); foreach (ManagementObject obj2 in class2.GetInstances()) { if (str == string.Empty) { str = obj2.Properties["ProcessorId"].Value.ToString(); } } --- snip ---
Making this bug targeting "Win32_Processor" WMI class.
MSDN: msdn.microsoft.com/en-us/library/windows/desktop/aa394373.aspx
Regards
http://bugs.winehq.org/show_bug.cgi?id=28682
--- Comment #2 from Anastasius Focht focht@gmx.net 2011-12-14 11:56:07 CST --- *** Bug 26826 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=28682
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |30089
http://bugs.winehq.org/show_bug.cgi?id=28682
--- Comment #3 from Hans Leidekker hans@meelstraat.net 2012-06-23 06:13:22 CDT --- There's a partial Win32_Processor implementation in Wine now, please try again.
http://bugs.winehq.org/show_bug.cgi?id=28682
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |30987, 30988
--- Comment #4 from Austin English austinenglish@gmail.com 2012-06-23 21:04:06 CDT --- (In reply to comment #3)
There's a partial Win32_Processor implementation in Wine now, please try again.
No, still present in 1.5.7. I'll attach a wbemprox trace.
http://bugs.winehq.org/show_bug.cgi?id=28682
--- Comment #5 from Austin English austinenglish@gmail.com 2012-06-23 21:04:24 CDT --- Created attachment 40670 --> http://bugs.winehq.org/attachment.cgi?id=40670 wbemprox trace
http://bugs.winehq.org/show_bug.cgi?id=28682
Bug 28682 depends on bug 20651, which changed state.
Bug 20651 Summary: Many .NET based applications need WMI core infrastructure (Wine doesn't provide a WMI implementation) http://bugs.winehq.org/show_bug.cgi?id=20651
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=28682
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |31032
http://bugs.winehq.org/show_bug.cgi?id=28682
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |31033
http://bugs.winehq.org/show_bug.cgi?id=28682
--- Comment #6 from Hans Leidekker hans@meelstraat.net 2012-06-27 07:33:49 CDT --- It currently after a call to IWbemServices::GetObject, which is bug 31033.
http://bugs.winehq.org/show_bug.cgi?id=28682
Bug 28682 depends on bug 31032, which changed state.
Bug 31032 Summary: Ragnarok download manager shows a .NET exception on start (GdipLoadImageFromStream stream clone fails) http://bugs.winehq.org/show_bug.cgi?id=31032
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=28682
Bug 28682 depends on bug 30987, which changed state.
Bug 30987 Summary: Ragnarok download manager needs native gdiplus http://bugs.winehq.org/show_bug.cgi?id=30987
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=28682
Bug 28682 depends on bug 31033, which changed state.
Bug 31033 Summary: Multiple apps need IWbemServices::GetObject to retrieve WMI class instances http://bugs.winehq.org/show_bug.cgi?id=31033
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=28682
--- Comment #7 from Anastasius Focht focht@gmx.net 2012-06-28 15:32:51 CDT --- Hello,
as Hans already stated here http://bugs.winehq.org/show_bug.cgi?id=31033#c4 the "ProcessorId" property is currently missing from Win32_Processor WMI class.
See code snippet in my comment #1
With that property added the app works and can download content. Yay! ;-)
Tidbit: The processor id (string) is used in conjunction with host ip address and another md5 hash to generate a client id to be sent to server.
Regards
http://bugs.winehq.org/show_bug.cgi?id=28682
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1b0d5cb10fbb8037477f102961c | |c1a87bdff27a1 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from Anastasius Focht focht@gmx.net 2012-06-29 14:46:38 CDT --- Hello,
fixed by commit http://source.winehq.org/git/wine.git/commitdiff/1b0d5cb10fbb8037477f102961c...
The app shows the user interface and the game content can be downloaded.
Thanks Hans.
Regards
http://bugs.winehq.org/show_bug.cgi?id=28682
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2012-07-03 14:13:55 CDT --- Closing bugs fixed in 1.5.8.