25

My app crashes on iOS 11 beta 4 (15A5327g) when [EAGLContext presentRenderbuffer:] method is called. It happens only when I debugging in Xcode. When I launch app manually it doesn't crashed. On versions lower than iOS 11 beta 4 it doesn't crashed as well. How can I prevent this issue? You can see crash details in screenshot

enter image description here

Evgeny Mikhaylov
  • 1,696
  • 1
  • 19
  • 25

3 Answers3

40

Hodge's workaround works. Here is a screenshot of how to set the GPU Frame Capture argument to "Disabled" (in "Edit Scheme" window) disabling GPU Image Capture

PDK
  • 1,476
  • 1
  • 14
  • 25
user1988824
  • 2,947
  • 2
  • 22
  • 27
  • Its not working for me. Here is an issue https://discuss.cocos2d-x.org/t/thread-1-exc-bad-access-code-1-address-0x1/48341 – user831413 Nov 21 '19 at 13:36
21

I was experiencing this same issue and a workaround I discovered is to disable GPU frame capture in my Xcode product scheme.

hodge
  • 211
  • 1
  • 4
  • 3
    Seems like a bug in beta (iOS 11 or Xcode 9). I have a similar issue but not in -presentRenderBuffer (because I am using GLKView). The workaround helps to prevent crashing. Similarly, the last reached frame in the main thread is SCNGetPerformanceStatistics. – Greg Aug 01 '17 at 16:25
0

disable frame capture in scheme, then crash disppeared

L.Peng
  • 1
  • 5