libjingle - Android AppRTCDemo example - native crashs

813 views
Skip to first unread message

mparis

unread,
Apr 17, 2013, 4:45:38 AM4/17/13
to discuss...@googlegroups.com

Hi, I have a SIGSEGV signal when I run AppRTCDemo example provided in libjingle project.

I am using the revision r305 of libjingle and I followed the instruction of README under /trunk/talk/examples/android dir.
I also had to do the next steps because following only the README i couldn't compile
libjingle_peerconnection_so.so :
  •  set 'libjingle_java' to 1 in trunk/talk/build/common.gypi line 38
  •  set correct JDK path in trunk/talk/libjingle.gyp line 61
  •  export GYP_GENERATORS='ninja'
Moreover, I had to add the next include in peerconnection_jni.c because Constraint struct couldn't be found.
#include "talk/app/webrtc/mediaconstraintsinterface.h"

After all this, I got compile libjingle_peerconnection_so.so and build the AppRTCDemo, but now I have a SIGSEGV in this library when I run the APP on nexus 4.
I obtain the next backtrace:
04-16 11:24:31.443: I/DEBUG(158): backtrace:
04-16 11:24:31.443: I/DEBUG(158):     #00  pc 0001a772  /system/lib/libc.so
04-16 11:24:31.443: I/DEBUG(158):     #01  pc 00018070  /system/lib/libc.so (abort+4)
04-16 11:24:31.443: I/DEBUG(158):     #02  pc 0002f47b  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so ((anonymous namespace)::StatsObserverWrapper::OnComplete(std::vector<webrtc::StatsReport, std::allocator<webrtc::StatsReport> > const&)+698)
04-16 11:24:31.443: I/DEBUG(158):     #03  pc 000a3c07  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so (webrtc::PeerConnection::OnMessage(talk_base::Message*)+110)
04-16 11:24:31.443: I/DEBUG(158):     #04  pc 00069dc9  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so (talk_base::MessageQueue::Dispatch(talk_base::Message*)+8)
04-16 11:24:31.443: I/DEBUG(158):     #05  pc 0006955d  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so (talk_base::Thread::ProcessMessages(int)+76)
04-16 11:24:31.443: I/DEBUG(158):     #06  pc 00069793  /data/app-lib/org.appspot.apprtc-1/libjingle_peerconnection_so.so (talk_base::Thread::PreRun(void*)+34)
04-16 11:24:31.443: I/DEBUG(158):     #07  pc 0000e3d8  /system/lib/libc.so (__thread_entry+72)
04-16 11:24:31.443: I/DEBUG(158):     #08  pc 0000dac4  /system/lib/libc.so (pthread_create+160)


Using addr2line I can see that this the line that crashed is 713 in peerconection_jni, when CHECK_EXCEPTION(jni(), "error during CallVoidMethod"); is executed:
0x0002f47b
OnComplete
peerconnection_jni.cc:713
0x000a3c07
webrtc::PeerConnection::OnMessage(talk_base::Message*)
peerconnection.cc:628
0x00069dc9
talk_base::MessageQueue::Dispatch(talk_base::Message*)
messagequeue.cc:368
0x0006955d
talk_base::Thread::ProcessMessages(int)
thread.cc:511
0x00069793
talk_base::Thread::PreRun(void*)
thread.cc:356


How can I solve this issue?

Thanks in advance!!


Vikas

unread,
Apr 17, 2013, 2:57:55 PM4/17/13
to discuss-webrtc
Thanks for the feedback, please file a bug in webrtc issue tracker
with all the information.

/Vikas

On Apr 17, 1:45 am, mparis <mparisd...@gmail.com> wrote:
> Hi, I have a SIGSEGV signal when I run AppRTCDemo example provided in
> libjingle project.
>
> I am using the revision *r305* of libjingle and I followed the instruction
> of README under /trunk/talk/examples/android dir.
> I also had to do the next steps because following only the README i
> couldn't compile libjingle_peerconnection_so.so :
>
>    -
>
>     set 'libjingle_java' to 1 in trunk/talk/build/common.gypi line 38
>
>    -
>
>     set correct JDK path in trunk/talk/libjingle.gyp line 61
>
>    -

mparis

unread,
Apr 18, 2013, 4:07:41 AM4/18/13
to discuss...@googlegroups.com
I have opened a new issue:
http://code.google.com/p/webrtc/issues/detail?id=1666

I hope it will be useful for help.
Reply all
Reply to author
Forward
0 new messages