iOS 6 Maps occasional Crash

后端 未结 4 1949
孤街浪徒
孤街浪徒 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: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.

提交回复
热议问题