pjcozzi's picture

QuickStart throws AccessViolationException on startup

Project:The Open Toolkit library
Version:1.0-2010-10-06
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

On Vista 64, ATI Radeon HD 5870 with Catalyst 10.3, and dual monitors (which may or may not matter).

The QuickStart throws an AccessViolationException on startup. Debug output, including call stack, is attached. Funny thing is the other examples run ok.

AttachmentSize
DebugOutput.txt7.05 KB

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

Thanks for the stack trace, this is a known issue that I haven't managed to reproduce yet (neither on Ati nor on Nvidia). I will try with dual monitors to see if that is playing a role.

the Fiddler's picture

#2

Priority:normal» critical
pjcozzi's picture

#3

I tried with a single monitor and can still reproduce it. I've unsuccessfully tried various calls to base() in Game's constructor, including the call used in the OpenGL 3 example, HelloGL3, which works on the same machine.

I believe it throws because mode.Index is null when this is called:

Debug.Print("GraphicsMode: {0}", mode);

See attached ToString.jpg. If I step over that line, creating a context throws:

implementation = factory.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags);

I've attached the parameters to CreateGLContext, see parameters.txt.

Let me know if there's anything you want me to try.

AttachmentSize
parameters.txt787 bytes
ToString.jpg286.89 KB
pjcozzi's picture

#4

Good news - after upgrading to Catalyst 10.4, this does not appear to be a problem. The QuickStart runs as you would expect.

the Fiddler's picture

#5

Version:1.0.0-rc1» 1.0-2010-10-06
Status:open» closed

This issue was fixed in 1.0-2010-10-06.