Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Unigine Heaven on Windows 7, OpenGL mode, crashes when trying to trace #95
The free Unigine Heaven app crashes when trying to capture a trace in OpenGL mode. Here's the error I got:
Expression: context_map.find(context_id) == context_map.end()
For information on how your program can cause an assertion
(Press Retry to debug the application - JIT must be enabled) "
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
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.