Bug 24269 - dllmap for gdiplus wrong on the windows mono 3.2.3 installer.
Summary: dllmap for gdiplus wrong on the windows mono 3.2.3 installer.
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: 3.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Duncan Mak
Depends on:
Reported: 2014-11-05 00:21 UTC by Hin-Tak Leung
Modified: 2015-01-21 22:35 UTC (History)
3 users (show)

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

The same diff, in a separate file form. (738 bytes, patch)
2014-11-05 00:21 UTC, Hin-Tak Leung

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:

Description Hin-Tak Leung 2014-11-05 00:21:59 UTC
Created attachment 8627 [details]
The same diff, in a separate file form.

One proprietary windows software used to work under mono 2.x and stopped working
with 3.x with the mysterious error:

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.Form.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at <removed_internalclass_reference>.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.Component.Finalize () [0x00000] in <filename unknown>:0 

On running mono through --debug, I found that it is actually looking for "/tmp/install/lib/libgdiplus.so"
on windows, which is ridiculous. So I recursive grep'ed through it, and found
that it is due to a mis-configuration. Applying this diff makes the application concerned work again:

--- ../../Mono-3.2.3/etc/mono/config.orig	2013-09-15 03:23:08.000000000 +0100
+++ ../../Mono-3.2.3/etc/mono/config	2014-11-05 03:35:02.374253281 +0000
@@ -26,7 +26,7 @@
 		<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
 		<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
-	<dllmap dll="gdiplus" target="/tmp/install/lib/libgdiplus.so" />
-	<dllmap dll="gdiplus.dll" target="/tmp/install/lib/libgdiplus.so" />
+	<dllmap dll="gdiplus" target="/tmp/install/lib/libgdiplus.so" os="!windows"/>
+	<dllmap dll="gdiplus.dll" target="/tmp/install/lib/libgdiplus.so" os="!windows"/>
 	<dllmap dll="gtkhtml-3.0" target="libgtkhtml-3.8-15.dll"/>

The 3.2.3 installer is quite dated,
and this is likely an issue that's already addressed as my linux 3.8.0 do have the "!windows" part.
I am filing this so the issue is not forgotten, and hoping the next windows installer
will have it corrected, hopefully.

I'll close this when the next windows installer comes out with this corrected.
Comment 1 Zoltan Varga 2015-01-21 22:35:02 UTC
This is fixed in the mono 3.12 windows package.