
OpenTK + Fedora
Posted Friday, 31 July, 2009 - 23:07 by fcmr inDoes OpenTK actually work on Fedora systems? I have had a few people I work with reporting strange issues and I'm not sure if it's related to Fedora, how mono is set up or the overall structure.
This is the basic error:
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Graphics.DisplayDevice ---> System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Platform.X11.X11XrandrDisplayDevice ---> System.ArgumentOutOfRangeException: Must be greater than zero.
Parameter name: width
It's really strange and we can't pinpoint it. The funny thing is that the software seems to work in Windows, Mac OSX, Gentoo Linux and several other flavors but not Fedora.
I don't really have a lot of information to go on and I'll take what I can get.
Thanks.


Comments
Re: OpenTK + Fedora
Thanks for finding the cause of this issue! I have added a workaround to trunk and the 0.9.8 branch to ignore invalid resolutions returned by XRandR.
Hopefully, this will allow OpenTK to work with Radeon & KMS until the issue is fixed upstream.
Re: OpenTK + Fedora
The workaround works. :)
Thanks!