[webrtc-android] AppRTCDemoActivity: crash seen with latest code.

459 views
Skip to first unread message

Bipin Todur

unread,
May 1, 2014, 5:41:56 PM5/1/14
to discuss...@googlegroups.com
Hi,

After syncing to the latest code yesterday, I see that the basic loopback use case with AppRTCDemoActivity is crashing.
Crash stack points to
third_party/libvpx/subtract_neon.S:44
third_party/libvpx/source/libvpx/vp8/encoder/encodeintra.c:65


Log:

05-01 18:25:51.753  2017  2125 I libjingle: Enabling BUNDLE, bundling onto transport: audio
05-01 18:25:51.753  2017  2124 I libjingle: Channel enabled
05-01 18:25:51.753  2017  2124 I libjingle: Starting playout for channel #0
05-01 18:25:51.756   215   874 V nvaudiofx: MDRC 1
05-01 18:25:51.757   215   967 V nvaudiofx: nvaudiofx_set_rate = 48000
05-01 18:25:51.758  2017  2124 I libjingle: Changing voice state, recv=1 send=0
05-01 18:25:51.759  2017  2124 I libjingle: Channel enabled
05-01 18:25:51.759  2017  2124 I libjingle: Changing video state, recv=1 send=0
05-01 18:25:51.759  2017  2125 I libjingle: Session:6102165586776791114 Old state:STATE_SENTINITIATE New state:STATE_RECEIVEDACCEPT Type:urn:xmpp:jingle:apps:rtp:1 Transport:http://www.google.com/transport/p2p
05-01 18:25:51.759  2017  2124 I libjingle: Setting remote voice description
05-01 18:25:51.759  2017  2124 I libjingle: Send channel 0 selected voice codec ISAC/16000/1 (103), bitrate=32000
05-01 18:25:51.759  2017  2124 I libjingle: Enabling VAD
05-01 18:25:51.759  2017  2124 I libjingle: Recv stream 2983731691 reuse default channel
05-01 18:25:51.759  2017  2124 I libjingle: Starting playout for channel #0
05-01 18:25:51.759  2017  2124 I libjingle: Add remote ssrc: 2983731691
05-01 18:25:51.760  2017  2124 I libjingle: SRTP activated with negotiated parameters: send cipher_suite AES_CM_128_HMAC_SHA1_80 recv cipher_suite AES_CM_128_HMAC_SHA1_80
05-01 18:25:51.760  2017  2124 I libjingle: WebRtcVoiceMediaChanne::SetSendBandwidth.
05-01 18:25:51.760  2017  2124 I libjingle: WebRtcVoiceMediaChannel::SetSendBandwidthInternal.
05-01 18:25:51.760  2017  2124 I libjingle: Setting voice channel options: AudioOptions {}
05-01 18:25:51.760  2017  2124 I libjingle: Set voice channel options.  Current options: AudioOptions {}
05-01 18:25:51.760  2017  2124 I libjingle: Changing voice state, recv=1 send=0
05-01 18:25:51.760  2017  2124 I libjingle: Setting remote video description
05-01 18:25:51.760  2017  2123 W libjingle: Warning(webrtcvideoengine.cc:1548): webrtc: (rtp_packet_history.cc:48): Purging packet history in order to re-set status.
05-01 18:25:51.767  2017  2124 I libjingle: Hybrid NACK/FEC enabled for channel 0
05-01 18:25:51.767  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:138): SetSendCodec for channel 0
05-01 18:25:51.767  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:31): CodecType 0, pl_type 100, resolution 1280 x 720, start br 300, min br 50, max br 2000, max fps 30, max qp 56, number of streams 0
05-01 18:25:51.767  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:43): VP8 specific settings
05-01 18:25:51.767  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:44): pictureLossIndicationOn 0, feedbackModeOn 0, complexity 0, resilience 0, numberOfTemporalLayers 1, keyFrameinterval 3000
05-01 18:25:51.794  2017  2124 I libjingle: SetSendCodecs() : selected video codec VP8/1280x720x30fps@2000kbps (min=50kbps, start=300kbps)
05-01 18:25:51.794  2017  2124 I libjingle: Video max quantization: 56
05-01 18:25:51.794  2017  2124 I libjingle: VP8 number of temporal layers: 1
05-01 18:25:51.794  2017  2124 I libjingle: VP8 options : picture loss indication = 0, feedback mode = 0, complexity = normal, resilience = off, denoising = 0, error concealment = 0, automatic resize = 0, frame dropping = 1, key frame interval = 3000
05-01 18:25:51.795  2017  2124 I libjingle: Recv stream 2461530060 reuse default channel #0
05-01 18:25:51.795  2017  2124 I libjingle: Add remote ssrc: 2461530060
05-01 18:25:51.795  2017  2124 I libjingle: SRTP activated with negotiated parameters: send cipher_suite AES_CM_128_HMAC_SHA1_80 recv cipher_suite AES_CM_128_HMAC_SHA1_80
05-01 18:25:51.795  2017  2124 W libjingle: Warning(p2ptransportchannel.cc:812): SetOption(6, 3) failed: 0
05-01 18:25:51.795  2017  2124 W libjingle: Warning(p2ptransportchannel.cc:812): SetOption(6, 3) failed: 0
05-01 18:25:51.795  2017  2124 W libjingle: Warning(p2ptransportchannel.cc:812): SetOption(6, 3) failed: 0
05-01 18:25:51.795  2017  2124 I libjingle: WebRtcVideoMediaChannel::SetMaxSendBandwidth
05-01 18:25:51.795  2017  2124 I libjingle: SetMaxSendBandwidth() : selected video codec VP8/1280x720x30fps@2000kbps (min=50kbps, start=300kbps)
05-01 18:25:51.795  2017  2124 I libjingle: Video max quantization: 56
05-01 18:25:51.795  2017  2124 I libjingle: VP8 number of temporal layers: 1
05-01 18:25:51.795  2017  2124 I libjingle: VP8 options : picture loss indication = 0, feedback mode = 0, complexity = normal, resilience = off, denoising = 0, error concealment = 0, automatic resize = 0, frame dropping = 1, key frame interval = 3000
05-01 18:25:51.795  2017  2124 I libjingle: Changing video state, recv=1 send=0
05-01 18:25:51.795  2017  2124 W libjingle: Warning(webrtcvoiceengine.cc:2845): SetOutputVolumePan(0, 1, 1) failed, err=8040
05-01 18:25:51.795  2017  2124 I libjingle: SetOutputScaling to left=1 right=1 for channel 0 and ssrc 2983731691
05-01 18:25:51.796  2017  2124 I libjingle: RemoteVideoCapturer::Start
05-01 18:25:51.796  2017  2124 I libjingle: VAdapt input interval changed from 0 to 33333333
05-01 18:25:51.796  2017  2124 I libjingle: SetRenderer 2461530060 reuse default channel #0
05-01 18:25:51.796  2017  2124 I libjingle: Jingle:Conn[audio:kEQiOrnr:1:0:relay:udp:23.236.53.1:54667->:1:0.99:local:udp:192.168.1.116:51701|C--W|179615119951281662|-]: Connection created
05-01 18:25:51.796  2017  2124 I libjingle: Jingle:Channel[audio|1|__]: Created connection with origin=2, (1 total)
05-01 18:25:51.796  2017  2124 I libjingle: Jingle:Conn[audio:m7squMfc:1:0:local:udp:192.168.1.116:51701->:1:0.99:local:udp:192.168.1.116:51701|C--W|9114756780654345726|-]: Connection created
05-01 18:25:51.797  2017  2124 I libjingle: Jingle:Channel[audio|1|__]: Created connection with origin=2, (2 total)
05-01 18:25:51.797  2017  2124 I libjingle: Jingle:Channel[audio|1|__]: New best connection: Conn[audio:m7squMfc:1:0:local:udp:192.168.1.116:51701->:1:0.99:local:udp:192.168.1.116:51701|C--W|9114756780654345726|-]
05-01 18:25:51.797  2017  2125 W libjingle: Warning(webrtcsession.cc:1433): Candidate has unknown component: Cand[2880323124:2:udp:2122194687:192.168.1.116:51701:local::0:/ZssUD62MheME3jP:104ec4D2lRPSr8oRHoKsEYJa] for content: audio
05-01 18:25:51.799  2017  2125 W libjingle: Warning(webrtcsession.cc:1433): Candidate has unknown component: Cand[2880323124:2:udp:2122194687:192.168.1.116:51701:local::0:/ZssUD62MheME3jP:104ec4D2lRPSr8oRHoKsEYJa] for content: video
05-01 18:25:51.799  2017  2125 I libjingle: Session:6102165586776791114 Old state:STATE_RECEIVEDACCEPT New state:STATE_INPROGRESS Type:urn:xmpp:jingle:apps:rtp:1 Transport:http://www.google.com/transport/p2p
05-01 18:25:51.807  2017  2125 W libjingle: Warning(webrtcsession.cc:1433): Candidate has unknown component: Cand[2880323124:2:udp:2122194687:192.168.1.116:51701:local::0::] for content: audio
05-01 18:25:51.807  2017  2125 W libjingle: Warning(webrtcsession.cc:1433): Candidate has unknown component: Cand[2880323124:2:udp:2122194687:192.168.1.116:51701:local::0::] for content: video
05-01 18:25:51.814  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:138): SetSendCodec for channel 0
05-01 18:25:51.814  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:31): CodecType 0, pl_type 100, resolution 640 x 480, start br 300, min br 50, max br 2000, max fps 30, max qp 56, number of streams 0
05-01 18:25:51.814  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:43): VP8 specific settings
05-01 18:25:51.814  2017  2123 I libjingle: webrtc: (vie_codec_impl.cc:44): pictureLossIndicationOn 0, feedbackModeOn 0, complexity 0, resilience 0, numberOfTemporalLayers 1, keyFrameinterval 3000
05-01 18:25:51.826  2017  2135 I libjingle: Capture size changed : selected video codec VP8/640x480x30fps@2000kbps (min=50kbps, start=300kbps)
05-01 18:25:51.826  2017  2135 I libjingle: Video max quantization: 56
05-01 18:25:51.826  2017  2135 I libjingle: VP8 number of temporal layers: 1
05-01 18:25:51.826  2017  2135 I libjingle: VP8 options : picture loss indication = 0, feedback mode = 0, complexity = normal, resilience = off, denoising = 0, error concealment = 0, automatic resize = 1, frame dropping = 1, key frame interval = 3000
05-01 18:25:51.845  2017  2124 I libjingle: SetNetworkTransmissionState: 1
05-01 18:25:51.845  2017  2124 I libjingle: Channel socket writable (audio, 1) for the first time
05-01 18:25:51.845  2017  2124 I libjingle: Using Cand[2880323124:1:udp:2122194687:192.168.1.116:51701:local::0:/ZssUD62MheME3jP:104ec4D2lRPSr8oRHoKsEYJa]->Cand[2880323124:1:udp:2122194687:192.168.1.116:51701:local::0:/ZssUD62MheME3jP:104ec4D2lRPSr8oRHoKsEYJa]
05-01 18:25:51.845  2017  2124 I libjingle: Setting option overrides: AudioOptions {}
05-01 18:25:51.845  2017  2124 I libjingle: Applying audio options: AudioOptions {typing: false, experimental_agc: false, experimental_aec: false, experimental_ns: false, }
05-01 18:25:51.845  2017  2124 I libjingle: Typing detection is enabled? 0
05-01 18:25:51.845  2017  2123 E libjingle: Error(webrtcvideoengine.cc:1548): webrtc: (voe_audio_processing_impl.cc:1001): virtual int webrtc::VoEAudioProcessingImpl::SetTypingDetectionStatus(bool): not supported
05-01 18:25:51.845  2017  2124 W libjingle: Warning(webrtcvoiceengine.cc:866): SetTypingDetectionStatus(0) failed, err=8003
05-01 18:25:51.845  2017  2124 I libjingle: Experimental aec is 0
05-01 18:25:51.846  2017  2124 W AudioRecord: AUDIO_INPUT_FLAG_FAST denied by client
05-01 18:25:51.882  2017  2124 I libjingle: Changing voice state, recv=1 send=1
05-01 18:25:51.882  2017  2124 I libjingle: SetNetworkTransmissionState: 1
05-01 18:25:51.882  2017  2124 I libjingle: Channel socket writable (video, 1) for the first time
05-01 18:25:51.882  2017  2124 I libjingle: Using Cand[2880323124:1:udp:2122194687:192.168.1.116:51701:local::0:/ZssUD62MheME3jP:104ec4D2lRPSr8oRHoKsEYJa]->Cand[2880323124:1:udp:2122194687:192.168.1.116:51701:local::0:/ZssUD62MheME3jP:104ec4D2lRPSr8oRHoKsEYJa]
05-01 18:25:51.882  2017  2123 I libjingle: webrtc: (vie_base_impl.cc:242): virtual int webrtc::ViEBaseImpl::StartSend(int): StartSend: 0
05-01 18:25:51.882  2017  2124 I libjingle: Changing video state, recv=1 send=1
05-01 18:25:51.882  2017  2124 I libjingle: Jingle:Conn[audio:kEQiOrnr:1:0:relay:udp:23.236.53.1:54667->:1:0.99:local:udp:192.168.1.116:51701|C-xW|179615119951281662|-]: Connection deleted
05-01 18:25:51.883  2017  2124 I libjingle: Jingle:Channel[audio|1|RW]: Removed connection (1 remaining)
05-01 18:25:51.883  2017  2124 I libjingle: Jingle:Conn[audio:9GbX4blm:1:0:local:tcp:192.168.1.116:48699->:1:0.7:local:tcp:192.168.1.116:48699|C--W|6520683394080980478|-]: Connection created
05-01 18:25:51.885  2017  2124 I libjingle: Jingle:Channel[audio|1|RW]: Created connection with origin=2, (2 total)
05-01 18:25:51.885  2017  2124 I libjingle: Jingle:Conn[audio:9GbX4blm:1:0:local:tcp:192.168.1.116:48699->:1:0.7:local:tcp:192.168.1.116:48699|--xW|6520683394080980478|-]: Connection deleted
05-01 18:25:51.885  2017  2124 I libjingle: Jingle:Channel[audio|1|RW]: Removed connection (1 remaining)
05-01 18:25:51.885  2017  2124 W libjingle: Warning(physicalsocketserver.cc:332): EOF from socket; deferring close event
05-01 18:25:51.886  2017  2185 F libc    : Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 2185 (ViECaptureThrea)
05-01 18:25:51.904  2017  2123 W libjingle: Warning(webrtcvideoengine.cc:1548): webrtc: (rtp_utility.cc:475): Failed to find extension id: 1
05-01 18:25:51.904  2017  2123 W libjingle: Warning(webrtcvideoengine.cc:1548): webrtc: (rtp_utility.cc:475): Failed to find extension id: 3
05-01 18:25:51.947  2017  2123 W libjingle: Warning(webrtcvideoengine.cc:1548): webrtc: (rtp_utility.cc:475): Failed to find extension id: 1
05-01 18:25:51.947  2017  2123 W libjingle: Warning(webrtcvideoengine.cc:1548): webrtc: (rtp_utility.cc:475): Failed to find extension id: 3
05-01 18:25:51.989   211   211 I DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-01 18:25:51.989   211   211 I DEBUG   : Build fingerprint: 'nvidia/ardbeg/ardbeg:4.4.2/KOT49H/eng.hsayani.20140422.174808:eng/debug,test-keys'
05-01 18:25:51.989   211   211 I DEBUG   : Revision: '0'
05-01 18:25:51.990   211   211 I DEBUG   : pid: 2017, tid: 2185, name: ViECaptureThrea  >>> org.appspot.apprtc <<<
05-01 18:25:51.990   211   211 I DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
05-01 18:25:52.010   215  2197 W AudioFlinger: RecordThread: buffer overflow
05-01 18:25:52.059   211   211 I DEBUG   :     r0 77ae8764  r1 77ae94d0  r2 00000010  r3 00000000
05-01 18:25:52.059   211   211 I DEBUG   :     r4 00000000  r5 77ae8020  r6 77ae8760  r7 00000000
05-01 18:25:52.059   211   211 I DEBUG   :     r8 00000010  r9 797c6840  sl 77ae8764  fp 77ae8760
05-01 18:25:52.059   211   211 I DEBUG   :     ip 0000074c  sp 78bb04c0  lr 6fd19113  pc 6fd0ebd0  cpsr 80000010
05-01 18:25:52.059   211   211 I DEBUG   :     d0  0000000000005c16  d1  5a5a59595a5a5b5c
05-01 18:25:52.059   211   211 I DEBUG   :     d2  0000000000002cdb  d3  0000000000002f3b
05-01 18:25:52.059   211   211 I DEBUG   :     d4  8181818181818181  d5  8181818181818181
05-01 18:25:52.059   211   211 I DEBUG   :     d6  8181818181818181  d7  8181818181818181
05-01 18:25:52.059   211   211 I DEBUG   :     d8  0000000000000000  d9  0000000000000000
05-01 18:25:52.059   211   211 I DEBUG   :     d10 00000000000616b5  d11 0000000000000001
05-01 18:25:52.059   211   211 I DEBUG   :     d12 0000000000000000  d13 0000000000000000
05-01 18:25:52.059   211   211 I DEBUG   :     d14 00000b9500000b4a  d15 00000be200000be2
05-01 18:25:52.059   211   211 I DEBUG   :     d16 000005a400000559  d17 000005f1000005f1
05-01 18:25:52.059   211   211 I DEBUG   :     d18 000016dd000015fe  d19 000017c400001777
05-01 18:25:52.059   211   211 I DEBUG   :     d20 000005a4000005a4  d21 000005f1000005a4
05-01 18:25:52.059   211   211 I DEBUG   :     d22 ffd9ffd9ffd9ffd9  d23 ffd8ffd8ffd9ffd9
05-01 18:25:52.059   211   211 I DEBUG   :     d24 ffd9ffd9ffdaffdb  d25 ffd9ffd9ffd8ffd8
05-01 18:25:52.059   211   211 I DEBUG   :     d26 ffd9ffd9ffdaffdc  d27 ffdaffd8ffd8ffd8
05-01 18:25:52.059   211   211 I DEBUG   :     d28 ffd9ffdaffdaffda  d29 ffdaffd8ffd7ffd8
05-01 18:25:52.059   211   211 I DEBUG   :     d30 3fc54cbf272e5db2  d31 3e66376972bea4d0
05-01 18:25:52.059   211   211 I DEBUG   :     scr 20000012
05-01 18:25:52.060   211   211 I DEBUG   :
05-01 18:25:52.060   211   211 I DEBUG   : backtrace:
05-01 18:25:52.060   211   211 I DEBUG   :     #00  pc 002c3bd0  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so
05-01 18:25:52.060   211   211 I DEBUG   :     #01  pc 002ce111  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so
05-01 18:25:52.060   211   211 I DEBUG   :     #02  pc 00071c84  [anon:libc_malloc]




Bipin

Ami Fischman

unread,
May 1, 2014, 6:06:54 PM5/1/14
to discuss...@googlegroups.com
I don't see this on an N5 at r6035.  What device are you on?  Also a specific revision # is more useful than "yesterday" :)
If you can repro on demand can you bisect to find the breaking CL?



--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bipin Todur

unread,
May 1, 2014, 7:39:22 PM5/1/14
to discuss...@googlegroups.com
While regressing the issue, the problem just went away! I was having a problem with r6035.

Could be related to the fact that the first compile did not have "OS=android" (for some reason, "OS=android" was removed from GYP_DEFINES in build/android/envsetup.sh) and after I fixed that, the recompile was not clean.

I'll get back to the decode changelist now.

Bipin


--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/B_AEpRy-UYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.

Ami Fischman

unread,
May 1, 2014, 7:51:14 PM5/1/14
to discuss...@googlegroups.com
Yeah, sounds like you had a leftover intel object file built into an ARM executable.  Always best to nuke out/ when you switch architectures (even if the switch was due to an unintentional action).

andy424

unread,
May 2, 2014, 1:28:15 PM5/2/14
to discuss...@googlegroups.com
@Ami,
Did something change in the Android AppRTCDemo build procedure (such as a different env script to distinguish between x86 and ARMv7 or something)? I have checked out svn r6040. I did nuke the trunk/out directory. I am looking for the armv7-neon build of AppRTCDemo for android

