presentRenderbuffer上的EXC_BAD_ACCESS

Geo*_*rge 8 rendering objective-c opengl-es-2.0 ios7

当我presentRenderBuffer在某些情况下调用我的应用程序崩溃与EXC_BAD_ACCESS.但通常一切都很好.

调用堆栈在这里:

#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
Run Code Online (Sandbox Code Playgroud)

你有什么想法吗?

解决:

在不同的上下文中创建和删除纹理.这导致了问题.

现在,在一个上下文中创建和删除纹理.它解决了这个问题.