I'm trying to debug some OpenGL "invalid operation" in my pyglet code. On 
OS X the best (and possibly only) option is the OpenGL Profiler that can be 
found in the Xcode Graphics Tools. This works fine for other OpenGL apps 
(I've tried VLC), but when I configure it to launch my pyglet code, Python 
crashes while trying to create the CoreGL context (see dump below). Any 
idea what's going wrong here and how to fix it? This does not happen when 
launched outside the profiler, but obviously something goes wrong with the 
combination of profiling and pyglet.

Process:         python3.3 [13300]
Path:            /Users/USER/*/python3.3
Identifier:      python3.3
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  OpenGL Profiler [13238]
Responsible:     OpenGL Profiler [13238]
User ID:         501

Date/Time:       2013-11-19 16:29:45.297 +0000
OS Version:      Mac OS X 10.9 (13A603)
Report Version:  11
Anonymous UUID:  BF51E47B-D0DF-D675-B5EA-2C76D95397B8


Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 0000000107451000-0000000107452000 [    4K] 
r-x/rwx SM=COW  /Users/USER/*/*.3

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                               000000000000000000 0 + 0
1   com.apple.GLEngineProfiler        0x000000010b0832b1 gloGetCGLDispatch 
+ 7783
2   com.apple.opengl                  0x00007fff8f0ddc06 CGLGetParameter + 
150
3   com.apple.GLEngineProfiler        0x000000010b18a16b gloGetCGLDispatch 
+ 1084705
4   com.apple.GLEngineProfiler        0x000000010b18a390 gloGetCGLDispatch 
+ 1085254
5   com.apple.GLEngineProfiler        0x000000010b081c2e gloGetCGLDispatch 
+ 2020
6   com.apple.opengl                  0x00007fff8f0d6443 CGLCreateContext + 
1790
7   com.apple.AppKit                  0x00007fff866a5091 -[NSOpenGLContext 
initWithFormat:shareContext:] + 304
8   _ctypes.so                        0x00000001079461af ffi_call_unix64 + 
79
9   _ctypes.so                        0x00000001079469bd ffi_call + 813
10  _ctypes.so                        0x0000000107942413 _ctypes_callproc + 
820
11  _ctypes.so                        0x000000010793d01a PyCFuncPtr_call + 
888
12  org.python.python                 0x000000010745d07f PyObject_Call + 111
13  org.python.python                 0x00000001074e3f54 PyEval_EvalFrameEx 
+ 18545
14  org.python.python                 0x00000001074df557 PyEval_EvalCodeEx 
+ 1498
15  org.python.python                 0x0000000107478a99 function_call + 345
16  org.python.python                 0x000000010745d07f PyObject_Call + 111
17  org.python.python                 0x000000010746abf7 method_call + 137
18  org.python.python                 0x000000010745d07f PyObject_Call + 111
19  org.python.python                 0x000000010749c2fa slot_tp_call + 54
20  org.python.python                 0x000000010745d07f PyObject_Call + 111

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to