ksvc / KSYLive_iOS

金山云直播SDK [ iOS推流+播放 ]融合版 支持美颜滤镜(Beauty Filter)、美声(Beauty Voice)、软硬编(Software/Hardware Encoder) 、网络自适应(Network Auto Adapt)、混音(Audio Mixer)、混响(Reverb)、画中画(PIP)
https://github.com/ksvc/KSYLive_iOS/wiki
941 stars 271 forks source link

v2.9.1 崩溃出现!求救! #127

Open jeffu86 opened 6 years ago

jeffu86 commented 6 years ago

Podfile:

Device Logs:

Incident Identifier: 3272E1F7-3CE6-47CE-97BB-7DC7D939F24F CrashReporter Key: e008fb9e1dce3cd96ff808d413fd997d7ccbe67e Hardware Model: iPhone7,2 Version: 1.4 (0.9) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1]

Date/Time: 2017-12-14 19:12:55.1379 +0800 Launch Time: 2017-12-14 16:59:18.1880 +0800 OS Version: iPhone OS 10.3.1 (14E304) Report Version: 104

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 11

Application Specific Information: abort() called

Filtered syslog: None found

Last Exception Backtrace: 0 CoreFoundation 0x192a1efd8 exceptionPreprocess + 124 1 libobjc.A.dylib 0x191480538 objc_exception_throw + 55 2 CoreFoundation 0x192a1ea28 NSFastEnumerationMutationHandler + 127 3 CoreFoundation 0x192903224 -[NSArray containsObject:] + 151 4 libksygpulive 0x101c2dfd0 0x1016d4000 + 5611472 5 GPUImage 0x1010f6cd4 0x1010b8000 + 257236 6 GPUImage 0x1010cc294 0x1010b8000 + 82580 7 libksygpulive 0x101896618 0x1016d4000 + 1844760 8 GPUImage 0x1010cfe8c 0x1010b8000 + 97932 9 libksygpulive 0x10188d468 0x1016d4000 + 1807464 10 GPUImage 0x1010cc5c4 0x1010b8000 + 83396 11 GPUImage 0x10110ca68 0x1010b8000 + 346728 12 GPUImage 0x1010cc5c4 0x1010b8000 + 83396 13 GPUImage 0x1010ceb8c 0x1010b8000 + 93068 14 GPUImage 0x101114108 0x1010b8000 + 377096 15 libksygpulive 0x1018965a8 0x1016d4000 + 1844648 16 GPUImage 0x1010cfe8c 0x1010b8000 + 97932 17 GPUImage 0x1010cc5c4 0x1010b8000 + 83396 18 GPUImage 0x1010ceb8c 0x1010b8000 + 93068 19 GPUImage 0x1010cfe8c 0x1010b8000 + 97932 20 GPUImage 0x1010cfe8c 0x1010b8000 + 97932 21 GPUImage 0x1010cfe8c 0x1010b8000 + 97932 22 libksygpulive 0x101c2c67c 0x1016d4000 + 5604988 23 libksygpulive 0x101c2d1f8 0x1016d4000 + 5607928 24 libksygpulive 0x101c2cfa4 0x1016d4000 + 5607332 25 libksygpulive 0x101c2c920 0x1016d4000 + 5605664 26 libdispatch.dylib 0x102ee1a50 0x102ee0000 + 6736 27 libdispatch.dylib 0x102ee1a10 0x102ee0000 + 6672 28 libdispatch.dylib 0x102eef2e8 0x102ee0000 + 62184 29 libdispatch.dylib 0x102ee5634 0x102ee0000 + 22068 30 libdispatch.dylib 0x102eef810 0x102ee0000 + 63504 31 libdispatch.dylib 0x102ef1630 0x102ee0000 + 71216 32 libdispatch.dylib 0x102ef139c 0x102ee0000 + 70556 33 libsystem_pthread.dylib 0x191adf1d0 _pthread_wqthread + 1095 34 libsystem_pthread.dylib 0x191aded7c start_wqthread + 3

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 CoreFoundation 0x0000000192a52fa0 CFBasicHashRehash + 2436 1 CoreFoundation 0x0000000192a52768 CFBasicHashRehash + 332 2 CoreFoundation 0x0000000192a53c34 CFBasicHashAddValue + 100 3 CoreFoundation 0x00000001928f678c CFDictionarySetValue + 268 4 CoreText 0x0000000195652874 TSplicedFont::CreateDescriptorAttributes+ 108660 (CFString const) const + 140 5 CoreText 0x000000019563a2d4 TDescriptor::GetAttributes+ 8916 (__CFString const) const + 120 6 CoreText 0x0000000195644430 TDescriptor::GetLocalAttribute+ 50224 (CFString const*) const + 24 7 CoreText 0x000000019564fca8 TDescriptor::CopyAttribute+ 97448 (CFString const) const + 32 8 CoreText 0x000000019564fc50 CTFontDescriptorCopyAttribute + 44 9 CoreText 0x000000019569cbbc CopyAttributeToExtras+ 412604 (__CTFontDescriptor const, CFDictionary*, CFString const, bool) + 40 10 CoreText 0x0000000195641264 TFont::SetExtras+ 37476 (__CTFontDescriptor const) + 168 11 CoreText 0x00000001956995e0 TFont::TFont+ 398816 (CTFontDescriptor const, double, CGAffineTransform const, unsigned int, CTFontDescriptor const) + 212 12 CoreText 0x000000019569d66c TFontCascade::CreateFallbackFromDescriptor+ 415340 (__CTFontDescriptor const) const + 124 13 CoreText 0x0000000195666438 TFontCascade::InitCascadeFallbackAtIndex+ 189496 (long) + 296 14 CoreText 0x0000000195665660 TFontCascade::CreateFallback+ 185952 (CTFont const*, CFString const, CTEmojiPolicy) const + 552 15 CoreText 0x000000019567e1dc TGlyphEncoder::AppendUnmappedCharRun+ 287196 (unsigned int, TCFRef<CTRun>&, CTFont const, CFRange&, CFRange, TGlyphList&, TGlyphList&, TFontCascade const&, TGlyphEncoder::ClusterMatching, bool) + 672 16 CoreText 0x000000019567dd44 TGlyphEncoder::RunUnicodeEncoderRecursively+ 286020 (unsigned int, TCFRef<CTRun>&&, CTFont const, CFRange, TGlyphList&, TGlyphList&, TFontCascade const, TGlyphEncoder::ClusterMatching, bool) + 1884 17 CoreText 0x000000019564d27c TGlyphEncoder::RunUnicodeEncoder+ 86652 (TCFRef<CTRun>&&, __CTFont const, CFRange, TGlyphList&, TFontCascade const) + 128 18 CoreText 0x000000019564ae10 TGlyphEncoder::EncodeChars+ 77328 (CFRange, TAttributes const&, TGlyphList&, TGlyphEncoder::Fallbacks) + 1388 19 CoreText 0x000000019564a4c0 TTypesetterAttrString::Initialize+ 74944 (__CFAttributedString const) + 356 20 CoreText 0x000000019564a228 TTypesetterAttrString::TTypesetterAttrString+ 74280 (CFAttributedString const*) + 112 21 CoreText 0x000000019564a10c CTLineCreateWithAttributedString + 52 22 UIFoundation 0x0000000198abda44 NSStringDrawingEngine + 12328 23 UIFoundation 0x0000000198aba9d0 -[NSString+ 395728 (NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:] + 156 24 UIKit 0x0000000198b636bc -[UILabel _drawTextInRect:baselineCalculationOnly:] + 1404 25 UIKit 0x0000000198bd2788 -[UILabel drawTextInRect:] + 588 26 X PROD 0x0000000100081c60 0x10004c000 + 220256 27 UIKit 0x0000000198bd24e4 -[UIView+ 607460 (CALayerDelegate) drawLayer:inContext:] + 408 28 QuartzCore 0x0000000195d3ae38 -[CALayer drawInContext:] + 260 29 UIKit 0x000000019919bf8c -[UILabelContentLayer drawInContext:] + 168 30 QuartzCore 0x0000000195c3a300 CABackingStoreUpdate + 2784 31 QuartzCore 0x0000000195d3aa08 invocation function for block in CA::Layer::display+ 1141256 () + 56 32 QuartzCore 0x0000000195d3a6c8 CA::Layer::display+ 1140424 () + 1556 33 UIKit 0x000000019919bec8 -[_UILabelContentLayer display] + 128 34 QuartzCore 0x0000000195d2fc20 CA::Layer::display_if_needed+ 1096736 (CA::Transaction) + 228 35 QuartzCore 0x0000000195d2fcb4 CA::Layer::layout_and_display_if_needed+ 1096884 (CA::Transaction) + 44 36 QuartzCore 0x0000000195cab360 CA::Context::commit_transaction+ 553824 (CA::Transaction) + 252 37 QuartzCore 0x0000000195cd23c0 CA::Transaction::commit+ 713664 () + 504 38 QuartzCore 0x0000000195cd2e8c CA::Transaction::observer_callback+ 716428 (__CFRunLoopObserver, unsigned long, void*) + 120 39 CoreFoundation 0x00000001929cc9a0 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 40 CoreFoundation 0x00000001929ca628 CFRunLoopDoObservers + 372 41 CoreFoundation 0x00000001929caa74 CFRunLoopRun + 956 42 CoreFoundation 0x00000001928fad94 CFRunLoopRunSpecific + 424 43 GraphicsServices 0x0000000194364074 GSEventRunModal + 100 44 UIKit 0x0000000198bb3130 UIApplicationMain + 208 45 X PROD 0x00000001002aadb4 0x10004c000 + 2485684 46 libdyld.dylib 0x000000019190959c start + 4

Thread 1 name: com.apple.uikit.eventfetch-thread Thread 1: 0 libsystem_kernel.dylib 0x00000001919fb224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001919fb09c mach_msg + 72 2 CoreFoundation 0x00000001929cce88 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x00000001929caadc CFRunLoopRun + 1060 4 CoreFoundation 0x00000001928fad94 CFRunLoopRunSpecific + 424 5 Foundation 0x0000000193414d64 -[NSRunLoop+ 52580 (NSRunLoop) runMode:beforeDate:] + 304 6 Foundation 0x0000000193435b34 -[NSRunLoop+ 187188 (NSRunLoop) runUntilDate:] + 96 7 UIKit 0x000000019953d5f8 -[UIEventFetcher threadMain] + 136 8 Foundation 0x00000001935122c8 NSThreadstart__ + 996 9 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 10 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 11 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 2 name: com.apple.NSURLConnectionLoader Thread 2: 0 libsystem_kernel.dylib 0x00000001919fb224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001919fb09c mach_msg + 72 2 CoreFoundation 0x00000001929cce88 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x00000001929caadc CFRunLoopRun + 1060 4 CoreFoundation 0x00000001928fad94 CFRunLoopRunSpecific + 424 5 CFNetwork 0x0000000193106ca4 +[NSURLConnection+ 924836 (Loader) _resourceLoadLoop:] + 404 6 Foundation 0x00000001935122c8 NSThreadstart__ + 996 7 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 8 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 9 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 3 name: com.apple.CFStream.LegacyThread Thread 3: 0 libsystem_kernel.dylib 0x00000001919fb224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001919fb09c mach_msg + 72 2 CoreFoundation 0x00000001929cce88 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x00000001929caadc CFRunLoopRun + 1060 4 CoreFoundation 0x00000001928fad94 CFRunLoopRunSpecific + 424 5 CoreFoundation 0x00000001929da78c _legacyStreamRunLoop_workThread + 268 6 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 7 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 8 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 4 name: com.apple.CFSocket.private Thread 4: 0 libsystem_kernel.dylib 0x0000000191a1923c select + 8 1 CoreFoundation 0x00000001929d3ca8 CFSocketManager + 632 2 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 3 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 4 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 5 name: AVAudioSession Notify Thread Thread 5: 0 libsystem_kernel.dylib 0x00000001919fb224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001919fb09c mach_msg + 72 2 CoreFoundation 0x00000001929cce88 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x00000001929caadc CFRunLoopRun + 1060 4 CoreFoundation 0x00000001928fad94 CFRunLoopRunSpecific + 424 5 AVFAudio 0x00000001acc34540 GenericRunLoopThread::Entry+ 476480 (void) + 164 6 AVFAudio 0x00000001acc5a814 CAPThread::Entry+ 632852 (CAPThread) + 84 7 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 8 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 9 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 6 name: AURemoteIO::IOThread Thread 6: 0 libsystem_kernel.dylib 0x00000001919fb224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001919fb09c mach_msg + 72 2 AudioToolbox 0x0000000195872df0 AURemoteIO::IOThread::Run+ 671216 () + 280 3 AudioToolbox 0x000000019587704c AURemoteIO::IOThread::Entry+ 688204 (void) + 40 4 AudioToolbox 0x0000000195b5746c CAPThread::Entry+ 3703916 (CAPThread) + 84 5 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 6 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 7 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 7: 0 libsystem_kernel.dylib 0x0000000191a19314 __semwait_signal + 8 1 libsystem_c.dylib 0x00000001919388b0 nanosleep + 212 2 libksygpulive 0x0000000101bc9af4 0x1016d4000 + 5200628 3 libsystem_pthread.dylib 0x0000000191ae175c _pthread_body + 240 4 libsystem_pthread.dylib 0x0000000191ae166c _pthread_body + 0 5 libsystem_pthread.dylib 0x0000000191aded84 thread_start + 4

Thread 8: 0 libsystem_kernel.dylib 0x0000000191a19a88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x0000000191adf274 _pthread_wqthread + 1260 2 libsystem_pthread.dylib 0x0000000191aded7c start_wqthread + 4

Thread 9: 0 libsystem_kernel.dylib 0x0000000191a19a88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x0000000191adf274 _pthread_wqthread + 1260 2 libsystem_pthread.dylib 0x0000000191aded7c start_wqthread + 4

Thread 10 name: Dispatch queue: com.ksyun.a_mixer_q Thread 10: 0 CoreMedia 0x000000019531c528 CMSampleBufferGetNumSamples + 0 1 libksygpulive 0x0000000101c0c690 0x1016d4000 + 5473936 2 libksygpulive 0x0000000101c0da94 0x1016d4000 + 5479060 3 libksygpulive 0x00000001016e4130 0x1016d4000 + 65840 4 libksygpulive 0x0000000101c22810 0x1016d4000 + 5564432 5 libdispatch.dylib 0x0000000102ee1a50 0x102ee0000 + 6736 6 libdispatch.dylib 0x0000000102ee1a10 0x102ee0000 + 6672 7 libdispatch.dylib 0x0000000102eef2e8 0x102ee0000 + 62184 8 libdispatch.dylib 0x0000000102ee5634 0x102ee0000 + 22068 9 libdispatch.dylib 0x0000000102ef1630 0x102ee0000 + 71216 10 libdispatch.dylib 0x0000000102ef139c 0x102ee0000 + 70556 11 libsystem_pthread.dylib 0x0000000191adf1d0 _pthread_wqthread + 1096 12 libsystem_pthread.dylib 0x0000000191aded7c start_wqthread + 4

Thread 11 name: Dispatch queue: com.sunsetlakesoftware.GPUImage.openGLESContextQueue Thread 11 Crashed: 0 libsystem_kernel.dylib 0x0000000191a19014 pthread_kill + 8 1 libsystem_pthread.dylib 0x0000000191ae3334 pthread_kill + 112 2 libsystem_c.dylib 0x000000019198d9c4 abort + 140 3 libc++abi.dylib 0x00000001914591b0 cxa_bad_cast + 0 4 libc++abi.dylib 0x0000000191472c04 default_unexpected_handler+ 109572 () + 0 5 libobjc.A.dylib 0x0000000191480820 _objc_terminate+ 34848 () + 124 6 libc++abi.dylib 0x000000019146f5d4 std::terminate(void (*)+ 95700 ()) + 16 7 libc++abi.dylib 0x000000019146eef8 cxxabiv1::exception_cleanup_func+ 93944 (_Unwind_Reason_Code, _Unwind_Exception) + 0 8 libobjc.A.dylib 0x000000019148066c _objc_exception_destructor+ 34412 (void) + 0 9 CoreFoundation 0x0000000192a1ea28 -[NSException name] + 0 10 CoreFoundation 0x0000000192903224 -[NSArray containsObject:] + 152 11 libksygpulive 0x0000000101c2dfd0 0x1016d4000 + 5611472 12 GPUImage 0x00000001010f6cd4 0x1010b8000 + 257236 13 GPUImage 0x00000001010cc294 0x1010b8000 + 82580 14 libksygpulive 0x0000000101896618 0x1016d4000 + 1844760 15 GPUImage 0x00000001010cfe8c 0x1010b8000 + 97932 16 libksygpulive 0x000000010188d468 0x1016d4000 + 1807464 17 GPUImage 0x00000001010cc5c4 0x1010b8000 + 83396 18 GPUImage 0x000000010110ca68 0x1010b8000 + 346728 19 GPUImage 0x00000001010cc5c4 0x1010b8000 + 83396 20 GPUImage 0x00000001010ceb8c 0x1010b8000 + 93068 21 GPUImage 0x0000000101114108 0x1010b8000 + 377096 22 libksygpulive 0x00000001018965a8 0x1016d4000 + 1844648 23 GPUImage 0x00000001010cfe8c 0x1010b8000 + 97932 24 GPUImage 0x00000001010cc5c4 0x1010b8000 + 83396 25 GPUImage 0x00000001010ceb8c 0x1010b8000 + 93068 26 GPUImage 0x00000001010cfe8c 0x1010b8000 + 97932 27 GPUImage 0x00000001010cfe8c 0x1010b8000 + 97932 28 GPUImage 0x00000001010cfe8c 0x1010b8000 + 97932 29 libksygpulive 0x0000000101c2c67c 0x1016d4000 + 5604988 30 libksygpulive 0x0000000101c2d1f8 0x1016d4000 + 5607928 31 libksygpulive 0x0000000101c2cfa4 0x1016d4000 + 5607332 32 libksygpulive 0x0000000101c2c920 0x1016d4000 + 5605664 33 libdispatch.dylib 0x0000000102ee1a50 0x102ee0000 + 6736 34 libdispatch.dylib 0x0000000102ee1a10 0x102ee0000 + 6672 35 libdispatch.dylib 0x0000000102eef2e8 0x102ee0000 + 62184 36 libdispatch.dylib 0x0000000102ee5634 0x102ee0000 + 22068 37 libdispatch.dylib 0x0000000102eef810 0x102ee0000 + 63504 38 libdispatch.dylib 0x0000000102ef1630 0x102ee0000 + 71216 39 libdispatch.dylib 0x0000000102ef139c 0x102ee0000 + 70556 40 libsystem_pthread.dylib 0x0000000191adf1d0 _pthread_wqthread + 1096 41 libsystem_pthread.dylib 0x0000000191aded7c start_wqthread + 4

Thread 12: 0 libsystem_kernel.dylib 0x0000000191a19a88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x0000000191adf274 _pthread_wqthread + 1260 2 libsystem_pthread.dylib 0x0000000191aded7c start_wqthread + 4

Thread 13: 0 libsystem_pthread.dylib 0x0000000191aded78 start_wqthread + 0

Thread 14: 0 libsystem_pthread.dylib 0x0000000191aded78 start_wqthread + 0

Thread 11 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001744f46b7 x4: 0x0000000191473b07 x5: 0x000000016e07b690 x6: 0x000000000000006e x7: 0x000000016e07a7e8 x8: 0x000000000c000000 x9: 0x0000000004000000 x10: 0x000000000000000b x11: 0x000000000000000b x12: 0x0000000000000010 x13: 0x0000000192c69c0e x14: 0x0000040000000400 x15: 0x0000000000000000 x16: 0x0000000000000148 x17: 0x0000000100000000 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x000000016e07f000 x21: 0x000000016e07b690 x22: 0x000000017020e7d0 x23: 0x000000019968d28a x24: 0x0000000000031401 x25: 0x00000001b7754000 x26: 0x0000000000000001 x27: 0x000000017439e370 x28: 0x0000000000000000 fp: 0x000000016e07b5f0 lr: 0x0000000191ae3334 sp: 0x000000016e07b5d0 pc: 0x0000000191a19014 cpsr: 0x00000000

pengbins commented 6 years ago

能提供下复现步骤吗?

jeffu86 commented 6 years ago

没有一个特定的步骤,只是正常直播着,试过1小时就崩溃,试过3小时才崩溃,也试过4小时也没有事,不常出现。

jeffu86 commented 6 years ago

當接駁Xcode中的時侯,可以得出Logs如下:

2017-12-14 21:10:23.277702+0800 PROD[1389:519498] Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘ Collection <__NSArrayM: 0x1746457f0> was mutated while being enumerated.’ *** First throw call stack: (0x192a1efd8 0x191480538 0x192a1ea28 0x192903224 0x101c81fd0 0x101126cd4 0x1010fc294 0x1018ea618 0x1010ffe8c 0x1018e1468 0x1010fc5c4 0x10113ca68 0x1010fc5c4 0x1010feb8c 0x101144108 0x1018ea5a8 0x1010ffe8c 0x1010fc5c4 0x1010feb8c 0x1010ffe8c 0x1010ffe8c 0x1010ffe8c 0x101c8067c 0x101c811f8 0x101c80fa4 0x101c80920 0x102f35a50 0x102f35a10 0x102f432e8 0x102f39634 0x102f43810 0x102f45630 0x102f4539c 0x191adf1d0 0x191aded7c) libc++abi.dylib: terminating with uncaught exception of type NSException warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.≈

2017-12-15 11 03 17 2017-12-15 11 03 30