0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 627 forks source link

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to decode response from (null) (response.textEncodingName = (null), data.length = 0)' #392

Closed sokh123 closed 6 years ago

sokh123 commented 6 years ago

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to decode response from (null) (response.textEncodingName = (null), data.length = 0)' Assertion failure in -[XCDYouTubeVideoOperation handleConnectionSuccessWithData:response:requestType:]

This can be reproduced when loading a video try close the wifi rapidly.

sokh123 commented 6 years ago

Code crash on here

With error Thread 38: signal SIGABRT

libsystem_kernel.dylib`__pthread_kill: 0x190cad0fc <+0>: mov x16, #0x148 0x190cad100 <+4>: svc #0x80 -> 0x190cad104 <+8>: b.lo 0x190cad11c ; <+32> 0x190cad108 <+12>: stp x29, x30, [sp, #-0x10]! 0x190cad10c <+16>: mov x29, sp 0x190cad110 <+20>: bl 0x190ca2800 ; cerror_nocancel 0x190cad114 <+24>: mov sp, x29 0x190cad118 <+28>: ldp x29, x30, [sp], #0x10 0x190cad11c <+32>: ret