http://bugs.winehq.org/show_bug.cgi?id=22605
Summary: SafeNativeMethods.SelectObject Exception Product: Wine Version: 1.1.43 Platform: x86 OS/Version: Mac OS X 10.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dorian.grey@mail.com
I am trying to run the Open R-Community Tools (http://rcommunity.nazgulworld.com/index.php?page=dl). I did the following modifications: - used Wine 1.1.43 - Patched it according to Bug #16418 Comment #32 suggested -> helped over the first problem - installed the Winetricks MS gidplus.dll and ddr=gdi hacks (Note: there is an error in 1.1.43 with Wineticks - it points to a hard coded configuration file)
Then I got the following error (log attached)
at System.Windows.Forms.SafeNativeMethods.SelectObject(HandleRef hDC, HandleRef hObject) at System.Windows.Forms.ContainerControl.GetFontAutoScaleDimensions() at System.Windows.Forms.ContainerControl.get_CurrentAutoScaleDimensions() at System.Windows.Forms.ContainerControl.get_AutoScaleFactor() at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds) at System.Windows.Forms.ContainerControl.PerformNeededAutoScaleOnLayout() at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout) at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout) at OpenRCLib.usrBanner.InitializeComponent() at OpenRCLib.usrBanner..ctor() at OpenRCLib.frmManager.InitializeComponent() at OpenRCLib.frmManager..ctor() at OpenRCTools.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at OpenRCTools.My.MyApplication.Main(String[] Args)
http://bugs.winehq.org/show_bug.cgi?id=22605
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-05-06 12:22:14 --- I gave this app a try , but I can't reproduce this bug. Dorian, could you give the exact steps how to reproduce this bug, after the application has been launched?
http://bugs.winehq.org/show_bug.cgi?id=22605
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |(http://rcommunity.nazgulwo | |rld.com/index.php?page=dl
http://bugs.winehq.org/show_bug.cgi?id=22605
--- Comment #2 from Dorian Grey dorian.grey@mail.com 2010-05-06 12:43:12 --- Hello,
I did the following on Mac OS 10.6:
- Downloaded and installed Wine 1.1.35 binary. - Installed with Winetricks .net Framework 2.0 and the two dll patches - Upgraded to Version 1.1.43 (as there is a bug in Winetricks here, which prevents me from using Winetricks directly from 1.1.43 -> "Can't open config file: /Users/mike/Documents/darwine/usr/sll/openssl.conf" -> I didn't find an alternative solution here) - Downloaded Wine Source and the patch - Applied patch and compiled it according to the instructions (without additional libraries) - took the advapi32.dll.so (=only one altered in the patch) and replaced the one in the installed version 1.1.43. - started the application
http://bugs.winehq.org/show_bug.cgi?id=22605
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-05-06 14:25:56 ---
- started the application
So the crash occurs as the application is launched? That doesn't happen here, the app starts fine. Maybe this is a MacOS specific crash? Does installing fonts with 'winetricks allfonts' change anything?
http://bugs.winehq.org/show_bug.cgi?id=22605
--- Comment #4 from Dorian Grey dorian.grey@mail.com 2010-05-07 04:13:42 --- I managed to get it running installing the following Winetricks:
- dotnet20 - allfonts - gdiplus - ddr=gdi
But a lot of the functions do not work (primarily double click and right click). I attached the terminal output with the errors.
http://bugs.winehq.org/show_bug.cgi?id=22605
--- Comment #5 from Dorian Grey dorian.grey@mail.com 2010-05-07 04:14:30 --- Created an attachment (id=27789) --> (http://bugs.winehq.org/attachment.cgi?id=27789) Termial output with errors
http://bugs.winehq.org/show_bug.cgi?id=22605
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet Status|UNCONFIRMED |RESOLVED URL|(http://rcommunity.nazgulwo |http://rcommunity.nazgulwor |rld.com/index.php?page=dl |ld.com/download/open.php CC| |focht@gmx.net Resolution| |FIXED Summary|SafeNativeMethods.SelectObj |Open R-Community Tools |ect Exception |crashes | |(SafeNativeMethods.SelectOb | |ject Exception)
--- Comment #6 from Anastasius Focht focht@gmx.net 2010-08-05 02:33:04 --- Hello,
as Louis already said: there is no crash. The app v3.9.1 starts perfectly without any additional winetricks steps besides the initial .NET Framework 2.0 install.
Please use a _recent_ Wine version (1.2, 1.3) and not old one. Whatever problem you are encountering has probably been fixed some time ago.
Resolving fixed until the reporter can reproduce the problem with a _current_ Wine version. Reopen if the crash still happens with Wine 1.2.x, 1.3.x.
--- snip --- But a lot of the functions do not work (primarily double click and right click). I attached the terminal output with the errors. --- snip ---
Please stick to _one_ problem per bug.
Regards
http://bugs.winehq.org/show_bug.cgi?id=22605
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2010-08-20 12:39:20 --- Closing bugs fixed in 1.3.1.
http://bugs.winehq.org/show_bug.cgi?id=22605
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Mac OS X 10.6 |Mac OS X