owt-client-native icon indicating copy to clipboard operation
owt-client-native copied to clipboard

New builded iOS OWT.framework & WebRTC.framework, join meeting crash

Open showgoodjiang opened this issue 6 years ago • 10 comments

With the original iOS OWT.framework & WebRTC.framework & libsioclient_tls_no_verification.a in CS_WebRTC_Client_SDK_iOS.v4.2, I could join meeting successfully.

Then I checked out latest code from master (https://github.com/open-webrtc-toolkit/owt-client-native), built out new iOS OWT.framework & WebRTC.framework.

However, with the new builded iOS OWT.framework & WebRTC.framework, when join meeting, it crashed. Seems it's related with socket.io tls handshake.

I tried to rebuild a new socket.io .a, unfortunately, not successful.

Any suggestions? Many thanks.

Crash Information: 1570857334153

showgoodjiang avatar Oct 15 '19 09:10 showgoodjiang

After some tries, I built out libsioclient.a (tls) successfully.

However, when join meeting, socket url like: wss://xxx.xxx.com/socket.io/?EIO=4&transport=websocket

crashed here: 7031571128570_ pic_hd

showgoodjiang avatar Oct 15 '19 09:10 showgoodjiang

The TLS version of Socket.IO cpp lib depends on OpenSSL, while WebRTC depends on BoringSSL by default. To make them work together, please set GN argument owt_use_openssl to true, and set owt_openssl_header_root, owt_openssl_lib_root to the correct path.

jianjunz avatar Oct 16 '19 01:10 jianjunz

I rebuild owt.framework, specify --ssl_root , then found the cause: webrtc uses deprecated openssl x509 methods: X509_get_notAfter, X509_get_notBefore

python3 /Users/jeremy/Documents/Jeremy/Work/Tool/depot_tools/depot_tools/src/scripts/build.py --scheme debug --arch arm64 --ssl_root /Users/jeremy/Documents/Jeremy/Work/Tool/depot_tools/OpenSSL-for-iPhone --skip_tests

Screen Shot 2019-10-15 at 7 26 41 PM

With the new built libcrypto.a, libssl.a, it works. https://github.com/x2on/OpenSSL-for-iPhone ./build-libssl.sh --version=1.1.0f --deprecated

showgoodjiang avatar Oct 16 '19 02:10 showgoodjiang

pc client faced the same problem after upgrade from 4.2.x to 4.3.0 compile command: python build-win.py --gn_gen --sdk --tests --ssl_root "C:\Users\Administrator\Downloads\openssl-1.1.0l-vs2017" --msdk_root "D:\Program Files (x86)\IntelSWTools\Intel(R) Media SDK 2018 R2\Software Development Kit" --output_path "D:/owt-client-native-build" --arch x64 --scheme release crashed in join.

zhouhuirun2015 avatar Nov 04 '19 01:11 zhouhuirun2015

With the original iOS OWT.framework & WebRTC.framework & libsioclient_tls_no_verification.a in CS_WebRTC_Client_SDK_iOS.v4.2, I could join meeting successfully.

Then I checked out latest code from master (https://github.com/open-webrtc-toolkit/owt-client-native), built out new iOS OWT.framework & WebRTC.framework.

However, with the new builded iOS OWT.framework & WebRTC.framework, when join meeting, it crashed. Seems it's related with socket.io tls handshake.

I tried to rebuild a new socket.io .a, unfortunately, not successful.

Any suggestions? Many thanks.

Crash Information: 1570857334153 你好,我是来自中国上海的iOS开发者,请问你那边如何解决这个问题的.我遇到的问题和你一样.我本地使用了Openssl..我目前版本是OWT4.2 的.可否 发给我一份 4.3 ,和openssl 不冲突的framwork 和 XXX.a 文件.谢谢

779442053 avatar May 11 '20 05:05 779442053

With the original iOS OWT.framework & WebRTC.framework & libsioclient_tls_no_verification.a in CS_WebRTC_Client_SDK_iOS.v4.2, I could join meeting successfully. Then I checked out latest code from master (https://github.com/open-webrtc-toolkit/owt-client-native), built out new iOS OWT.framework & WebRTC.framework. However, with the new builded iOS OWT.framework & WebRTC.framework, when join meeting, it crashed. Seems it's related with socket.io tls handshake. I tried to rebuild a new socket.io .a, unfortunately, not successful. Any suggestions? Many thanks. Crash Information: 1570857334153 你好,我是来自中国上海的iOS开发者,请问你那边如何解决这个问题的.我遇到的问题和你一样.我本地使用了Openssl..我目前版本是OWT4.2 的.可否 发给我一份 4.3 ,和openssl 不冲突的framwork 和 XXX.a 文件.谢谢

请问您这边现在有新的framework和.a文件吗,我这边编译碰到了问题,急需一份,有的话发我一份吧,谢谢

DiamoandDog avatar Sep 15 '20 06:09 DiamoandDog

你们编译出来的库,目录是什么样的?OWT和 WebRtc 加起来多大??

Guolanlan avatar Jan 05 '21 06:01 Guolanlan

Hello We are facing the same issue with all three SocketClient static libraries. We have tried all OWT v4.2, 4.2.1, 4.3, 4.3.1, and we face the same issue with all versions. Please help us as we have tried almost everything. I'm attaching all three crashes and errors we get. Images have the text on top. Please reply ASAP. We are also using "Socket.IO-Client-Swift" in our app and in the static library. We are not sure that if that can cause this issue.

Screenshot 2021-08-15 at 3 12 38 PM Screenshot 2021-08-15 at 3 15 16 PM Screenshot 2021-08-15 at 3 19 34 PM

iasad avatar Aug 15 '21 10:08 iasad

终于解决这个问题了,owt一个小小的失误,就能让技术人员忙活几周

newOcean avatar Mar 08 '22 01:03 newOcean

Please build iOS SDK and socket.io cpp with the same version of OpenSSL.

jianjunz avatar Mar 08 '22 02:03 jianjunz