gclient sync --nohooks --revision 6040
cd trunk
rm -rf out
. ./build/android/envsetup.sh
gclient runhooks
anand@mint ~/apprtc-android/trunk $ ninja -C out/Release AppRTCDemo
ninja: Entering directory `out/Release'
ninja: error: unknown target 'AppRTCDemo

ninja -C out/Release all    works but it does not build the AppRTCDemo.apk. I do see libjingle_peerconnection_so.so and libjingle_peerconnection.jar successfully built but not  AppRTCDemo.apk

Ami Fischman

unread,
May 2, 2014, 1:37:48 PM5/2/14
to discuss...@googlegroups.com
Yes; please see the email I just sent discuss-webrtc with subject "PSA: set OS=android to build for Android now".

Cheers,
-a

andy424

unread,
May 2, 2014, 2:57:01 PM5/2/14
to discuss...@googlegroups.com
@Ami
Thanks for you help! setting the GYP_DEFINES explicitly prior to gclient runhooks did the trick and I have a AppRTCDemo.apk .

export GYP_DEFINES="OS=android" 
gclient runhooks
ninja -C out/Release AppRTCDemo

SProgrammer

unread,
May 5, 2014, 6:08:59 AM5/5/14
to discuss...@googlegroups.com
Which Android versions did you made it work? oldest or latest Android you have used? i will test on Android Tablet and Android smartphone (Samsung Galaxy S4, Some Acer models)

thanks
Reg
Shamun
Reply all
Reply to author
Forward
0 new messages