twilio / video-quickstart-android

Twilio Video Quickstart for Android
MIT License
213 stars 160 forks source link

Failed vpx_codec_flush 146: ctx is nullptr #668

Closed 4brunu closed 3 years ago

4brunu commented 3 years ago

Description

Hi, I updated twilio video android sdk from 5.10.2 to 6.2.1 (I checked 6.4.0 and the same error happens), and a new error happened on some devices.

This crash always happens in the Xiaomi Redmi 9T. It also happens on the Android Emulator Pixel 2 API 30 x86_64. In the Android Emulator Pixel 2 API 30 x86 works fine, so it seems to be related to x86_64 somehow in the case of the emulator.

On the other devices that I tested, it worked well!

Steps to Reproduce

  1. Start a video call
  2. wait 15 seconds
  3. is should crash

Reproduces how Often

Always.

Logs

2021-08-10 16:32:59.588 1263-8107/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-82s,latest=-81s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-82s last_run=-82s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:32:59.734 1263-4640/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-82s,latest=-81s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-82s last_run=-82s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:32:59.755 1263-8107/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-82s,latest=-81s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-82s last_run=-82s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:01.185 425-425/? E/libc: The property "ro.build.fingerprint" has a value with length 100 that is too large for __system_property_get()/__system_property_read(); use __system_property_read_callback() instead.
2021-08-10 16:33:06.146 493-493/? E/netmgr: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:network' service: Invalid argument
2021-08-10 16:33:06.146 493-493/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2021-08-10 16:33:06.395 496-496/? E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:wififorward' service: Invalid argument
2021-08-10 16:33:06.395 496-496/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
2021-08-10 16:33:07.977 440-4890/? E/AudioSystem: invalid attributes { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: -1 Flags: 0x800 Tags:  } when converting to stream
2021-08-10 16:33:08.060 440-9468/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.061 440-9468/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.068 458-986/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.069 458-986/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.090 440-9468/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.091 458-458/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.102 458-9473/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.103 440-4601/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:08.133 440-9466/? E/AudioSystem: invalid attributes { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: -1 Flags: 0x800 Tags:  } when converting to stream
2021-08-10 16:33:08.411 1263-1948/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-91s,latest=-90s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-91s last_run=-91s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:08.445 1263-8107/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-91s,latest=-90s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-91s last_run=-91s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:09.367 440-4685/? E/AudioSystem: invalid attributes { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: -1 Flags: 0x800 Tags:  } when converting to stream
2021-08-10 16:33:09.473 1263-8107/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-92s,latest=-91s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-92s last_run=-92s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:09.730 1263-4640/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-92s,latest=-91s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-92s last_run=-92s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:09.831 1263-1948/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-92s,latest=-91s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-92s last_run=-92s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:09.847 1263-1948/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-92s,latest=-91s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-92s last_run=-92s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:11.524 1263-4640/com.google.android.gms E/NetworkScheduler.ATC: Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=0s,end=1s,earliest=-94s,latest=-93s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-94s last_run=-94s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
2021-08-10 16:33:12.252 440-9518/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.252 440-9518/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.256 458-986/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.256 458-986/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.263 440-9518/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.264 458-986/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.287 458-9519/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.296 440-4600/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:12.826 425-425/? E/libc: The property "ro.build.fingerprint" has a value with length 100 that is too large for __system_property_get()/__system_property_read(); use __system_property_read_callback() instead.
2021-08-10 16:33:13.521 300-338/? E/android.hardware.audio.service.ranchu: device/generic/goldfish/audio/stream_in.cpp:setMicrophoneDirection:439 failure: Result::NOT_SUPPORTED
2021-08-10 16:33:13.521 300-341/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:13.521 300-341/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:13.522 300-338/? E/android.hardware.audio.service.ranchu: device/generic/goldfish/audio/stream_in.cpp:setMicrophoneFieldDimension:444 failure: Result::NOT_SUPPORTED
2021-08-10 16:33:13.524 388-9564/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:13.525 388-9564/? E/FMQ: grantorIdx must be less than 3
2021-08-10 16:33:13.915 9254-9568/com.example.androidApp E/EGL_emulation: eglQueryContext 32c0  EGL_BAD_ATTRIBUTE
2021-08-10 16:33:13.916 9254-9568/com.example.androidApp E/EGL_emulation: tid 9568: eglQueryContext(2019): error 0x3004 (EGL_BAD_ATTRIBUTE)
2021-08-10 16:33:14.053 9254-9570/com.example.androidApp E/ACodec: [OMX.android.goldfish.vp8.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
2021-08-10 16:33:14.053 448-4864/? E/OMXNodeInstance: getParameter(0xef0401d0:android.goldfish.vp8.decoder, ??(0x6f600011)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:14.078 448-4864/? E/OMXNodeInstance: getParameter(0xef0401d0:android.goldfish.vp8.decoder, ParamVideoAndroidVp8Encoder(0x6f600007)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:14.079 448-4864/? E/OMXNodeInstance: getConfig(0xef0401d0:android.goldfish.vp8.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:14.602 9254-9579/com.example.androidApp E/EGL_emulation: eglQueryContext 32c0  EGL_BAD_ATTRIBUTE
2021-08-10 16:33:14.602 9254-9579/com.example.androidApp E/EGL_emulation: tid 9579: eglQueryContext(2019): error 0x3004 (EGL_BAD_ATTRIBUTE)
2021-08-10 16:33:14.626 9254-9581/com.example.androidApp E/ACodec: [OMX.android.goldfish.vp8.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
2021-08-10 16:33:14.626 448-4864/? E/OMXNodeInstance: getParameter(0xef0401d0:android.goldfish.vp8.decoder, ??(0x6f600011)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:14.633 448-801/? E/OMXNodeInstance: getParameter(0xef0401d0:android.goldfish.vp8.decoder, ParamVideoAndroidVp8Encoder(0x6f600007)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:14.634 448-801/? E/OMXNodeInstance: getConfig(0xef0401d0:android.goldfish.vp8.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:17.990 9254-9586/com.example.androidApp E/ACodec: [OMX.android.goldfish.vp8.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
2021-08-10 16:33:17.990 448-801/? E/OMXNodeInstance: getParameter(0xef0401d0:android.goldfish.vp8.decoder, ??(0x6f600011)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:17.995 448-801/? E/OMXNodeInstance: getParameter(0xef0401d0:android.goldfish.vp8.decoder, ParamVideoAndroidVp8Encoder(0x6f600007)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:17.995 448-801/? E/OMXNodeInstance: getConfig(0xef0401d0:android.goldfish.vp8.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: UnsupportedIndex(0x8000101a)
2021-08-10 16:33:18.015 448-801/? E/SimpleGoldfishOMXComponent: b/63522430, Buffer size is too small.
2021-08-10 16:33:18.016 448-801/? E/OMXNodeInstance: setParameter(0xef0401d0:android.goldfish.vp8.decoder, OMX.google.android.index.useAndroidNativeBuffer(0x7f000007): Output:1 meta=0xf1145620 GB=0xee9c0910) ERROR: BadParameter(0x80001005)
2021-08-10 16:33:18.016 9254-9586/com.example.androidApp E/ACodec: registering GraphicBuffer 0 with OMX IL component failed: -22
2021-08-10 16:33:18.016 9254-9586/com.example.androidApp E/ACodec: Failed to allocate buffers after transitioning to IDLE state (error 0xffffffea)
2021-08-10 16:33:18.016 9254-9586/com.example.androidApp E/ACodec: signalError(omxError 0x80001001, internalError -22)
2021-08-10 16:33:18.016 9254-9585/com.example.androidApp E/MediaCodec: Codec reported err 0xffffffea, actionCode 0, while in state 5
2021-08-10 16:33:18.017 9254-9575/com.example.androidApp E/rtc: #
    # Fatal error in: gen/sdk/android/generated_base_jni/../../../../../../../src/sdk/android/src/jni/jni_generator_helper.h, line 94
    # last system error: 0
    # Check failed: !env->ExceptionCheck()
    # 

    --------- beginning of crash
2021-08-10 16:33:18.017 9254-9575/com.example.androidApp A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9575 (DecodingQueue -), pid 9254 (edis.androidApp)
2021-08-10 16:33:18.018 448-448/? E/goldfish_vpxdec: ERROR: Failed vpx_codec_flush 146: ctx is nullptr
2021-08-10 16:33:18.019 448-448/? E/goldfish_vpxdec: Failed to flush on2 decoder.
2021-08-10 16:33:18.019 448-448/? E/OMXNodeInstance: b/25884056
2021-08-10 16:33:18.283 9591-9591/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-08-10 16:33:18.284 9591-9591/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86_64_arm64/generic_x86_64_arm64:11/RSR1.201211.001.A1/7054069:userdebug/dev-keys'
2021-08-10 16:33:18.284 9591-9591/? A/DEBUG: Revision: '0'
2021-08-10 16:33:18.284 9591-9591/? A/DEBUG: ABI: 'x86_64'
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG: Timestamp: 2021-08-10 16:33:18+0100
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG: pid: 9254, tid: 9575, name: DecodingQueue -  >>> com.example.androidApp <<<
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG: uid: 10161
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG:     rax 0000000000000000  rbx 0000000000002426  rcx 000076b1556e52a8  rdx 0000000000000006
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG:     r8  000076af64a243d0  r9  000076af64a243d0  r10 000076ae52a4f590  r11 0000000000000246
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG:     r12 000076ae55e854b5  r13 000076afd4a75b70  r14 000076ae52a4f588  r15 0000000000002567
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG:     rdi 0000000000002426  rsi 0000000000002567
2021-08-10 16:33:18.285 9591-9591/? A/DEBUG:     rbp 000076b15575f360  rsp 000076ae52a4f578  rip 000076b1556e52a8
2021-08-10 16:33:18.288 9591-9591/? A/DEBUG: backtrace:
2021-08-10 16:33:18.288 9591-9591/? A/DEBUG:       #00 pc 000000000005a2a8  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+24) (BuildId: 3707c39fc397eeaa328142d90b50a973)
2021-08-10 16:33:18.288 9591-9591/? A/DEBUG:       #01 pc 000000000005d212  /apex/com.android.runtime/lib64/bionic/libc.so (abort+194) (BuildId: 3707c39fc397eeaa328142d90b50a973)
2021-08-10 16:33:18.288 9591-9591/? A/DEBUG:       #02 pc 000000000054c982  /data/app/~~lieMntLhsKzSuZjE65SiIQ==/com.example.androidApp-gIhe9PeijOYYDABGv13ydw==/lib/x86_64/libtwilio_video_android_so.so (BuildId: 7cd04eef19e3a940fd5a8e5e752539521a96cac4)
2021-08-10 16:33:19.228 287-287/? E/tombstoned: Tombstone written to: /data/tombstones/tombstone_18
2021-08-10 16:33:19.386 448-448/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
2021-08-10 16:33:19.394 440-4890/? E/mediaserver: unlinkToDeath: removed reference to death recipient but unlink failed.
2021-08-10 16:33:19.405 440-4890/? E/IPCThreadState: attemptIncStrongHandle(13): Not supported
2021-08-10 16:34:06.149 493-493/? E/netmgr: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:network' service: Invalid argument
2021-08-10 16:34:06.150 493-493/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2021-08-10 16:34:06.418 496-496/? E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:wififorward' service: Invalid argument
2021-08-10 16:34:06.418 496-496/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe

Versions

All relevant version information for issue.

Video Android SDK

6.2.1

Android API

30

Android Device

Android Emulator Pixel 2 API 30 x86_64

Alton09 commented 3 years ago

Hi @4brunu ! Thanks for reaching out regarding this issue. Do you have any logs from the Redmi 9T device? Also, what were the other physical devices that you used and experienced the crash?

4brunu commented 3 years ago

Hi, unfortunately the Redmi 9T is with a colegue in another city, so I won't be able to get the logs. The emulator and the Redmi 9T where the only devices where we found the crash. But since it always crashs on the Android Emulator Pixel 2 API 30 x86_64, it should be easy to reproduce.

4brunu commented 3 years ago

Here is some additional information that we discovered. This crash on the Android clients, only happens when performing a call with a windows 10 desktop using Twilio Video Javascript 2.0.1, but we also tried the version 2.16.0 and the same happens.

The windows desktop has the following characteristics: MicrosoftTeams-image (1) MicrosoftTeams-image

With the following webcam: Conceptronic AMDIS FullHD - AMDIS01B

Running the on the following embeded chrome library: MicrosoftTeams-image (2)

We tested on a different PC and it works.

4brunu commented 3 years ago

We tried using a different webcam than Conceptronic AMDIS FullHD - AMDIS01B, and it works. Looks like the problem is from this webcam.

Reverting the twilio video android sdk from 6.2.1 to 5.10.2, makes the Android App work with this webcam.

4brunu commented 3 years ago

Here is the crash in the real device

2021-09-03 10:46:43.200 27332-27805/com.sample.sampleapp I/tvi.webrtc.Logging: AndroidVideoDecoder: ctor name: c2.android.vp8.decoder type: VP8 color format: 19 context: tvi.webrtc.EglBase14Impl$Context@757eff9
2021-09-03 10:46:43.201 27332-27805/com.sample.sampleapp I/tvi.webrtc.Logging: AndroidVideoDecoder: ctor name: OMX.qcom.video.decoder.vp9 type: VP9 color format: 19 context: tvi.webrtc.EglBase14Impl$Context@757eff9
2021-09-03 10:46:43.201 27332-27805/com.sample.sampleapp I/tvi.webrtc.Logging: AndroidVideoDecoder: ctor name: OMX.qcom.video.decoder.avc type: H264 color format: 19 context: tvi.webrtc.EglBase14Impl$Context@757eff9
2021-09-03 10:46:43.202 27332-27805/com.sample.sampleapp I/tvi.webrtc.Logging: AndroidVideoDecoder: ctor name: OMX.google.h264.decoder type: H264 color format: 19 context: tvi.webrtc.EglBase14Impl$Context@757eff9
2021-09-03 10:46:43.209 27332-27332/com.sample.sampleapp I/tvi.webrtc.Logging: EglRenderer: primaryVideoView: setLayoutAspectRatio: 0.5065666
2021-09-03 10:46:43.616 27332-27805/com.sample.sampleapp D/OpenSLESRecorder: InitRecording[tid=27805]
2021-09-03 10:46:43.616 27332-27805/com.sample.sampleapp D/OpenSLESRecorder: ObtainEngineInterface
2021-09-03 10:46:43.616 27332-27805/com.sample.sampleapp D/OpenSLESRecorder: CreateAudioRecorder
2021-09-03 10:46:43.616 27332-27805/com.sample.sampleapp W/libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
2021-09-03 10:46:43.616 27332-27805/com.sample.sampleapp I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
2021-09-03 10:46:43.616 27332-27805/com.sample.sampleapp D/AudioRecord: set(): inputSource 7, sampleRate 48000, format 0x1, channelMask 0x10, frameCount 0, notificationFrames 0, sessionId 0, transferType 1, flags 0x5, opPackageName  uid -1, pid -1
2021-09-03 10:46:43.652 27332-27805/com.sample.sampleapp D/OpenSLESRecorder: StartRecording[tid=27805]
2021-09-03 10:46:43.652 27332-27805/com.sample.sampleapp D/OpenSLESRecorder: state.count:2 state.index:0
2021-09-03 10:46:43.652 27332-27805/com.sample.sampleapp D/AudioRecord: start(77): sync event 0 trigger session 0, mSessionID=233
2021-09-03 10:46:43.745 27332-27925/com.sample.sampleapp I/tvi.webrtc.Logging: EglBase14Impl: Using OpenGL ES version 2
2021-09-03 10:46:43.747 27332-27925/com.sample.sampleapp I/tvi.webrtc.Logging: SurfaceTextureHelper: Setting listener to tvi.webrtc.AndroidVideoDecoder@11e92b5
2021-09-03 10:46:43.747 27332-27911/com.sample.sampleapp I/tvi.webrtc.Logging: AndroidVideoDecoder: initDecodeInternal name: c2.android.vp8.decoder type: VP8 width: 720 height: 405
2021-09-03 10:46:43.753 27332-27927/com.sample.sampleapp D/CCodec: allocate(c2.android.vp8.decoder)
2021-09-03 10:46:43.755 27332-27927/com.sample.sampleapp I/Codec2Client: Available Codec2 services: "software"
2021-09-03 10:46:43.755 27332-27927/com.sample.sampleapp I/Codec2Client: Creating a Codec2 client to service "software"
2021-09-03 10:46:43.758 27332-27927/com.sample.sampleapp I/Codec2Client: Client to Codec2 service "software" created
2021-09-03 10:46:43.762 27332-27927/com.sample.sampleapp I/CCodec: Created component [c2.android.vp8.decoder]
2021-09-03 10:46:43.762 27332-27927/com.sample.sampleapp D/CCodecConfig: read media type: video/x-vnd.on2.vp8
2021-09-03 10:46:43.763 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values
2021-09-03 10:46:43.764 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values
2021-09-03 10:46:43.764 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values
2021-09-03 10:46:43.764 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values
2021-09-03 10:46:43.764 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values
2021-09-03 10:46:43.764 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
2021-09-03 10:46:43.764 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values
2021-09-03 10:46:43.765 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: ignored struct field coded.color-format.locations
2021-09-03 10:46:43.765 27332-27927/com.sample.sampleapp D/CCodecConfig: ignoring local param raw.size (0xd2001800) as it is already supported
2021-09-03 10:46:43.765 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: ignored struct field raw.hdr-static-info.mastering
2021-09-03 10:46:43.765 27332-27927/com.sample.sampleapp I/CCodecConfig: query failed after returning 9 values (BAD_INDEX)
2021-09-03 10:46:43.766 27332-27927/com.sample.sampleapp D/CCodecConfig: c2 config diff is Dict {
      c2::u32 coded.pl.level = 0
      c2::u32 coded.pl.profile = 0
      c2::u32 default.color.matrix = 0
      c2::u32 default.color.primaries = 0
      c2::u32 default.color.range = 0
      c2::u32 default.color.transfer = 0
      c2::u32 input.buffers.max-size.value = 2097152
      c2::u32 input.delay.value = 0
      string input.media-type.value = "video/x-vnd.on2.vp8"
      string output.media-type.value = "video/raw"
      c2::u32 raw.color.matrix = 0
      c2::u32 raw.color.primaries = 0
      c2::u32 raw.color.range = 0
      c2::u32 raw.color.transfer = 0
      c2::u32 raw.max-size.height = 240
      c2::u32 raw.max-size.width = 320
      c2::u32 raw.pixel-format.value = 35
      c2::i32 raw.rotation.flip = 0
      c2::i32 raw.rotation.value = 0
      c2::u32 raw.sar.height = 1
      c2::u32 raw.sar.width = 1
      c2::u32 raw.size.height = 240
      c2::u32 raw.size.width = 320
      c2::u32 raw.surface-scaling.value = 1
    }
2021-09-03 10:46:43.766 27332-27927/com.sample.sampleapp W/ColorUtils: expected specified color aspects (0:0:0:0)
2021-09-03 10:46:43.768 27332-27926/com.sample.sampleapp D/SurfaceUtils: connecting to surface 0x7b4ad18010, reason connectToSurface
2021-09-03 10:46:43.768 27332-27926/com.sample.sampleapp I/MediaCodec: [c2.android.vp8.decoder] setting surface generation to 27987969
2021-09-03 10:46:43.768 27332-27926/com.sample.sampleapp D/SurfaceUtils: disconnecting from surface 0x7b4ad18010, reason connectToSurface(reconnect)
2021-09-03 10:46:43.768 27332-27926/com.sample.sampleapp D/SurfaceUtils: connecting to surface 0x7b4ad18010, reason connectToSurface(reconnect)
2021-09-03 10:46:43.768 27332-27927/com.sample.sampleapp D/CCodecConfig: no c2 equivalents for native-window
2021-09-03 10:46:43.769 27332-27927/com.sample.sampleapp D/CCodecConfig: config failed => CORRUPTED
2021-09-03 10:46:43.769 27332-27927/com.sample.sampleapp D/CCodecConfig: Bad parameter value
2021-09-03 10:46:43.769 27332-27927/com.sample.sampleapp D/CCodecConfig: c2 config diff is   c2::u32 raw.size.width = 720
2021-09-03 10:46:43.769 27332-27927/com.sample.sampleapp W/CCodec: failed to configure c2 params
2021-09-03 10:46:43.769 27332-27926/com.sample.sampleapp E/MediaCodec: Codec reported err 0xffffffea, actionCode 0, while in state 3
2021-09-03 10:46:43.771 27332-27926/com.sample.sampleapp D/SurfaceUtils: disconnecting from surface 0x7b4ad18010, reason disconnectFromSurface
2021-09-03 10:46:43.771 27332-27911/com.sample.sampleapp E/MediaCodec: configure failed with err 0xffffffea, resetting...
2021-09-03 10:46:43.775 27332-27927/com.sample.sampleapp D/CCodec: allocate(c2.android.vp8.decoder)
2021-09-03 10:46:43.777 27332-27927/com.sample.sampleapp I/CCodec: Created component [c2.android.vp8.decoder]
2021-09-03 10:46:43.778 27332-27927/com.sample.sampleapp D/CCodecConfig: read media type: video/x-vnd.on2.vp8
2021-09-03 10:46:43.779 27332-27811/com.sample.sampleapp I/tvi.webrtc.Logging: CameraStatistics: Camera fps: 27.
2021-09-03 10:46:43.779 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values
2021-09-03 10:46:43.779 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values
2021-09-03 10:46:43.779 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values
2021-09-03 10:46:43.780 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values
2021-09-03 10:46:43.780 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values
2021-09-03 10:46:43.780 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
2021-09-03 10:46:43.780 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values
2021-09-03 10:46:43.780 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: ignored struct field coded.color-format.locations
2021-09-03 10:46:43.781 27332-27927/com.sample.sampleapp D/CCodecConfig: ignoring local param raw.size (0xd2001800) as it is already supported
2021-09-03 10:46:43.781 27332-27927/com.sample.sampleapp D/ReflectedParamUpdater: ignored struct field raw.hdr-static-info.mastering
2021-09-03 10:46:43.781 27332-27927/com.sample.sampleapp I/CCodecConfig: query failed after returning 9 values (BAD_INDEX)
2021-09-03 10:46:43.781 27332-27927/com.sample.sampleapp D/CCodecConfig: c2 config diff is Dict {
      c2::u32 coded.pl.level = 0
      c2::u32 coded.pl.profile = 0
      c2::u32 default.color.matrix = 0
      c2::u32 default.color.primaries = 0
      c2::u32 default.color.range = 0
      c2::u32 default.color.transfer = 0
      c2::u32 input.buffers.max-size.value = 2097152
      c2::u32 input.delay.value = 0
      string input.media-type.value = "video/x-vnd.on2.vp8"
      string output.media-type.value = "video/raw"
      c2::u32 raw.color.matrix = 0
      c2::u32 raw.color.primaries = 0
      c2::u32 raw.color.range = 0
      c2::u32 raw.color.transfer = 0
      c2::u32 raw.max-size.height = 240
      c2::u32 raw.max-size.width = 320
      c2::u32 raw.pixel-format.value = 35
      c2::i32 raw.rotation.flip = 0
      c2::i32 raw.rotation.value = 0
      c2::u32 raw.sar.height = 1
      c2::u32 raw.sar.width = 1
      c2::u32 raw.size.height = 240
      c2::u32 raw.size.width = 320
      c2::u32 raw.surface-scaling.value = 1
    }
2021-09-03 10:46:43.781 27332-27927/com.sample.sampleapp W/ColorUtils: expected specified color aspects (0:0:0:0)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err: java.lang.IllegalArgumentException
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err:     at android.media.MediaCodec.native_configure(Native Method)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err:     at android.media.MediaCodec.configure(MediaCodec.java:2024)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err:     at android.media.MediaCodec.configure(MediaCodec.java:1952)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err:     at tvi.webrtc.MediaCodecWrapperFactoryImpl$MediaCodecWrapperImpl.configure(MediaCodecWrapperFactoryImpl.java:37)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err:     at tvi.webrtc.AndroidVideoDecoder.initDecodeInternal(AndroidVideoDecoder.java:192)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp W/System.err:     at tvi.webrtc.AndroidVideoDecoder.initDecode(AndroidVideoDecoder.java:157)
2021-09-03 10:46:43.783 27332-27911/com.sample.sampleapp E/rtc: #
    # Fatal error in: gen/sdk/android/generated_base_jni/../../../../../../../src/sdk/android/src/jni/jni_generator_helper.h, line 94
    # last system error: 0
    # Check failed: !env->ExceptionCheck()
    # 

    --------- beginning of crash
2021-09-03 10:46:43.784 27332-27911/com.sample.sampleapp A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 27911 (DecodingQueue -), pid 27332 (nepocketandroid)
2021-09-03 10:46:43.815 27332-27894/com.sample.sampleapp W/OpenSLESPlayer: Bad OpenSL ES playout timing, dT=159 [ms]
2021-09-03 10:46:43.941 27332-27921/com.sample.sampleapp W/OpenSLESRecorder: Bad OpenSL ES record timing, dT=289 [ms]

@Alton09 I have this device for a limited period of time, do you need any extra logs? Thanks

4brunu commented 3 years ago

This is now fixed in version 7.0.1, thanks 👍