我们收到了一些崩溃报告和堆栈跟踪,但它们对我们来说很难解读。堆栈跟踪完全位于MediaPlayer、Foundation、CoreFoundation和libsystem_c.dylib内部。不幸的是,我们无法在任何开发设备上重现该问题,因此故障排除变得困难。
以下是堆栈跟踪的示例。是否有人遇到过类似的情况或者可以提供任何可能导致此崩溃的指针?
EXC_BAD_ACCESS KERN_PROTECTION_FAILURE at 0x000000016fc47fe0
Thread : Crashed: com.apple.main-thread
0 libsystem_c.dylib 0x0000000196a0624c localeconv_l
1 libsystem_c.dylib 0x0000000196a55d6c __vfprintf + 108
2 libsystem_c.dylib 0x0000000196a73680 __v2printf + 588
3 libsystem_c.dylib 0x0000000196a0620c _vsnprintf + 304
4 libsystem_c.dylib 0x0000000196a06c58 snprintf_l + 24
5 CoreFoundation 0x000000018462b01c __CFStringAppendFormatCore + 11584
6 CoreFoundation 0x00000001846282a4 _CFStringCreateWithFormatAndArgumentsAux2 + 248
7 Foundation 0x000000018546e448 -[NSPlaceholderString initWithFormat:locale:arguments:] + 172
8 Foundation 0x000000018546e308 +[NSString stringWithFormat:] + 76
9 MediaPlayer 0x00000001869bf524 -[NSObject(MPLogDescription) MP_shortDescription] + 96
10 MediaPlayer 0x00000001869bf598 -[AVPlayerItem(MPLogDescription) MP_shortDescription] + 72
11 MediaPlayer 0x00000001869bde2c -[MPAVQueueCoordinator _syncPlayerItems] + 1316
12 MediaPlayer 0x00000001869bd8a4 -[MPAVQueueCoordinator _syncItems] + 1452
13 MediaPlayer 0x00000001869becbc -[MPAVQueueCoordinator _updateCurrentItem] + 620
14 MediaPlayer 0x00000001869be61c -[MPAVQueueCoordinator _syncPlayerItems] + 3348
15 MediaPlayer 0x00000001869bd8a4 -[MPAVQueueCoordinator _syncItems] + 1452
16 MediaPlayer 0x00000001869becbc -[MPAVQueueCoordinator _updateCurrentItem] + 620
17 MediaPlayer 0x00000001869be61c -[MPAVQueueCoordinator _syncPlayerItems] + 3348
18 MediaPlayer 0x00000001869bd8a4 -[MPAVQueueCoordinator _syncItems] + 1452
19 MediaPlayer 0x00000001869becbc -[MPAVQueueCoordinator _updateCurrentItem] + 620
20 MediaPlayer 0x00000001869be61c -[MPAVQueueCoordinator _syncPlayerItems] + 3348
...
堆栈跟踪会继续重复上面三行的内容数百次。