Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005585opensim[REGION] OpenSim Corepublic2011-07-15 20:382011-08-03 14:27
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005585: APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs on Mac OS X 10.6.3
DescriptionI followed the installation instructions found on the website [^]

and installed the universal mono runtime. I then proceeded to run the OpenSim.exe and it asked me the initial configuration questions.

When I now start the OpenSimulator using

$ mono OpenSim.exe

it crashes with the following messages:

17:35:52 - [APPLICATION]:
APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs

Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.dylib
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int,System.Drawing.Imaging.PixelFormat)
  at OpenSim.Region.CoreModules.Scripting.VectorRender.VectorRenderModule.Initialise (OpenSim.Region.Framework.Scenes.Scene scene, IConfigSource config) [0x00000] in <filename unknown>:0
  at OpenSim.Region.Framework.ModuleLoader.InitialiseSharedModules (OpenSim.Region.Framework.Scenes.Scene scene) [0x00000] in <filename unknown>:0
  at OpenSim.OpenSimBase.CreateRegion (OpenSim.Framework.RegionInfo regionInfo, Boolean portadd_flag, Boolean do_post_init, IScene& mscene) [0x00000] in <filename unknown>:0
  at OpenSim.OpenSimBase.CreateRegion (OpenSim.Framework.RegionInfo regionInfo, Boolean portadd_flag, IScene& scene) [0x00000] in <filename unknown>:0
  at OpenSim.ApplicationPlugins.LoadRegions.LoadRegionsPlugin.PostInitialise () [0x00000] in <filename unknown>:0
  at OpenSim.OpenSimBase.StartupSpecific () [0x00000] in <filename unknown>:0
  at OpenSim.OpenSim.StartupSpecific () [0x00000] in <filename unknown>:0
  at OpenSim.Framework.Servers.BaseOpenSimServer.Startup () [0x00000] in <filename unknown>:0
  at OpenSim.Application.Main (System.String[] args) [0x00000] in <filename unknown>:0
InnerException: System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.dylib
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0

Application is terminating: True

Abort trap
TagsNo tags attached.
Git Revision or version number??
Run ModeStandalone (1 Region)
Physics EngineODE
Script Engine
EnvironmentMono / OSX
Mono Version2.10.2
Attached Files

- Relationships

-  Notes
justincc (administrator)
2011-07-30 14:37

You probably need to install the libgdiplus.dylib package on your system.
sfabel (reporter)
2011-08-01 13:19

Justin, I can read... I am asking where that library is supposed to be on my system. Obviously, it used to be part of the Mono requirement. It seems to not be contained in the Mono installation anymore.

This means the installation instructions are outdated. Please update them to reflect this change so people can install OpenSim on Mac OS X again.
makopoppo (manager)
2011-08-01 14:33

I rewrote this article, my OSX 10.6.X and Mono 2.6.7 and 2.10.2 tested.

Did you install Mono from macport? If so, you might need to install X, but I remember 10.6 or later no longer need it though...

If you install X and work fine, please tell me. I'll test the procedure again later. (My OSX box has MonoDevelop now, so need to delete it to do so)
sfabel (reporter)
2011-08-01 15:03

I installed the following dmg from [^]


X11 is installed on my Mac OS X 10.6.3.

The library is present on my machine:
$ ls -l /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus*.dylib
-rwxr-xr-x 1 root admin 1058408 Apr 30 08:57 /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.0.dylib
lrwxr-xr-x 1 root admin 18 Aug 1 11:53 /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.dylib -> libgdiplus.0.dylib

The error is still as above. I reinstalled the framework, but I did have MonoDevelop installed at one point in time. Are you saying that I need to uninstall it before this works?
makopoppo (manager)
2011-08-01 16:12

My box is almost similar to yours.

$ ls -l /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus*.dylib
-rwxr-xr-x 1 root admin 1058408 5 1 03:57 /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.0.dylib
lrwxr-xr-x 1 root admin 18 6 26 18:09 /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.dylib -> libgdiplus.0.dylib

I'll look for the similar issue in Mono forums, since at a glance there have been the same issue about libgdiplus.dylib won't be loaded. I'll check it a few hours later, since it is morning now and I have to go to office soon.
makopoppo (manager)
2011-08-02 04:43
edited on: 2011-08-02 04:44

Some mono users have reported this issue on Snow Leopard. [^]

What so far came up with my mind are ...

A. Try uninstall & install Framework. Following page has uninstall procedure. [^]

B. If you have "installed" 10.6 from the Snow Leopard DVD installer, try reinstall X11 from "Optional Installs" package in it. Or if you have macport X11, you might want to delete it before installing.

I have tested A. My box is 2011 early one so it comes with Snow Leopard, I can't test the case B. (I don't remember if I had installer DVD...)

sfabel (reporter)
2011-08-03 14:27

I've tried A, but can't test B as this is a Mac Mini which came with a pre-installed Snow Leopard. I suppose I could try to re-install the OS and see if that changes things, but I wouldn't even know how to do that without DVD drive.

At this point I'm seriously considering to just throw a Linux on the machine and get it over with...

Thanks for your help, I'd appreciate any more ideas.

- Issue History
Date Modified Username Field Change
2011-07-15 20:38 sfabel New Issue
2011-07-15 20:38 sfabel Git Revision => ??
2011-07-15 20:38 sfabel Run Mode => Standalone (1 Region)
2011-07-15 20:38 sfabel Physics Engine => ODE
2011-07-15 20:38 sfabel Environment => Mono / OSX
2011-07-15 20:38 sfabel Mono Version => 2.10.2
2011-07-30 14:37 justincc Note Added: 0019238
2011-07-30 14:37 justincc Status new => feedback
2011-08-01 13:19 sfabel Note Added: 0019297
2011-08-01 14:33 makopoppo Note Added: 0019299
2011-08-01 15:03 sfabel Note Added: 0019300
2011-08-01 16:12 makopoppo Note Added: 0019301
2011-08-02 04:43 makopoppo Note Added: 0019307
2011-08-02 04:44 makopoppo Note Edited: 0019307
2011-08-03 14:27 sfabel Note Added: 0019339

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker