ksvc / KSYMediaPlayer_iOS

金山云iOS播放SDK(KSYUN Live Streaming player SDK),支持RTMP HTTP-FLV HLS 协议(supporting RTMP HTTP-FLV HLS protocol),直播延时2-3秒(Living delay 2 or 3 seconds)
http://v.ksyun.com/
Apache License 2.0
563 stars 144 forks source link

编译没报错,运行崩溃 #65

Open udoubi opened 6 years ago

udoubi commented 6 years ago

libsystem_platform.dylib`_os_once_gate_recursive_abort: 0x1110a7c57 <+0>: movl %edi, %eax 0x1110a7c59 <+2>: leaq 0x2052(%rip), %rcx ; "BUG IN CLIENT OF LIBPLATFORM: Trying to recursively lock an os_once_t" 0x1110a7c60 <+9>: movq %rcx, 0x3659(%rip) ; gCRAnnotations + 8 0x1110a7c67 <+16>: movq %rax, 0x3682(%rip) ; gCRAnnotations + 56 -> 0x1110a7c6e <+23>: ud2
什么问题

mayudong1 commented 6 years ago

使用的sdk版本号是多少,xcode版本还有测试用手机系统版本都是多少?
是编译我们的demo后运行出错呢还是将sdk引入自己的工程后的问题? 崩溃堆栈又是什么样的呢?

udoubi commented 6 years ago

sdk版本 2.9.0 xcode版本:xcode 9 手机系统:ios11 将sdk引入自己的工程,刚启动就崩溃了,崩溃堆栈如下

0 0x0000000117a02c6e in _os_once_gate_recursive_abort ()

1 0x0000000117a02984 in _os_once_gate_wait_slow ()

2 0x0000000117a11b2b in pthread_once ()

3 0x000000010a64f989 in CRYPTO_THREAD_run_once ()

4 0x000000010a644db0 in OPENSSL_init_crypto ()

5 0x000000010a6418e4 in ERR_get_state ()

6 0x000000010a641753 in ERR_put_error ()

7 0x000000010a631d4d in DSO_dsobyaddr ()

8 0x000000010a645166 in ossl_init_baseossl ()

9 0x0000000117a11b8c in __pthread_once_handler ()

10 0x00000001179feac1 in _os_once ()

11 0x0000000117a11b2b in pthread_once ()

12 0x000000010a64f989 in CRYPTO_THREAD_run_once ()

13 0x000000010a644db0 in OPENSSL_init_crypto ()

14 0x000000010a5f9b43 in OPENSSL_init_ssl ()

15 0x000000010a66bf49 in mg_mgr_init ()

16 0x000000010a674156 in _log_run ()

17 0x0000000117a1193b in _pthread_body ()

18 0x0000000117a11887 in _pthread_start ()

19 0x0000000117a1108d in thread_start ()

udoubi commented 6 years ago

集成动态库没有崩溃,但是用了动态库App Store审核貌似不能通过。

mayudong1 commented 6 years ago

项目中是不是用到了其他的openssl的库?我们的sdk中有使用openssl的库https://github.com/ksvc/KSYMediaPlayer_iOS/wiki/license 应该是库冲突了,使用动态库可以解决冲突问题