Unigine Heaven on Windows 7, OpenGL mode, crashes when trying to trace #95

Closed
tonylombardi opened this Issue Sep 28, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@tonylombardi

The free Unigine Heaven app crashes when trying to capture a trace in OpenGL mode. Here's the error I got:

"Assertion failed!

Program:...
File: C:\Users\anthony.l\Documents\Git...\gltrac...ate.cpp
Line: 123

Expression: context_map.find(context_id) == context_map.end()

For information on how your program can cause an assertion
failure, see the VC++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled) "

@ghost ghost assigned jrfonseca Oct 4, 2012

@jrfonseca

This comment has been minimized.

Show comment Hide comment
@jrfonseca

jrfonseca Oct 4, 2012

Owner

I reproduced this. The problem is that OpenGL ICD drivers, when wglCreateContextAttribsARB is called, need to call wglCreateLayerContext internally (to tell Microsoft's opengl32.dll about the context), and apitrace trace both calls!!

So this is benign assetion failure -- it works fine on release.

I could easily eliminate the assertion failure, but I'd like to remove these internal ICD calls. I'll need to think a bit more about it.

But for the time being, either use a release build, or just comment the assertion.

Owner

jrfonseca commented Oct 4, 2012

I reproduced this. The problem is that OpenGL ICD drivers, when wglCreateContextAttribsARB is called, need to call wglCreateLayerContext internally (to tell Microsoft's opengl32.dll about the context), and apitrace trace both calls!!

So this is benign assetion failure -- it works fine on release.

I could easily eliminate the assertion failure, but I'd like to remove these internal ICD calls. I'll need to think a bit more about it.

But for the time being, either use a release build, or just comment the assertion.

@tonylombardi

This comment has been minimized.

Show comment Hide comment
@tonylombardi

tonylombardi Oct 5, 2012

Thanks for the quick response. Yes the release version worked great!

Thanks for the quick response. Yes the release version worked great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment