flutter-webrtc icon indicating copy to clipboard operation
flutter-webrtc copied to clipboard

crash multi connection

Open rezadevelopers2 opened this issue 3 years ago • 3 comments

After several calls, a group of 5 people gives this error

OS Version: Android 11 (RKQ1.200826.002 test-keys) Report Version: 104

Exception Type: Unknown (SIGABRT)

Application Specific Information: Abort

Thread 0 Crashed: 0 libc.so 0xecc3a700 abort

rezadevelopers2 avatar Jul 23 '22 08:07 rezadevelopers2

I think you understand that provided information is not enough to give you any valuable feedback or somehow investigate the issue 🤷🏻‍♂️. I could suggest you enable WebRTC library logging and investigate what caused the crash.

If you do not extend the issue information, I will close it.

ycherniavskyi avatar Jul 23 '22 09:07 ycherniavskyi

I think you understand that provided information is not enough to give you any valuable feedback or somehow investigate the issue 🤷🏻‍♂️. I could suggest you enable WebRTC library logging and investigate what caused the crash.

If you do not extend the issue information, I will close it.

this log in crash log_new.txt app


Iflutter (24902) Signaling state change RTCSignalingState.RTCSignalingStateStable Iflutter (24902) reza 30 Iflutter (24902) answer resid Iorg.webrtc.Logging(24902) HardwareVideoEncoder initEncode 640 x 352. @ 300kbps. Fps 60 Use surface mode true IOMXClient(24902) IOmx service obtained EACodec (24902) Unable to instantiate codec 'OMX.qcom.video.encoder.vp8' with err 0xfffffff4. EACodec (24902) signalError(omxError 0xfffffff4, internalError -12) EMediaCodec(24902) Codec reported err 0xfffffff4, actionCode 0, while in state 1 WMediaCodec-JNI(24902) try to release MediaCodec from JMediaCodec~JMediaCodec()... WMediaCodec-JNI(24902) done releasing MediaCodec from JMediaCodec~JMediaCodec(). WSystem.err(24902) java.util.concurrent.ExecutionException android.media.MediaCodec$CodecException Failed to initialize OMX.qcom.video.encoder.vp8, error 0xfffffff4 WSystem.err(24902) at java.util.concurrent.FutureTask.report(FutureTask.java123) WSystem.err(24902) at java.util.concurrent.FutureTask.get(FutureTask.java193) WSystem.err(24902) at com.cloudwebrtc.webrtc.SimulcastVideoEncoderFactoryWrapper$StreamEncoderWrapper.initEncode(SimulcastVideoEncoderFactoryWrapper.kt112) WSystem.err(24902) Caused by android.media.MediaCodec$CodecException Failed to initialize OMX.qcom.video.encoder.vp8, error 0xfffffff4 WSystem.err(24902) at android.media.MediaCodec.native_setup(Native Method) WSystem.err(24902) at android.media.MediaCodec.init(MediaCodec.java1912) WSystem.err(24902) at android.media.MediaCodec.createByCodecName(MediaCodec.java1890) WSystem.err(24902) at org.webrtc.MediaCodecWrapperFactoryImpl.createByCodecName(MediaCodecWrapperFactoryImpl.java111) WSystem.err(24902) at org.webrtc.HardwareVideoEncoder.initEncodeInternal(HardwareVideoEncoder.java241) WSystem.err(24902) at org.webrtc.HardwareVideoEncoder.initEncode(HardwareVideoEncoder.java231) WSystem.err(24902) at com.cloudwebrtc.webrtc.SimulcastVideoEncoderFactoryWrapper$StreamEncoderWrapper.initEncode$lambda-0(SimulcastVideoEncoderFactoryWrapper.kt110) WSystem.err(24902) at com.cloudwebrtc.webrtc.SimulcastVideoEncoderFactoryWrapper$StreamEncoderWrapper.lambda$Kbf7zRcF7juDVHVTNSLiMgQE_U8(Unknown Source0) WSystem.err(24902) at com.cloudwebrtc.webrtc.-$$Lambda$SimulcastVideoEncoderFactoryWrapper$StreamEncoderWrapper$Kbf7zRcF7juDVHVTNSLiMgQE_U8.call(Unknown Source6) WSystem.err(24902) at java.util.concurrent.FutureTask.run(FutureTask.java266) WSystem.err(24902) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java1167) WSystem.err(24902) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java641) WSystem.err(24902) at java.lang.Thread.run(Thread.java923) Ertc (24902) # Ertc (24902) # Fatal error in gensdkandroidgenerated_metrics_jni............sdkandroidsrcjnijni_generator_helper.h, line 94 Ertc (24902) # last system error 0 Ertc (24902) # Check failed !env-ExceptionCheck() Ertc (24902) # DFlutterWebRTCPlugin(24902) +++++++++++++++++createVideoRendererstart Iorg.webrtc.Logging(24902) EglRenderer Initializing EglRenderer Iorg.webrtc.Logging(24902) EglRenderer EglBase.create shared context Iorg.webrtc.Logging(24902) EglBase14Impl Using OpenGL ES version 2 DFlutterWebRTCPlugin(24902) +++++++++++++++++createVideoRendererend WFlutterWebRTCPlugin(24902) FlutterRTCVideoRenderer.setVideoTrack, set video track to de0a9ffb-894b-49ae-b185-34e20a2ec26f Iorg.webrtc.Logging(24902) EglRenderer Releasing. Iorg.webrtc.Logging(24902) EglRenderer eglBase detach and release. Iorg.webrtc.Logging(24902) EglRenderer Releasing done. Iorg.webrtc.Logging(24902) EglRenderer Quitting render thread. Iorg.webrtc.Logging(24902) EglRenderer Initializing EglRenderer Iorg.webrtc.Logging(24902) EglRenderer EglBase.create shared context Iorg.webrtc.Logging(24902) EglBase14Impl Using OpenGL ES version 2 Iflutter (24902) puplisher message {typeice candidates,candidatecandidate939942841 1 udp 2122194687 21.92.145.82 44065 typ host generation 0 ufrag I8qg network-id 3 network-cost 900,sdpMLineIndex0,sdpMidaudio,to30,sender21,data{fullName[216,168,217,135,216,178,216,167,216,175,32,216,185,217,132,219,140,32,217,134,218,152,216,167,216,175],userID21,isMutefalse,isVideotrue,avatarmediaavatar21scaled_image_picker1591497971779278900.jpg}} , topic notification30 Iflutter (24902) puplisher message {typeice candidates,candidatecandidate559267639 1 udp 2122136831 1 44727 typ host generation 0 ufrag I8qg network-id 2,sdpMLineIndex0,sdpMidaudio,to30,sender21,data{fullName[216,168,217,135,216,178,216,167,216,175,32,216,185,217,132,219,140,32,217,134,218,152,216,167,216,175],userID21,isMutefalse,isVideotrue,avatarmediaavatar21scaled_image_picker1591497971779278900.jpg}} , topic notification30 Iflutter (24902) puplisher message {typeice candidates,candidatecandidate1510613869 1 udp 2122063615 127.0.0.1 46249 typ host generation 0 ufrag I8qg network-id 1,sdpMLineIndex0,sdpMidaudio,to30,sender21,data{fullName[216,168,217,135,216,178,216,167,216,175,32,216,185,217,132,219,140,32,217,134,218,152,216,167,216,175],userID21,isMutefalse,isVideotrue,avatarmediaavatar21scaled_image_picker1591497971779278900.jpg}} , topic notification30 Iflutter (24902) puplisher message {typeice candidates,candidatecandidate939942841 1 udp 2122194687 21.92.145.82 37162 typ host generation 0 ufrag I8qg network-id 3 network-cost 900,sdpMLineIndex1,sdpMidvideo,to30,sender21,data{fullName[216,168,217,135,216,178,216,167,216,175,32,216,185,217,132,219,140,32,217,134,218,152,216,167,216,175],userID21,isMutefalse,isVideotrue,avatarmediaavatar21scaled_image_picker1591497971779278900.jpg}} , topic notification30 Iflutter (24902) puplisher message {typeice candidates,candidatecandidate559267639 1 udp 2122136831 1 39893 typ host generation 0 ufrag I8qg network-id 2,sdpMLineIndex1,sdpMidvideo,to30,sender21,data{fullName[216,168,217,135,216,178,216,167,216,175,32,216,185,217,132,219,140,32,217,134,218,152,216,167,216,175],userID21,isMutefalse,isVideotrue,avatarmediaavatar21scaled_image_picker1591497971779278900.jpg}} , topic notification30 Iflutter (24902) puplisher message {typeice candidates,candidatecandidate1510613869 1 udp 2122063615 127.0.0.1 42682 typ host generation 0 ufrag I8qg network-id 1,sdpMLineIndex1,sdpMidvideo,to30,sender21,data{fullName[216,168,217,135,216,178,216,167,216,175,32,216,185,217,132,219,140,32,217,134,218,152,216,167,216,175],userID21,isMutefalse,isVideotrue,avatarmediaavatar21scaled_image_picker1591497971779278900.jpg}} , topic notification30 Iflutter (24902) EXAMPLEPublished notification topic is notification30, with Qos MqttQos.atLeastOnce Flibc (24902) Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6426 (EncoderQueue - ), pid 24902 (co.sorena.poc)

