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
            Asked
            
        
        
            Active
            
        
            Viewed 5,249 times
        
    25
            
            
        - 
                    1@Rabbid76 I suppose any application will crash trying to call [EAGLContext presentRenderbuffer:] on iOS 11 beta 4. You can check. – Evgeny Mikhaylov Jul 26 '17 at 07:21
- 
                    @Rabbid76 I provide screenshot to show stack trace and exception – Evgeny Mikhaylov Jul 26 '17 at 07:25
- 
                    Screenshots are not searchable - transpose the actual text. – solidpixel Jul 26 '17 at 10:04
- 
                    2I get the same crash, looks like a regression bug in beta 4. Infuriating. I normally avoid beta iOSes but the lure of ARKit was too strong. Now I'm screwed for a test device for my main project. Thanks Apple! – Reuben Scratton Jul 27 '17 at 20:57
- 
                    I got the same crash stack trace on iOS 11 beta 4. It would crash when debugging, but worked fine when I launched the app with my finger. – hippo Jul 27 '17 at 05:26
- 
                    It seems that Apple fixes this issue in Xcode 9.0 (9A235) – Evgeny Mikhaylov Nov 01 '17 at 05:42
3 Answers
40
            
            
        Hodge's workaround works.
Here is a screenshot of how to set the GPU Frame Capture argument to "Disabled" (in "Edit Scheme" window)

 
    
    
        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
- 
                    3Seems 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

 
    