后台音频流使应用程序崩溃

发布于 2024-10-17 18:15:05 字数 16218 浏览 4 评论 0原文

我正在使用 DigitalDj 的 AudioStreamer 项目 (https://github.com/DigitalDJ/AudioStreamer) 在我的应用程序的后台传输音频。当应用程序位于前台时,一切正常,但有时它会在后台崩溃。这是一个非常奇怪的崩溃日志。

     Incident Identifier: F6F6B97C-1943-460D-8A4E-5608B47E6989
CrashReporter Key:   3a88f20a9e18f468445bddc212b7aa673c6dc89b
Hardware Model:      iPod4,1
Process:         iMixtapes [1075]
Path:            /var/mobile/Applications/7C64D2D8-0C63-4A73-8452-763209481693/iMixtapes.app/iMixtapes
Identifier:      iMixtapes
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-02-18 13:24:15.849 +0530
OS Version:      iPhone OS 4.2.1 (8C148)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  6

Application Specific Information:
iMixtapes[1075] has active assertions beyond permitted time: 
{(
    <SBProcessAssertion: 0x66ce420> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2970> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c60b0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b4970> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c7850> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66e55a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c5e40> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b47d0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66eaba0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66ebfe0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f1da0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66afb90> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b18b0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x275940> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b1820> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x2c88a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7b70> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7700> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c6230> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66793a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66ad010> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c7820> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7d20> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7180> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2530> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2720> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b72a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f21e0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2650> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b73c0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7830> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x6691270> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c6010> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b1ac0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x2733f0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66e74e0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep 
)}

Elapsed total CPU time (seconds): 86.390 (user 41.340, system 45.050), 14% CPU 
Elapsed application CPU time (seconds): 6.290, 1% CPU

Thread 0:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   GraphicsServices                0x31eec4a4 GSEventRunModal + 108
7   GraphicsServices                0x31eec550 GSEventRun + 56
8   UIKit                           0x313cf322 -[UIApplication _run] + 406
9   UIKit                           0x313cce8c UIApplicationMain + 664
10  iMixtapes                       0x00002348 main (main.m:14)
11  iMixtapes                       0x000022fc start + 32

Thread 1:
0   libSystem.B.dylib               0x310bf974 kevent + 24
1   libSystem.B.dylib               0x31169704 _dispatch_mgr_invoke + 88
2   libSystem.B.dylib               0x31169174 _dispatch_queue_invoke + 96
3   libSystem.B.dylib               0x31168b98 _dispatch_worker_thread2 + 120
4   libSystem.B.dylib               0x3110d24a _pthread_wqthread + 258
5   libSystem.B.dylib               0x31105970 start_wqthread + 0

Thread 2:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   WebCore                         0x35b32124 RunWebThread(void*) + 332
7   libSystem.B.dylib               0x3110c886 _pthread_start + 242
8   libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 3:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   Foundation                      0x302fb5f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7   Foundation                      0x302d9192 -[NSThread main] + 38
8   Foundation                      0x302d2242 __NSThread__main__ + 966
9   libSystem.B.dylib               0x3110c886 _pthread_start + 242
10  libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 4:
0   libSystem.B.dylib               0x3110b9f0 __semwait_signal + 24
1   libSystem.B.dylib               0x310c07ec _pthread_cond_wait + 748
2   libSystem.B.dylib               0x310c03d2 pthread_cond_wait + 26
3   CoreMedia                       0x3290cb14 WaitOnCondition + 4
4   CoreMedia                       0x3290ca5a FigSemaphoreWaitRelative + 66
5   MediaToolbox                    0x32a8bc9c fpa_AsyncMovieControlThread + 48
6   CoreMedia                       0x32928f76 figThreadMain + 166
7   libSystem.B.dylib               0x3110c886 _pthread_start + 242
8   libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 5:
0   libSystem.B.dylib               0x310b768c select$DARWIN_EXTSN + 20
1   CoreFoundation                  0x3044d662 __CFSocketManager + 582
2   libSystem.B.dylib               0x3110c886 _pthread_start + 242
3   libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 6:
0   libSystem.B.dylib               0x3110b9f0 __semwait_signal + 24
1   libSystem.B.dylib               0x310c07ec _pthread_cond_wait + 748
2   libSystem.B.dylib               0x310c03d2 pthread_cond_wait + 26
3   iMixtapes                       0x000946d8 -[AudioStreamer enqueueBuffer] (AudioStreamer.m:1885)
4   iMixtapes                       0x00095514 -[AudioStreamer handleAudioPackets:numberBytes:numberPackets:packetDescriptions:] (AudioStreamer.m:2196)
5   iMixtapes                       0x0008f4ce MyPacketsProc (AudioStreamer.m:151)
6   AudioToolbox                    0x3281e376 AudioFileStreamWrapper::CallPacketsProc(unsigned long, unsigned long, void const*, AudioStreamPacketDescription*, bool) + 122
7   AudioToolbox                    0x3283a87a MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) + 818
8   AudioToolbox                    0x3281e5e4 AudioFileStreamWrapper::ParseBytes(unsigned long, void const*, unsigned long) + 180
9   AudioToolbox                    0x3281de6c AudioFileStreamParseBytes + 132
10  iMixtapes                       0x0009410e -[AudioStreamer handleReadFromStream:eventType:] (AudioStreamer.m:1754)
11  iMixtapes                       0x0008f58e ASReadStreamCallBack (AudioStreamer.m:222)
12  CoreFoundation                  0x3044ef6a _signalEventSync + 70
13  CoreFoundation                  0x3044f842 _cfstream_solo_signalEventSync + 58
14  CoreFoundation                  0x3044c7ee _CFStreamSignalEvent + 326
15  CoreFoundation                  0x3044c6a0 CFReadStreamSignalEvent + 4
16  CFNetwork                       0x32fe2a66 HTTPReadStream::streamEvent(unsigned long) + 94
17  CFNetwork                       0x32fe2adc HTTPReadStream::_streamCB(__CFReadStream*, unsigned long, void*) + 24
18  CoreFoundation                  0x3044ef6a _signalEventSync + 70
19  CoreFoundation                  0x3044eefe _cfstream_shared_signalEventSync + 198
20  CoreFoundation                  0x304447d6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
21  CoreFoundation                  0x304165b0 __CFRunLoopDoSources0 + 376
22  CoreFoundation                  0x30415e54 __CFRunLoopRun + 224
23  CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
24  CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
25  Foundation                      0x302d28e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 196
26  iMixtapes                       0x00091000 -[AudioStreamer startInternal] (AudioStreamer.m:843)
27  Foundation                      0x302d9192 -[NSThread main] + 38
28  Foundation                      0x302d2242 __NSThread__main__ + 966
29  libSystem.B.dylib               0x3110c886 _pthread_start + 242
30  libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 7:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   AudioToolbox                    0x327a84ba GenericRunLoopThread::RunLoop() + 30
7   AudioToolbox                    0x327bb306 TRunLoop<AQClient>::Entry(void*) + 90
8   AudioToolbox                    0x327a81d2 CAPThread::Entry(CAPThread*) + 138
9   libSystem.B.dylib               0x3110c886 _pthread_start + 242
10  libSystem.B.dylib               0x31101a88 thread_start + 0

Unknown thread crashed with unknown flavor: 5, state_count: 1

有人可以帮我解决这个问题吗?

谢谢

I am using DigitalDj's AudioStreamer project (https://github.com/DigitalDJ/AudioStreamer) to stream audio in the background in my application. Everything works fine when the app is in the foreground but sometimes it gets crashed in back ground. Here is a very strange crash log.

     Incident Identifier: F6F6B97C-1943-460D-8A4E-5608B47E6989
CrashReporter Key:   3a88f20a9e18f468445bddc212b7aa673c6dc89b
Hardware Model:      iPod4,1
Process:         iMixtapes [1075]
Path:            /var/mobile/Applications/7C64D2D8-0C63-4A73-8452-763209481693/iMixtapes.app/iMixtapes
Identifier:      iMixtapes
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-02-18 13:24:15.849 +0530
OS Version:      iPhone OS 4.2.1 (8C148)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  6

Application Specific Information:
iMixtapes[1075] has active assertions beyond permitted time: 
{(
    <SBProcessAssertion: 0x66ce420> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2970> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c60b0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b4970> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c7850> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66e55a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c5e40> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b47d0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66eaba0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66ebfe0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f1da0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66afb90> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b18b0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x275940> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b1820> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x2c88a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7b70> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7700> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c6230> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66793a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66ad010> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c7820> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7d20> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7180> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2530> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2720> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b72a0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f21e0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66f2650> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b73c0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b7830> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x6691270> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66c6010> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66b1ac0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x2733f0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0x66e74e0> identifier: UIKitBackgroundCompletionTask process: iMixtapes[1075] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1075 preventSuspend  preventIdleSleep 
)}

Elapsed total CPU time (seconds): 86.390 (user 41.340, system 45.050), 14% CPU 
Elapsed application CPU time (seconds): 6.290, 1% CPU

Thread 0:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   GraphicsServices                0x31eec4a4 GSEventRunModal + 108
7   GraphicsServices                0x31eec550 GSEventRun + 56
8   UIKit                           0x313cf322 -[UIApplication _run] + 406
9   UIKit                           0x313cce8c UIApplicationMain + 664
10  iMixtapes                       0x00002348 main (main.m:14)
11  iMixtapes                       0x000022fc start + 32

Thread 1:
0   libSystem.B.dylib               0x310bf974 kevent + 24
1   libSystem.B.dylib               0x31169704 _dispatch_mgr_invoke + 88
2   libSystem.B.dylib               0x31169174 _dispatch_queue_invoke + 96
3   libSystem.B.dylib               0x31168b98 _dispatch_worker_thread2 + 120
4   libSystem.B.dylib               0x3110d24a _pthread_wqthread + 258
5   libSystem.B.dylib               0x31105970 start_wqthread + 0

Thread 2:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   WebCore                         0x35b32124 RunWebThread(void*) + 332
7   libSystem.B.dylib               0x3110c886 _pthread_start + 242
8   libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 3:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   Foundation                      0x302fb5f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7   Foundation                      0x302d9192 -[NSThread main] + 38
8   Foundation                      0x302d2242 __NSThread__main__ + 966
9   libSystem.B.dylib               0x3110c886 _pthread_start + 242
10  libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 4:
0   libSystem.B.dylib               0x3110b9f0 __semwait_signal + 24
1   libSystem.B.dylib               0x310c07ec _pthread_cond_wait + 748
2   libSystem.B.dylib               0x310c03d2 pthread_cond_wait + 26
3   CoreMedia                       0x3290cb14 WaitOnCondition + 4
4   CoreMedia                       0x3290ca5a FigSemaphoreWaitRelative + 66
5   MediaToolbox                    0x32a8bc9c fpa_AsyncMovieControlThread + 48
6   CoreMedia                       0x32928f76 figThreadMain + 166
7   libSystem.B.dylib               0x3110c886 _pthread_start + 242
8   libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 5:
0   libSystem.B.dylib               0x310b768c select$DARWIN_EXTSN + 20
1   CoreFoundation                  0x3044d662 __CFSocketManager + 582
2   libSystem.B.dylib               0x3110c886 _pthread_start + 242
3   libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 6:
0   libSystem.B.dylib               0x3110b9f0 __semwait_signal + 24
1   libSystem.B.dylib               0x310c07ec _pthread_cond_wait + 748
2   libSystem.B.dylib               0x310c03d2 pthread_cond_wait + 26
3   iMixtapes                       0x000946d8 -[AudioStreamer enqueueBuffer] (AudioStreamer.m:1885)
4   iMixtapes                       0x00095514 -[AudioStreamer handleAudioPackets:numberBytes:numberPackets:packetDescriptions:] (AudioStreamer.m:2196)
5   iMixtapes                       0x0008f4ce MyPacketsProc (AudioStreamer.m:151)
6   AudioToolbox                    0x3281e376 AudioFileStreamWrapper::CallPacketsProc(unsigned long, unsigned long, void const*, AudioStreamPacketDescription*, bool) + 122
7   AudioToolbox                    0x3283a87a MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) + 818
8   AudioToolbox                    0x3281e5e4 AudioFileStreamWrapper::ParseBytes(unsigned long, void const*, unsigned long) + 180
9   AudioToolbox                    0x3281de6c AudioFileStreamParseBytes + 132
10  iMixtapes                       0x0009410e -[AudioStreamer handleReadFromStream:eventType:] (AudioStreamer.m:1754)
11  iMixtapes                       0x0008f58e ASReadStreamCallBack (AudioStreamer.m:222)
12  CoreFoundation                  0x3044ef6a _signalEventSync + 70
13  CoreFoundation                  0x3044f842 _cfstream_solo_signalEventSync + 58
14  CoreFoundation                  0x3044c7ee _CFStreamSignalEvent + 326
15  CoreFoundation                  0x3044c6a0 CFReadStreamSignalEvent + 4
16  CFNetwork                       0x32fe2a66 HTTPReadStream::streamEvent(unsigned long) + 94
17  CFNetwork                       0x32fe2adc HTTPReadStream::_streamCB(__CFReadStream*, unsigned long, void*) + 24
18  CoreFoundation                  0x3044ef6a _signalEventSync + 70
19  CoreFoundation                  0x3044eefe _cfstream_shared_signalEventSync + 198
20  CoreFoundation                  0x304447d6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
21  CoreFoundation                  0x304165b0 __CFRunLoopDoSources0 + 376
22  CoreFoundation                  0x30415e54 __CFRunLoopRun + 224
23  CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
24  CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
25  Foundation                      0x302d28e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 196
26  iMixtapes                       0x00091000 -[AudioStreamer startInternal] (AudioStreamer.m:843)
27  Foundation                      0x302d9192 -[NSThread main] + 38
28  Foundation                      0x302d2242 __NSThread__main__ + 966
29  libSystem.B.dylib               0x3110c886 _pthread_start + 242
30  libSystem.B.dylib               0x31101a88 thread_start + 0

