thehankinator Posted April 2, 2016 Share Posted April 2, 2016 I was trying to run a LE game("MyGame" with no modifications to start.map, NOT the editor) through gDebugger and I saw a bunch of errors concerning the function pointers for various functions. The error indicates that the function pointers are being setup for context #1 but not updated for context 2-4. There is a post with a pretty good explanation for what's going on and when it's important(below). gDebugger crashes when building up the shader program which is weird, but be related to the function pointers. Should be fixed regardless. gDebugger and MyGame.exe log below. Also, why are 4 contexts created(first 3 destroyed)? This issue may go away if only one was created. http://stackoverflow.com/questions/9663262/resetting-opengl-extension-pointers-in-windows-api Thread Created: 9964 DLL Loaded: C:\Windows\SysWOW64\ntdll.dll DLL Loaded: C:\Windows\SysWOW64\kernel32.dll DLL Loaded: C:\Windows\SysWOW64\KernelBase.dll Thread Created: 9388 Thread Created: 10420 DLL Loaded: C:\Windows\SysWOW64\ws2_32.dll Thread Created: 472 DLL Loaded: C:\Users\username\Documents\Leadwerks\Projects\MyGame\steam_api.dll DLL Loaded: C:\Windows\SysWOW64\sechost.dll DLL Loaded: C:\Users\username\Documents\Leadwerks\Projects\MyGame\lua51.dll DLL Loaded: C:\Windows\SysWOW64\advapi32.dll DLL Loaded: C:\Windows\SysWOW64\OpenAL32.dll DLL Loaded: C:\Windows\SysWOW64\rpcrt4.dll DLL Loaded: C:\Windows\SysWOW64\msvcrt.dll DLL Loaded: C:\Windows\SysWOW64\msvcr100.dll DLL Loaded: C:\Windows\SysWOW64\sspicli.dll DLL Loaded: C:\Windows\SysWOW64\shell32.dll DLL Loaded: C:\Windows\SysWOW64\cryptbase.dll DLL Loaded: C:\Windows\SysWOW64\windows.storage.dll DLL Loaded: C:\Windows\SysWOW64\bcryptprimitives.dll DLL Loaded: C:\Windows\SysWOW64\combase.dll DLL Loaded: C:\Windows\SysWOW64\nsi.dll DLL Loaded: C:\Windows\SysWOW64\shlwapi.dll DLL Loaded: C:\Windows\SysWOW64\psapi.dll DLL Loaded: C:\Windows\SysWOW64\winmm.dll DLL Loaded: C:\Windows\SysWOW64\user32.dll DLL Loaded: C:\Windows\SysWOW64\gdi32.dll DLL Loaded: C:\Program Files\AMD\AMD gDEBugger\spies\opengl32.dll DLL Loaded: C:\Windows\SysWOW64\kernel.appcore.dll DLL Loaded: C:\Windows\SysWOW64\winmmbase.dll DLL Loaded: C:\Windows\SysWOW64\winmmbase.dll DLL Loaded: C:\Windows\SysWOW64\SHCore.dll DLL Loaded: C:\Windows\SysWOW64\ole32.dll DLL Loaded: C:\Windows\SysWOW64\cfgmgr32.dll DLL Loaded: C:\Windows\SysWOW64\powrprof.dll DLL Loaded: C:\Windows\SysWOW64\profapi.dll DLL Loaded: C:\Windows\SysWOW64\ddraw.dll DLL Unloaded: C:\Windows\SysWOW64\winmmbase.dll DLL Loaded: C:\Program Files\AMD\AMD gDEBugger\GRBaseTools.dll DLL Loaded: C:\Program Files\AMD\AMD gDEBugger\GROSWrappers.dll DLL Loaded: C:\Windows\SysWOW64\oleaut32.dll DLL Loaded: C:\Program Files\AMD\AMD gDEBugger\GRApiClasses.dll DLL Loaded: C:\Program Files\AMD\AMD gDEBugger\GRSpiesUtilities.dll DLL Loaded: C:\Windows\SysWOW64\msvcp100.dll DLL Loaded: C:\Windows\SysWOW64\devobj.dll DLL Loaded: C:\Windows\SysWOW64\dciman32.dll DLL Loaded: C:\Windows\SysWOW64\version.dll DLL Loaded: C:\Windows\SysWOW64\dbghelp.dll DLL Loaded: C:\Windows\SysWOW64\imm32.dll DLL Loaded: C:\Windows\SysWOW64\msctf.dll API Connection Established: gDEBugger Servers Manager Thread Created: 10464 Process Run Started Thread Created: 10444 Thread Terminated: 10444 DLL Loaded: C:\Windows\SysWOW64\mswsock.dll DLL Loaded: C:\Program Files (x86)\Steam\steamclient.dll DLL Loaded: C:\Windows\SysWOW64\crypt32.dll DLL Loaded: C:\Windows\SysWOW64\msasn1.dll DLL Loaded: C:\Windows\SysWOW64\imagehlp.dll DLL Loaded: C:\Windows\SysWOW64\setupapi.dll DLL Loaded: C:\Windows\SysWOW64\IPHLPAPI.DLL DLL Loaded: C:\Program Files (x86)\Steam\tier0_s.dll DLL Loaded: C:\Windows\SysWOW64\winnsi.dll DLL Loaded: C:\Program Files (x86)\Steam\vstdlib_s.dll DLL Loaded: C:\Windows\SysWOW64\secur32.dll DLL Loaded: C:\Windows\SysWOW64\cryptsp.dll DLL Loaded: C:\Windows\SysWOW64\bcrypt.dll DLL Loaded: C:\Windows\SysWOW64\rsaenh.dll DLL Loaded: C:\Program Files (x86)\Steam\Steam.dll DLL Loaded: C:\Program Files (x86)\Steam\Steam2.dll Thread Created: 7524 Thread Terminated: 7524 Thread Created: 6964 DLL Loaded: C:\Windows\SysWOW64\dbgcore.dll DLL Loaded: C:\Program Files (x86)\Steam\CSERHelper.dll Thread Terminated: 6964 DLL Loaded: C:\Program Files (x86)\Steam\GameOverlayRenderer.dll DLL Loaded: C:\Windows\SysWOW64\uxtheme.dll DLL Loaded: C:\Windows\SysWOW64\dwmapi.dll DLL Loaded: C:\Windows\SysWOW64\opengl32.dll DLL Loaded: C:\Windows\SysWOW64\glu32.dll API Connection Established: gDEBugger OpenGL Server Debug String: gDEBugger OpenGL Server was initialized DLL Loaded: C:\Windows\SysWOW64\atiglpxx.dll DLL Loaded: C:\Windows\SysWOW64\atioglxx.dll DLL Loaded: C:\Windows\SysWOW64\atiadlxy.dll DLL Loaded: C:\Windows\SysWOW64\userenv.dll DLL Loaded: C:\Windows\SysWOW64\propsys.dll DLL Loaded: C:\Windows\SysWOW64\wtsapi32.dll DLL Loaded: C:\Windows\SysWOW64\wintrust.dll DLL Loaded: C:\Windows\SysWOW64\atigktxx.dll DLL Unloaded: C:\Windows\SysWOW64\atigktxx.dll DLL Loaded: C:\Windows\SysWOW64\atigktxx.dll OpenGL Render Context 1 Created OpenGL Render Context 2 Created Debug String: Detected error: The debugged process asked for an extension function pointer (glBindFramebuffer) from one render context, but called this function pointer in another render context (context #2) Debug String: Detected error: The debugged process asked for an extension function pointer (glGenBuffers) from one render context, but called this function pointer in another render context (context #2) Debug String: Detected error: The debugged process asked for an extension function pointer (glGenVertexArrays) from one render context, but called this function pointer in another render context (context #2) Debug String: Detected error: The debugged process asked for an extension function pointer (glBindVertexArray) from one render context, but called this function pointer in another render context (context #2) Checking for memory leaks - Context 1 deleted No memory leaks were found OpenGL Render Context 1 Deleted Debug String: Detected error: The debugged process asked for an extension function pointer (wglChoosePixelFormatARB) from one render context, but called this function pointer in another render context (context #2) Debug String: Detected error: The debugged process asked for an extension function pointer (wglCreateContextAttribsARB) from one render context, but called this function pointer in another render context (context #2) OpenGL Render Context 3 Created Debug String: Detected error: The debugged process asked for an extension function pointer (glBindFramebuffer) from one render context, but called this function pointer in another render context (context #3) Debug String: Detected error: The debugged process asked for an extension function pointer (glGenBuffers) from one render context, but called this function pointer in another render context (context #3) Debug String: Detected error: The debugged process asked for an extension function pointer (glGenVertexArrays) from one render context, but called this function pointer in another render context (context #3) Debug String: Detected error: The debugged process asked for an extension function pointer (glBindVertexArray) from one render context, but called this function pointer in another render context (context #3) Debug String: Detected error: The debugged process asked for an extension function pointer (glDeleteVertexArrays) from one render context, but called this function pointer in another render context (context #3) OpenGL Render Context 3 Deleted Debug String: Detected error: The debugged process asked for an extension function pointer (glBindBuffer) from one render context, but called this function pointer in another render context (context #2) Debug String: Detected error: The debugged process asked for an extension function pointer (glBufferData) from one render context, but called this function pointer in another render context (context #2) Debug String: Detected error: The debugged process asked for an extension function pointer (glBindBufferBase) from one render context, but called this function pointer in another render context (context #2) Thread Created: 10736 Thread Created: 11436 Debug String: Detected error: The debugged process asked for an extension function pointer (glDeleteBuffers) from one render context, but called this function pointer in another render context (context #2) OpenGL Render Context 4 Created Debug String: Detected error: The debugged process asked for an extension function pointer (glBindFramebuffer) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glGenBuffers) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glGenVertexArrays) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glBindVertexArray) from one render context, but called this function pointer in another render context (context #4) DLL Loaded: C:\Windows\SysWOW64\clbcatq.dll DLL Loaded: C:\Windows\SysWOW64\MMDevAPI.dll DLL Loaded: C:\Windows\SysWOW64\AudioSes.dll DLL Loaded: C:\Windows\SysWOW64\WinTypes.dll Thread Created: 10404 Thread Created: 7552 Debug String: Detected error: The debugged process asked for an extension function pointer (glActiveTexture) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glCreateShader) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glShaderSource) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glCompileShader) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glGetShaderiv) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glCreateProgram) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glBindFragDataLocation) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glBindAttribLocation) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glAttachShader) from one render context, but called this function pointer in another render context (context #4) Debug String: Detected error: The debugged process asked for an extension function pointer (glLinkProgram) from one render context, but called this function pointer in another render context (context #4) Second Chance Exception Thread Created: 4864 Thread Created: 11580 Initializing Lua... Warning: Lua sandboxing disabled. Executing file "C:/Users/username/Documents/Leadwerks/Projects/MyGame/Scripts/Error.lua" Executing file "C:/Users/username/Documents/Leadwerks/Projects/MyGame/Scripts/Main.lua" Setting breakpad minidump AppID = 480 Steam_SetMinidumpSteamID: Caching Steam ID: 76561197964459319 [API loaded no] Initializing OpenGL4 graphics driver... OpenGL version 451 GLSL version 450 Device: AMD Radeon (TM) R9 380 Series Loading map "C:/Users/username/Documents/Leadwerks/Projects/MyGame/Maps/start.map"... Loading material "C:/Users/username/Documents/Leadwerks/Projects/MyGame/materials/developer/orangegrid.mat"... Loading shader "C:/Users/username/Documents/Leadwerks/Projects/MyGame/shaders/model/diffuse.shader"... Quote Link to comment Share on other sites More sharing options...
macklebee Posted April 2, 2016 Share Posted April 2, 2016 is this with the editor? that has multiple contexts in the editor window afaik... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
thehankinator Posted April 2, 2016 Author Share Posted April 2, 2016 is this with the editor? that has multiple contexts in the editor window afaik... This is with the game(MyGame.exe) not the editor. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 4, 2016 Share Posted April 4, 2016 The engine creates a backup invisible context from which all contexts are shared. Otherwise all textures would be lost if the user destroys a window. I don't consider it a bug if a function pointer is shared across contexts, since this works on every implementation of OpenGL I've ever seen. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.