iOS 6 Maps occasional Crash

后端 未结 4 1937
孤街浪徒
孤街浪徒 2021-02-04 11:53

I\'m getting occasionally crash with iOS 6 MapKit. Can\'t really reproduce it. What can cause this?

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KE         


        
相关标签:
4条回答
  • 2021-02-04 12:10

    I found this. It may help you fix your problem.

    "Issue: An OpenGL ES-based application displays “flashing” or “stale” frames after a call to presentRenderBuffer. This symptom can occur when an OpenGL ES application calls the EAGL presentRenderbuffer method without first drawing anything. What is seen on screen may contain uninitialized pixels or previously rendered frames. To correct this issue, you should always draw something to your framebuffer before calling presentRenderbuffer. Also note that unless you set the RetainedBackbuffer property on your CAEAGLLayer to enable retained backbuffer mode, the contents of your renderbuffer are not guaranteed to remain valid after a call to presentRenderbuffer".

    -Lewis

    0 讨论(0)
  • 2021-02-04 12:18

    I just experienced this testing an App on my iPad. It's always run with no problems in simulator and also on the device but just now it crashed at the same point with the same error.

    Here's my method - very simple map showing user location and no annotations:

    - (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated {
        MKCoordinateSpan span = self.mapView.region.span;
        zoomLevel = span.latitudeDelta;
           shouldAdjustZoom = NO;
    }
    

    Here's the crash log

    Incident Identifier: 01AE9C88-1F56-44D4-92A1-C6B5938DEBD4
    CrashReporter Key:   f372f86613043286b74e70a8d1f9d7b1b5313cf5
    Hardware Model:      iPad3,4
    Process:         MyApp [1247]
    Path:            /var/mobile/Applications/C39AEC49-8DB1-45DE-B175-A6AEC19D533F/MyApp.app/MyApp
    Identifier:      MyApp
    Version:         ??? (???)
    Code Type:       ARM (Native)
    Parent Process:  launchd [1]
    
    Date/Time:       2013-07-15 08:25:16.390 +0200
    OS Version:      iOS 6.1.3 (10B329)
    Report Version:  104
    
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000044
    Crashed Thread:  0
    
    Thread 0 name:  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0   IMGSGX554GLDriver               0x32ea6be0 0x32e99000 + 56288
    1   IMGSGX554GLDriver               0x32ea6b8e 0x32e99000 + 56206
    2   IMGSGX554GLDriver               0x32ea92f2 0x32e99000 + 66290
    3   IMGSGX554GLDriver               0x32ea7f44 0x32e99000 + 61252
    

    I ended a whole bunch of apps (mostly kids games) running in the background on the device and relaunched it and it then ran fine. Maybe helps someone pinpoint the exact problem and whether any changes in our Apps can prevent the crash.

    0 讨论(0)
  • 2021-02-04 12:21

    I had this exact issue and it turned out to be a memory pressure related crash. It was consistently crashing for me when the map appeared with a black background instead of any tiles or grid backgrounds like normal on the fourth or fifth time the map was shown. This occurred on iOS 6.0 and 6.1 and beta of 7.0.

    My view controller with the map view wasn't being deallocated after it was removed from the Navigation stack and it had a strong reference to the map view which kept it in memory.

    After fixing my leak, the problem disappeared.

    0 讨论(0)
  • 2021-02-04 12:23

    I actually found the issue with the iOS version. The user was running on iPad 4, iOS 6.1.2, as soon as I upgraded to 6.1.3 the problem went away. Hope this helps someone.

    Thanks, Tim

    0 讨论(0)
提交回复
热议问题