Bug 515 - libgdiplus is missing a dllmap on MacOS in mono 2.10.4
Summary: libgdiplus is missing a dllmap on MacOS in mono 2.10.4
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: 2.10.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-29 05:09 UTC by Alan McGovern
Modified: 2017-11-23 16:30 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
screencast (4.40 MB, video/quicktime)
2011-08-29 05:09 UTC, Alan McGovern
Details
Screenshot of MonoDevelop after update to MonoFramework-MDK-2.10.5_0.macos10.xamarin.x86.dmg and using MonoDevelop 2.6 r2 (330.82 KB, image/png)
2011-08-30 09:00 UTC, John Cartwright
Details
MonoDevelop dtruss output (3.14 MB, text/plain)
2011-09-16 12:23 UTC, Rex
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Alan McGovern 2011-08-29 05:09:19 UTC
Created attachment 204 [details]
screencast

Got this trying to debug unit tests using the latest version of xUnit - 

00000000   ldsfld
00000005   stsfld 
0000000a   ldc.i4.0 
0000000b   stsfld 
00000010   ldc.i4.0
00000011   stsfld 
00000016   ldc.i4.0 
00000017   stsfld 
0000001c   ldc.i4.0 
0000001d   conv.i8 
0000001e   stsfld
00000023   call OperatingSystem System.Environment:get_OSVersion ()
00000028   callvirt PlatformID System.OperatingSystem:get_Platform ()
0000002d   stloc.0 
0000002e   ldloc.0 
0000002f   ldc.i4.4
00000030   beq 00000047
00000035   ldloc.0 
00000036   ldc.i4.6 
00000037   beq 00000047
0000003c   ldloc.0
0000003d   ldc.i4 128
00000042   bne.un 000000bf
00000047   ldstr not_supported_MONO_MWF_USE_NEW_X11_BACKEND
0000004c   call String System.Environment:GetEnvironmentVariable ()
00000051   brtrue 00000065
00000056   ldstr MONO_MWF_MAC_FORCE_X11
0000005b   call String System.Environment:GetEnvironmentVariable ()
00000060   brfalse 00000070
00000065   ldc.i4.1 
00000066   stsfld
0000006b   br 000000bf
00000070   ldc.i4 8192
00000075   call IntPtr System.Runtime.InteropServices.Marshal:AllocHGlobal ()
0000007a   stloc.1 
0000007b   ldloc.1
0000007c   call Int32 System.Drawing.GDIPlus:uname ()
00000081   brfalse 00000091
00000086   ldc.i4.1 
00000087   stsfld 
0000008c   br 000000b9
00000091   ldloc.1 
00000092   call String System.Runtime.InteropServices.Marshal:PtrToStringAnsi ()
00000097   stloc.2
00000098   ldloc.2
00000099   ldstr Darwin
0000009e   call Boolean System.String:op_Equality ()
000000a3   brfalse 000000b3
000000a8   ldc.i4.1
000000a9   stsfld
000000ae   br 000000b9
000000b3   ldc.i4.1
000000b4   stsfld
000000b9   ldloc.1
000000ba   call Void System.Runtime.InteropServices.Marshal:FreeHGlobal ()
000000bf   call GdiplusStartupInput System.Drawing.GdiplusStartupInput:MakeGdiplusStartupInput ()
000000c4   stloc.3
000000c5   call GdiplusStartupOutput System.Drawing.GdiplusStartupOutput:MakeGdiplusStartupOutput ()
000000ca   stloc.s 4
000000cc   ldsflda
000000d1   ldloca.s 3
000000d3   ldloca.s 4
000000d5   call Status System.Drawing.GDIPlus:GdiplusStartup ()
000000da   pop
000000db   leave 000000fa
000000e0   pop
000000e1   call TextWriter System.Console:get_Error ()
000000e6   ldstr * ERROR: Can not initialize GDI+ library{0}{0}Please check http://www.mono-project.com/Problem:GDIPlusInit for details
000000eb   call String System.Environment:get_NewLine ()
000000f0   callvirt Void System.IO.TextWriter:WriteLine ()
000000f5   leave 000000fa
000000fa   call AppDomain System.AppDomain:get_CurrentDomain ()
000000ff   ldnull
00000100   ldftn Void System.Drawing.GDIPlus:ProcessExit ()
00000106   newobj Void System.EventHandler:.ctor ()
0000010b   callvirt Void System.AppDomain:add_ProcessExit ()
00000110   ret


MonoDevelop: 2.6 RC2
Runtime: Mono 2.10.4 (tarball Mon Aug  8 22:03:39 EDT 2011)
Operating System: Mac OSX (Unix 10.8.0.0)
Comment 1 Miguel de Icaza [MSFT] 2011-08-29 19:26:45 UTC
Alan, 

