0

我正在开发流媒体音频的应用程序。我有带 AirPlay 按钮的 MPVolumeView。但有时切换到 Airplay 时应用程序会崩溃。

0   libobjc.A.dylib                 0x394455d0 objc_msgSend + 16
1   Foundation                      0x39f05040 +[NSObject(NSDelayedPerforming) cancelPreviousPerformRequestsWithTarget:selector:object:] + 336
2   MediaPlayer                     0x381d43b0 -[MPAudioDeviceController _scheduleSendDelegateAudioRoutesChanged] + 52
3   CoreFoundation                  0x3ac90346 _CFXNotificationPost + 1418
4   Foundation                      0x39f0538a -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
5   Celestial                       0x35d3c0a4 -[AVObjectRegistry safePostNotificationFromMainThreadTarget:name:userInfo:] + 92
6   Celestial                       0x35d41970 figConnection_ActiveAudioRouteDidChange_Callback + 112
7   CoreFoundation                  0x3ad0c0a2 __CFNotificationCenterAddObserver_block_invoke_0 + 122
8   CoreFoundation                  0x3ac90346 _CFXNotificationPost + 1418
9   CoreFoundation                  0x3ac91918 CFNotificationCenterPostNotification + 100
10  CoreMedia                       0x3a111c96 CMNotificationCenterPostNotification + 114
11  MediaToolbox                    0x33ccae16 playerasync_reflectSubPlayerNotification + 118
12  CoreFoundation                  0x3ad0c0a2 __CFNotificationCenterAddObserver_block_invoke_0 + 122
13  CoreFoundation                  0x3ac90346 _CFXNotificationPost + 1418
14  CoreFoundation                  0x3ac91918 CFNotificationCenterPostNotification + 100
15  CoreMedia                       0x3a111c96 CMNotificationCenterPostNotification + 114
16  MediaToolbox                    0x33ccad92 playerremote_postNotification + 554
17  MediaToolbox                    0x33cccd28 playerremote_postNotificationWithPayload + 84
18  MediaToolbox                    0x33cca2ce FigPlayerRemoteCallbacksServer_SendNotifyPing + 370
19  MediaToolbox                    0x33cca14e _XSendNotifyPing + 66
20  MediaToolbox                    0x33cc74de figmoviecallbacks_server + 90
21  MediaToolbox                    0x33cc7468 fpr_ClientPortCallBack + 176
22  CoreFoundation                  0x3ad09888 __CFMachPortPerform + 116
23  CoreFoundation                  0x3ad143e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
24  CoreFoundation                  0x3ad14386 __CFRunLoopDoSource1 + 134
25  CoreFoundation                  0x3ad1320a __CFRunLoopRun + 1378
26  CoreFoundation                  0x3ac86238 CFRunLoopRunSpecific + 352
27  CoreFoundation                  0x3ac860c4 CFRunLoopRunInMode + 100
28  GraphicsServices                0x36f8c336 GSEventRunModal + 70
29  UIKit                           0x34a9328c UIApplicationMain + 1116
30  RogApp                          0x0006a0ba main (main.m:17)
31  RogApp                          0x0006a034 start + 36

我启用了僵尸对象,崩溃后我看到这样的消息:

[MPAudioDeviceController performSelector:withObject:afterDelay:inModes:] message sent to deallocated instance

这是私人课程。我该如何修复这个错误?

4

1 回答 1

0

FWIW,我通过应用程序从现场获得了基本相同的崩溃报告。我不知道它与什么有关,但现在我至少可以探索切换到 AirPlay 来驱动它。

于 2013-01-23T21:22:57.787 回答