jbosch's picture

Examples crash

Hi,

I've downloaded the latest version of Open TK for windows and many of the examples crashes when executed. Is there any requirement to run them? Is there any way to know the reason for the crash?

Thanks


Comments

Comment viewing options

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

May be you have an ATI with the lastest driver?!?
Opentk release works only with older ATI drivers

jbosch's picture

I have a nvidia graphics card in a notebook

hannesh's picture

I got this too on my desktop with ATi, but I've never had OpenTK programs I wrote myself crashing without it being my fault.

Tal's picture

I'd like to join this topic, because I had the same problem.
I just bought a new computer(yes, ATI card) last week and I've tried to run a Cloo example(before I even download OpenTK), but it crush because my current driver(Catalist) didn't support OpenCL/Stream(I saw this error when I install Stream SDK). I assume that there would no any OpenTK crush if I haven't upgrade the driver, but then I can't use OpenCL!
By the way- Stream SDK examples work fine for me so it is just OpenTK error for now.
Have any solution?

c2woody's picture

"crashes" is pretty unspecific information, isn't it?

Tal's picture

This is the content in .Net error dialog:

...
************** Exception Text **************
OpenTK.Graphics.GraphicsContextException: Requested GraphicsMode not available. SetPixelFormat error: 87
   at OpenTK.Platform.Windows.WinGLContext.SetGraphicsModePFD(GraphicsMode mode, WinWindowInfo window)
   at OpenTK.Platform.Windows.WinGLContext..ctor(GraphicsMode format, WinWindowInfo window, IGraphicsContext sharedContext, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.Platform.Windows.WinFactory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.WinGLControl.CreateContext(Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.GLControl.OnHandleCreated(EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
...
c2woody's picture

OpenTK version? What graphics card and what drivers? How far did you debug it?

nythrix's picture

2 Tal: The new ATI Stream SDK is no big deal, I'm afraid. Same old problems. They even managed to make some of them worse (i.e. "The Buggering Console").

Also: http://forums.amd.com/devforum/messageview.cfm?catid=390&threadid=138254...

Tal's picture

I know it's not.
I've downloaded this just for OpenCL support, because after I upgrade the driver it still didn't work, so I tought I give it a try, but apparently, all I needed is a reboot.
So I upgrade the driver for OpenCL support. Do you have anyway to keep OpenCL but make OpenTK works? Maybe some ATI driver version that they both work?

the Fiddler's picture

Try running Examples.exe from the installation directory directly, instead of the start-menu shortcut. If this doesn't work, you might have to compile OpenTK from source (which fixes a few bugs that cause examples to crash) or wait for the next release.

Compiling from source is easy: use TortoiseSVN to checkout the source from https://opentk.svn.sourceforge.net/svnroot/opentk/branches/1.0, double-click Build.exe and press enter to build.