When I call presentRenderBuffer , in some situations my application crashes with EXC_BAD_ACCESS. But usually everything is in order.
The call stack is here:
#0 0x2f53f02e in glrGetPrivateInteger () #1 0x329a192e in gliGetInteger () #2 0x002eec04 in __collect_all_context_profiling_data_block_invoke () #3 0x0015ea7c in iter_contexts () #4 0x002ee7f2 in collect_all_context_profiling_data () #5 0x00163fbc in copy_profiling_data_dictionary(ContextInfo*, unsigned int, unsigned long long) () #6 0x00160566 in handle_frame_boundary () #7 0x002f194c in EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned int) () #8 0x00044a68 in __36-[CanvasView initializeWithContext:]_block_invoke56
Do you have any ideas about this?
SOLVE:
A texture is created and deleted in different contexts. This caused a problem.
Now a texture is created and deleted in one context. He solved the problem.
George
source share