This should have been fixed in 2.10.5, can you retry?
Comment 2 Alan McGovern 2011-08-29 19:33:11 UTC
This was an assistly bug which I moved here earlier so it could be tracked properly. The original reporter is on the CC so he should be able to easily test with 2.10.5. If not, I should be able to get to it tomorrow.
Comment 3 John Cartwright 2011-08-30 09:00:37 UTC
Created attachment 211 [details]
Screenshot of MonoDevelop after update to MonoFramework-MDK-2.10.5_0.macos10.xamarin.x86.dmg and using MonoDevelop 2.6 r2
Comment 4 John Cartwright 2011-08-30 09:24:12 UTC
I've attached a screenshot of the issue I now have after upgrading to MonoFramework-MDK-2.10.5_0.macos10.xamarin.x86.dmg.  I had to revert back to the 2.10.4 MDK.
Comment 5 Rex 2011-08-30 13:39:18 UTC
I am getting the same issue. Running OSX 10.6.2, Mono 2.10.5, MonoDevelop 2.6 RC1.

Here's is some the logged error w/ stacktrace:
cat ~/Library/Logs/MonoDevelop-2.6/MonoDevelop.log 
Starting MonoDevelop
   Loading Workbench
      Initializing Main Window
WARNING [2011-08-30 07:30:07Z]: Pango-Warning: failed to choose a font, expect ugly output. engine-type='PangoRenderATSUI', script='latin'
Stack trace: 
   at Gtk.Widget.SizeRequest()
   at MonoDevelop.Components.DockToolbars.FixedPanel.OnSizeRequested(Requisition ByRef req) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.DockToolbars/FixedPanel.cs:line 202
   at Gtk.Widget.sizerequested_cb(IntPtr widget, IntPtr requisition)
   at Gtk.Widget.gtksharp_widget_base_size_request(IntPtr , IntPtr )
   at Gtk.Widget.OnSizeRequested(Requisition ByRef requisition)
   at MonoDevelop.Ide.Gui.WorkbenchWindow.OnSizeRequested(Requisition ByRef requisition) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/WorkbenchWindow.cs:line 105
   at Gtk.Widget.sizerequested_cb(IntPtr widget, IntPtr requisition)
   at Gtk.Widget.gtk_widget_realize(IntPtr )
   at Gtk.Widget.Realize()
   at MonoDevelop.Ide.Gui.Workbench.Show(System.String workbenchMemento) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:line 105
   at MonoDevelop.Ide.IdeApp.Initialize(IProgressMonitor monitor) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:line 179
   at MonoDevelop.Ide.IdeStartup.Run(System.String[] args) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 220
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args) in /sources/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:line 24
WARNING [2011-08-30 07:30:07Z]: Pango-Warning: failed to choose a font, expect ugly output. engine-type='PangoRenderATSUI', script='common'
Stack trace: 
   at Gtk.Widget.SizeRequest()
   at MonoDevelop.Components.DockToolbars.FixedPanel.OnSizeRequested(Requisition ByRef req) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.DockToolbars/FixedPanel.cs:line 202
   at Gtk.Widget.sizerequested_cb(IntPtr widget, IntPtr requisition)
   at Gtk.Widget.gtksharp_widget_base_size_request(IntPtr , IntPtr )
   at Gtk.Widget.OnSizeRequested(Requisition ByRef requisition)
   at MonoDevelop.Ide.Gui.WorkbenchWindow.OnSizeRequested(Requisition ByRef requisition) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/WorkbenchWindow.cs:line 105
   at Gtk.Widget.sizerequested_cb(IntPtr widget, IntPtr requisition)
   at Gtk.Widget.gtk_widget_realize(IntPtr )
   at Gtk.Widget.Realize()
   at MonoDevelop.Ide.Gui.Workbench.Show(System.String workbenchMemento) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:line 105
   at MonoDevelop.Ide.IdeApp.Initialize(IProgressMonitor monitor) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:line 179
   at MonoDevelop.Ide.IdeStartup.Run(System.String[] args) in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 220
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args) in /sources/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:line 24
Comment 6 Rex 2011-09-16 12:22:25 UTC
I'm getting this error on a fresh install of OSX with only Mono 2.10.5 installed. I'll also add the dtruss output I got when running MonoDevelop.
Comment 7 Rex 2011-09-16 12:23:02 UTC
Created attachment 400 [details]
MonoDevelop dtruss output
Comment 8 Rex 2011-09-16 13:02:09 UTC
I also wanted to note that OSX is setup to use English.
Comment 9 John Cartwright 2011-11-09 16:04:16 UTC
Just an FYI.  I am now able to run the X-Unit GUI application (the task which exposed the missing lib issue for me at least) using version 2.8.2 and runtime 2.10.6.
Comment 10 Alexander Köplinger [MSFT] 2017-11-23 16:30:15 UTC
Looks like this was resolved a long time ago, closing.