cody's picture

GameWindow not working on Ubuntu 11.04 + nVidia

Project:The Open Toolkit library
Version:1.1.0-2013-11-22
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I get this Exception on Ubuntu 11.04 64 bit with nVidia closed source drivers.
It worked on 10.10.

System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Graphics.GraphicsMode ---> System.PlatformNotSupportedException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGraphicsMode () [0x00000] in :0
at OpenTK.Graphics.GraphicsMode..cctor () [0x00000] in :0


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Are you using multiple monitors? Please test the 'xrandr' command on a terminal - does it return a list of GraphicsModes?

cody's picture

#2

One monitor. xrandr output:

xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1920 x 1200, maximum 1920 x 1200
default connected 1920x1200+0+0 0mm x 0mm
1920x1200 50.0*
1920x1080 51.0
1680x1050 52.0 53.0 54.0 55.0
1600x1200 56.0 57.0 58.0
1600x1024 59.0
1440x900 60.0
1400x1050 61.0 62.0 63.0 64.0 65.0
1360x768 66.0 67.0
1280x1024 68.0 69.0 70.0
1280x960 71.0 72.0
1152x864 73.0 74.0 75.0 76.0 77.0 78.0 79.0
1024x768 80.0 81.0 82.0 83.0 84.0 85.0 86.0
960x720 87.0 88.0 89.0
960x600 90.0
960x540 91.0
928x696 92.0 93.0
896x672 94.0 95.0
840x525 96.0 97.0 98.0 99.0 100.0
832x624 101.0
800x600 102.0 103.0 104.0 105.0 106.0 107.0 108.0 109.0 110.0 111.0
800x512 112.0
720x450 113.0
720x400 114.0
700x525 115.0 116.0 117.0 118.0
680x384 119.0 120.0
640x512 121.0 122.0 123.0
640x480 124.0 125.0 126.0 127.0 128.0 129.0 130.0 131.0
640x400 132.0
640x350 133.0
576x432 134.0 135.0 136.0 137.0 138.0 139.0 140.0
512x384 141.0 142.0 143.0 144.0 145.0
416x312 146.0
400x300 147.0 148.0 149.0 150.0 151.0
360x200 152.0
320x240 153.0 154.0 155.0 156.0
320x200 157.0
320x175 158.0

cody's picture

#3

I installed many packages and now it works. But in the default install it doesnt. Which libs are necessary for opentk?

the Fiddler's picture

#4

Interesting, so that was I wasn't able to reproduce. I'll install Natty beta2 on a VM to test.

Dependencies for 1.x-dev:

  • (Native) libGL.so.1, libX11.so, libopenal.so.1, libXi.so, libXrandr.so.2, libXinerama.so. The latter four are optional (the library should work even if they are not availarble).
  • (Managed) mscorlib, System.dll, System.Drawing.dll, System.Xml.dll.

1.0 also depends on System.Windows.Forms.dll but does not need libXi.so.

g.steiner's picture

#5

Hi.

I experienced the same kind of error with a code running well on previous ubuntu.

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Graphics.GraphicsMode ---> System.PlatformNotSupportedException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGraphicsMode () [0x00000] in :0
at OpenTK.Graphics.GraphicsMode..cctor () [0x00000] in :0

Cody, could you tell me what package you installed in order to make it work ?

Thanks

cody's picture

#6

Sorry, I dont remember that. I installed at least 100 packages.

rotard's picture

#7

How about a hint? A few examples? Were they nVidia packages found in Synaptic? I am experiencing the same issue with a GTX 460M

rotard's picture

#8

I installed mesa-common-dev, mesa-utils, and mesa-utils-extra and now it works. W00t! You probably don't need all of those, so if anyone is interested, you might try installing them one at a time and see which one does it

g.steiner's picture

#9

Thanks. mesa-common-dev do the job.

the Fiddler's picture

#10

Are you using the closed-source drivers (i.e. nvidia) or the open-source ones (nouveau)?