Android: weird systematic crash in video decoding

1,284 views
Skip to first unread message

Joel Fleishman

unread,
Oct 6, 2016, 7:52:13 AM10/6/16
to discuss-webrtc
Hi,
i have developed a simple video conference app in android using libjingle porting,
it really works great for videos coming from the webcam. But i have the need to share the screen
and i am building the video from the jpeg of the screen, brodcast it.
When the peer receive this video, some tablet works, others crash with:

9-21 17:09:56.433  11575-12468/? I/MediaCodecVideoDecoder MediaCodecVideoDecoder: Decoder format changed: {image-data=java.nio.ByteArrayBuffer[position=0,limit=80,capacity=80], mime=video/raw, crop-top=0, crop-right=1151, slice-height=601, color-format=19, height=601, width=1152, what=1869968451, crop-bottom=600, crop-left=0, stride=1152}
09-21 17:09:56.433  11575-12468/? I/MediaCodecVideoDecoder MediaCodecVideoDecoder: Color: 0x13
09-21 17:09:56.433  11575-12468/? I/MediaCodecVideoDecoder MediaCodecVideoDecoder: Frame stride and slice height: 1152 x 601
09-21 17:09:56.443  11575-12468/? E/rtc #
   
# Fatal error in ../../talk/app/webrtc/java/jni/androidmediadecoder_jni.cc, line 692
   
# Check failed: 0 == slice_height  (0 vs. 1)
   
#
   
#
09-21 17:09:56.443  11575-12468/? A/libc Fatal signal 6 (SIGABRT), code -6 in tid 12468 (MediaCodecVideo)



I would like to know if it can depend on the video resolution for example, for example some tablets are not precisely fullHd,
but they have formats as 1200x1920. From the log above it seems there is 'dirty' frame, or a 'null' frame.
On some tablets this crash is systematic. Do you have some ideas?
Thansk in advance,

Regards,
Joel

mag...@webrtc.org

unread,
Nov 3, 2016, 5:16:56 AM11/3/16
to discuss-webrtc
The actual check that fails is:
RTC_CHECK_EQ(0, slice_height % 2);
i.e. the height is odd. This is a bug in WebRTC that the decoder can only handle even height. We will try to fix it as part of issue 6651.

Raman Budny

unread,
Nov 3, 2016, 11:19:00 AM11/3/16
to discuss-webrtc
Same fro me, I experience the same crash on Samsung GT-I9500, Android 4.4.2 using WebRTC r114091 (M54):
E/OMXNodeInstance(  187): getParameter(213:qcom.decoder.vp8, ??(0x7f00003d)) ERROR: UnsupportedSetting(0x80001019)
E/OMXNodeInstance(  187): getParameter(213:qcom.decoder.vp8, ??(0x7f00003d)) ERROR: UnsupportedSetting(0x80001019)
E/OMX-VDEC-1080P(  187): get_parameter: unknown param 6f600007
E/OMXNodeInstance(  187): getParameter(213:qcom.decoder.vp8, ParamVideoAndroidVp8Encoder(0x6f600007)) ERROR: UnsupportedIndex(0x8000101a)
E/OMXNodeInstance(  187): getParameter(213:qcom.decoder.vp8, ??(0x7f00003d)) ERROR: UnsupportedSetting(0x80001019)
E/OMXNodeInstance(  187): getParameter(213:qcom.decoder.vp8, ??(0x7f00003d)) ERROR: UnsupportedSetting(0x80001019)
E/rtc     (10490): 
E/rtc     (10490): 
E/rtc     (10490): #
E/rtc     (10490): # Fatal error in ../../webrtc/api/android/jni/androidmediadecoder_jni.cc, line 788
E/rtc     (10490): # last system error: 88
E/rtc     (10490): # Check failed: 0 == slice_height  (0 vs. 1)
E/rtc     (10490): # 
E/rtc     (10490): #
Reply all
Reply to author
Forward
0 new messages