Thread 7:
0   libSystem.B.dylib               0x31093268 mach_msg_trap + 20
1   libSystem.B.dylib               0x31095354 mach_msg + 44
2   CoreFoundation                  0x30416648 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x30415ed2 __CFRunLoopRun + 350
4   CoreFoundation                  0x30415c80 CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x30415b88 CFRunLoopRunInMode + 52
6   AudioToolbox                    0x327a84ba GenericRunLoopThread::RunLoop() + 30
7   AudioToolbox                    0x327bb306 TRunLoop<AQClient>::Entry(void*) + 90
8   AudioToolbox                    0x327a81d2 CAPThread::Entry(CAPThread*) + 138
9   libSystem.B.dylib               0x3110c886 _pthread_start + 242
10  libSystem.B.dylib               0x31101a88 thread_start + 0

Unknown thread crashed with unknown flavor: 5, state_count: 1

Can anybody please help me to resolve this issue.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扛起拖把扫天下 2024-10-24 18:15:05

您的应用程序将被终止,而辅助线程继续工作。您必须根据要求进行清理并彻底终止。

注意:您可以表示崩溃,以更轻松地评估调用堆栈。

your app is being terminated, while the secondary thread continues to work. you have to clean up and terminate cleanly when requested.

note: you can symbolicate you crashes, to evaluate the callstack more easily.

謌踐踏愛綪 2024-10-24 18:15:05

当您创建后台任务来播放音频时,如果您正在使用,

- beginBackgroundTaskWithExpirationHandler:

请确保在从操作系统收到无效通知时编写代码以结束任务。

如果你不能处理它,它将导致你上面提到的崩溃。

When you are creating the background task to play the audio if you are using

- beginBackgroundTaskWithExpirationHandler:

make sure you code to end the task when you get the invalid notification from OS.

If u fail to handle that it will create the crash you have mentioned above.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文