[Mono-osx] Mono 3.12.x breaks OpenTK on OSX

Johan Hammar johanhmr at gmail.com
Tue Mar 10 16:56:01 UTC 2015


I discovered and reported this bug already in August 2014 and Xamarin has
still not yet fixed it. I can spare you the effort of trying to build and
use the sysdrawing-coregraphics library which at first seems to be a
workaround. However there is a catch-22 since it will require XamMac.dll to
be built along with it and only Xamarin can do that (unless of course you
are using MonoMac in which case you may be able to build it). In addition
to this it is only partly implemented.

We simply need to keep pushing for Xamarin to solve this once for all.

/Johan

On Tue, Mar 10, 2015 at 5:44 PM, Stefanos A. <stapostol at gmail.com> wrote:

> OpenTK is using Bitmap on startup by converting a System.Drawing.Icon.
> Changing this would break the ABI.
>
> Is there no way to fix this in Mono? A 3-6 minute wait on first launch is
> unreasonable, no matter the cause.
> Στις 10 Μαρ 2015 5:32 μ.μ., ο χρήστης "Johan Hammar" <johanhmr at gmail.com>
> έγραψε:
>
> This is due to bug 17225
>> <https://bugzilla.xamarin.com/show_bug.cgi?id=17225>. This is happening
>> when either of System.Drawing.Color or System.Drawing.Bitmap is used for
>> the first time on the system at which time the font cache will be built.
>> This can take up to approx 3-6 minutes. After this initial build of the
>> font cache this will not happen again, i.e, it will usually only happen the
>> first time the user launches the application but not for any subsequent
>> launches.
>>
>> The only current work around to avoid this is to completely avoid using
>> System.Drawing.Color or System.Drawing.Bitmap in the application (not even
>> in resx files).
>>
>>
>> /Johan
>>
>>
>> On Tue, Mar 10, 2015 at 2:28 PM, Stefanos A. <stapostol at gmail.com> wrote:
>>
>>> I have encountered this issue before. It appears that System.Drawing.dll
>>> is hanging during initialization (inside libgdiplus).
>>>
>>> I have not had access to a Mac OS X system during the past several
>>> months, so I have not had a chance to investigate further.
>>>
>>>
>>> 2015-03-08 17:44 GMT+01:00 David Jeske <davidj at gmail.com>:
>>>
>>>> When I launch OpenTK apps on OSX with Mono 3.12.x, they never create
>>>> their window, instead I just get a wait cursor. They work fine after
>>>> backreving to Mono 3.10.0.
>>>>
>>>> Any ideas why?
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Mono-osx mailing list
>>>> Mono-osx at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Mono-osx mailing list
>>> Mono-osx at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20150310/6659cc42/attachment-0001.html>


More information about the Mono-osx mailing list