Build fingerprint 'Redmijoyeuse_eeajoyeuse11RKQ1.200826.002V12.5.8.0.RJZEUXMuserrelease-keys' Revision '0' ABI 'arm64' Timestamp 2022-07-23 151456+0430 pid 24902, tid 6426, name EncoderQueue - co.sorena.poc uid 10596 signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- x0 0000000000000000 x1 000000000000191a x2 0000000000000006 x3 00000073a6a31910 x4 1f2b3635301f2b35 x5 1f2b3635301f2b35 x6 1f2b3635301f2b35 x7 7f7f7f7f7f7f7f7f x8 00000000000000f0 x9 32e2ccf5522f1cd2 x10 0000000000000000 x11 ffffffc0fffffbdf x12 0000000000000001 x13 00000000000000c2 x14 000000763494abe2 x15 ffffffffffffffff x16 0000007634946948 x17 00000076349253d0 x18 000000739493e000 x19 0000000000006146 x20 000000000000191a x21 00000000ffffffff x22 00000073fa14906a x23 0000000000000160 x24 000000000000012c x25 000000000000003c x26 00000000000031e6 x27 0000000000000001 x28 0000000000000001 x29 00000073a6a31990 lr 00000076348d8ae0 sp 00000073a6a318f0 pc 00000076348d8b0c pst 0000000000001000 backtrace #00 pc 0000000000089b0c apexcom.android.runtimelib64bioniclibc.so (abort+164) (BuildId 2e8a650ddf4a10855ff9ad91c011753e) #01 pc 0000000000391f90 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #02 pc 0000000000391f28 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #03 pc 0000000000379e88 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #04 pc 0000000000379dac dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #05 pc 00000000005208e4 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #06 pc 0000000000524dd8 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #07 pc 00000000006ccce0 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #08 pc 00000000007a019c dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #09 pc 00000000007a1c70 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #10 pc 00000000007a4d30 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #11 pc 00000000006d1ba0 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #12 pc 00000000006d3290 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #13 pc 00000000006d2194 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #14 pc 000000000039b5d4 dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #15 pc 000000000039b4dc dataapp~~8fR3Hg8J_j-lw9N09Wg9WQ==co.sorena.poc-Dr2IotSs2EFWDiScU7XmBw==base.apk!libjingle_peerconnection_so.so (offset 0x4261000) (BuildId 2c9b0d636b2e9057) #16 pc 00000000000eb8a8 apexcom.android.runtimelib64bioniclibc.so (__pthread_start(void)+64) (BuildId 2e8a650ddf4a10855ff9ad91c011753e) #17 pc 000000000008bac8 apexcom.android.runtimelib64bioniclibc.so (__start_thread+64) (BuildId 2e8a650ddf4a10855ff9ad91c011753e) Lost connection to device.


rezadevelopers2 avatar Jul 23 '22 11:07 rezadevelopers2

I'm trying to debug libwebrtc and found a solution that seems to be related to the HW codec not being able to create multiple instances.

cloudwebrtc avatar Aug 25 '22 02:08 cloudwebrtc

Any updates on this issue?

leonardoacoelho avatar Sep 29 '22 19:09 leonardoacoelho