ANDROID / libjingle_peerconnection: Missing class org.webrtc.voiceengine.BuildInfo

1,585 views
Skip to first unread message

Pony Hugger

unread,
Feb 15, 2017, 6:48:59 AM2/15/17
to discuss-webrtc
Hi there!

I get the following error, when i try to initialize a connection with libjingle_peerconnection revision 16624:


02-15 12:39:09.543 1549-1549/? E/rtc: #
                                      # Fatal error in ../../webrtc/modules/utility/source/helpers_android.cc, line 68
                                      # last system error: 2
                                      # Check failed: !jni->ExceptionCheck()
                                      # Error during FindClass: org/webrtc/voiceengine/BuildInfo
                                      #
02-15 12:39:09.544 1549-1549/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 1549 (m.vypii.android)

Everything was working fine until revision 16107, while 16232, 16404, 16567, 16603, 16611, and 16624 failed with that error message.

Any ideas?

Cheers!
Kay

Henrik Andreasson

unread,
Feb 15, 2017, 6:53:39 AM2/15/17
to discuss-webrtc
What Android device and OS version is used?

--

---
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-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/fceff300-db2d-44dd-89d7-96c3299dbe50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pony Hugger

unread,
Feb 15, 2017, 6:56:45 AM2/15/17
to discuss-webrtc
Lenovo P850X tablet (Intel Atom X5-Z8350) with Android 5.1


Am Mittwoch, 15. Februar 2017 12:53:39 UTC+1 schrieb Henrik Andreassson:
What Android device and OS version is used?
On Wed, Feb 15, 2017 at 12:48 PM, 'Pony Hugger' via discuss-webrtc <discuss...@googlegroups.com> wrote:
Hi there!

I get the following error, when i try to initialize a connection with libjingle_peerconnection revision 16624:


02-15 12:39:09.543 1549-1549/? E/rtc: #
                                      # Fatal error in ../../webrtc/modules/utility/source/helpers_android.cc, line 68
                                      # last system error: 2
                                      # Check failed: !jni->ExceptionCheck()
                                      # Error during FindClass: org/webrtc/voiceengine/BuildInfo
                                      #
02-15 12:39:09.544 1549-1549/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 1549 (m.vypii.android)

Everything was working fine until revision 16107, while 16232, 16404, 16567, 16603, 16611, and 16624 failed with that error message.

Any ideas?

Cheers!
Kay

--

---
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.

Henrik Andreasson

unread,
Feb 15, 2017, 6:59:50 AM2/15/17
to discuss-webrtc
Can you reproduce with same WebRTC version on any other device with a later Android version?

To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/941c7855-9585-4bb7-a851-65044a3c9e23%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Henrik Andreasson | Software Engineer | hen...@google.com | +46 70 376 91 74

Pony Hugger

unread,
Feb 15, 2017, 7:50:43 AM2/15/17
to discuss-webrtc
It is also failing on another Intel X5 based device with Android 5.1.1. I've emulated an Android 6.0 environment and it is also failing there with the same error..

Henrik Andreasson

unread,
Feb 15, 2017, 8:14:20 AM2/15/17
to discuss-webrtc
Can't say why that happens and I can't reproduce. Please file a bug and explain exactly how to reproduce.
Use a default Android application (AppRTCMobile) as reference and compare.

To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4834cc22-fc08-4adb-ad0d-53d69232f947%40googlegroups.com.

Pony Hugger

unread,
Feb 15, 2017, 8:15:42 AM2/15/17
to discuss-webrtc
OK, thanks Henrik!

Taylor Brandstetter

unread,
Feb 15, 2017, 1:45:09 PM2/15/17
to discuss-webrtc, Mirko Bonadei
This sounds like you need to link with audio_device_java.jar.

+mbonadei, who was working on this area. Was linking to audio_device_java.jar not necessary until recently?

To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/867071c5-27c3-4267-9cef-d13535a3d136%40googlegroups.com.

Pony Hugger

unread,
Feb 15, 2017, 2:35:58 PM2/15/17
to discuss-webrtc, mbon...@google.com
Hi Taylor,

thanks for your hint, it is working now! I've included audio_device_java.jar manually.

Cheers!
Kay

Am Mittwoch, 15. Februar 2017 19:45:09 UTC+1 schrieb Taylor Brandstetter:
This sounds like you need to link with audio_device_java.jar.

+mbonadei, who was working on this area. Was linking to audio_device_java.jar not necessary until recently?

mbon...@webrtc.org

unread,
Feb 16, 2017, 2:36:45 AM2/16/17
to discuss-webrtc, mbon...@google.com
Hi Pony and Taylor,

'audio_device_java' was already necessary but it was included in 'libjingle_peerconnection_java' through a workaround that was violating the package boundaries:

 android_library("libjingle_peerconnection_java") {
   java_files = [
     # This is package boundary violation, we want to avoid this.
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/BuildInfo.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
     "api/org/webrtc/AudioSource.java",
     [...]

So we refactored the target in these two commits: 

At the beginning we included audio_device_java through the 'srcjar' attribute but after a review we decided to avoid to rely on that feature of 'android_library' and we created a new target: '//webrtc/sdk/android:libwebrtc' which creates a jar with everything.

Pony, can you try to depend on '//webrtc/sdk/android:libwebrtc'? In this way you can avoid to declare two dependencies.

Let me know.

Mirko

Pony Hugger

unread,
Feb 16, 2017, 5:55:33 AM2/16/17
to discuss-webrtc, mbon...@google.com
Hi Mirko,

do you want me to include that dependency in my build.gradle file or do i have to link to it somehow for the libjingle_peerconnection build? I am quite limited regarding the peerconnection build, as i am using Pristine's build scripts.

Cheers!
Kay


Am Donnerstag, 16. Februar 2017 08:36:45 UTC+1 schrieb mbon...@webrtc.org:
Hi Pony and Taylor,

'audio_device_java' was already necessary but it was included in 'libjingle_peerconnection_java' through a workaround that was violating the package boundaries:

 android_library("libjingle_peerconnection_java") {
   java_files = [
     # This is package boundary violation, we want to avoid this.
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/BuildInfo.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
     "//webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
     "api/org/webrtc/AudioSource.java",
     [...]

So we refactored the target in these two commits: 

At the beginning we included audio_device_java through the 'srcjar' attribute but after a review we decided to avoid to rely on that feature of 'android_library' and we created a new target: '//webrtc/sdk/android:libwebrtc' which creates a jar with everything.

Pony, can you try to depend on '//webrtc/sdk/android:libwebrtc'? In this way you can avoid to declare two dependencies.

Let me know.

Mirko





On Wednesday, February 15, 2017 at 7:45:09 PM UTC+1, Taylor Brandstetter wrote:
This sounds like you need to link with audio_device_java.jar.

+mbonadei, who was working on this area. Was linking to audio_device_java.jar not necessary until recently?

mbon...@webrtc.org

unread,
Feb 16, 2017, 6:11:47 AM2/16/17
to discuss-webrtc, mbon...@google.com

Pony Hugger

unread,
Feb 16, 2017, 6:16:17 AM2/16/17
to discuss-webrtc, mbon...@google.com
Hi Mirko,

yes, i am using that script - corresponding to the instructions here:

https://github.com/pristineio/webrtc-build-scripts

Best regards,
Kay

Sami Kalliomäki

unread,
Feb 16, 2017, 6:32:28 AM2/16/17
to discuss-webrtc, Mirko Bonadei
Hi,

You should modify the script to include libwebrtc.jar instead of libjingle_peerconnection_java.jar and base_java.jar.

Regards,
Sami Kalliomäki

--

---
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-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/d4ded4db-3f47-473d-a365-269fc63dcadb%40googlegroups.com.

Pony Hugger

unread,
Feb 16, 2017, 6:47:54 AM2/16/17
to discuss-webrtc, mbon...@google.com
Hi Sami,

unfortunately there is no libwebrtc.jar file. Will i have to get it from some external source?

Best regards,
Kay


Am Donnerstag, 16. Februar 2017 12:32:28 UTC+1 schrieb Sami Kalliomäki:
Hi,

You should modify the script to include libwebrtc.jar instead of libjingle_peerconnection_java.jar and base_java.jar.

Regards,
Sami Kalliomäki
On Thu, Feb 16, 2017 at 12:16 PM, 'Pony Hugger' via discuss-webrtc <discuss...@googlegroups.com> wrote:
Hi Mirko,

yes, i am using that script - corresponding to the instructions here:

https://github.com/pristineio/webrtc-build-scripts

Best regards,
Kay

Am Donnerstag, 16. Februar 2017 12:11:47 UTC+1 schrieb mbon...@webrtc.org:
Hi Kay, 

are you using this[1] script?


Mirko

On Thursday, February 16, 2017 at 11:55:33 AM UTC+1, Pony Hugger wrote:
Hi Mirko,

do you want me to include that dependency in my build.gradle file or do i have to link to it somehow for the libjingle_peerconnection build? I am quite limited regarding the peerconnection build, as i am using Pristine's build scripts.

Cheers!
Kay

--

---
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.

Sami Kalliomäki

unread,
Feb 16, 2017, 6:53:23 AM2/16/17
to discuss-webrtc, Mirko Bonadei
Hi,

Oh, it is not built by default. You can build it by manually specifying the target i.e. "ninja -C out/Debug libwebrtc".

Regards,
Sami Kalliomäki

To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/d7ad0cca-b5e6-4b99-8a8d-9a763791f501%40googlegroups.com.

Henrik Kjellander

unread,
Feb 16, 2017, 7:14:05 AM2/16/17
to discuss-webrtc, Mirko Bonadei
As always, please provide detailed information from the beginning when asking questions like this.

The fact that https://github.com/pristineio/webrtc-build-scripts was used for this build makes me think the primary forum for reporting issues with that (which is not maintained by the WebRTC team) should be filed at https://github.com/pristineio/webrtc-build-scripts/issues rather than at this list.

On Thu, Feb 16, 2017 at 12:52 PM, Sami Kalliomäki <sa...@webrtc.org> wrote:
Hi,

Oh, it is not built by default. You can build it by manually specifying the target i.e. "ninja -C out/Debug libwebrtc".

Regards,
Sami Kalliomäki

Pony Hugger

unread,
Feb 16, 2017, 8:48:20 AM2/16/17
to discuss-webrtc, mbon...@google.com
Thanks Sami!

I am sorry, Henrik! Thought that issue was related to webrtc. You are right, i'll provide more detailed information in future posts!

Cheers!
Kay


Am Donnerstag, 16. Februar 2017 13:14:05 UTC+1 schrieb Henrik Kjellander:
As always, please provide detailed information from the beginning when asking questions like this.

The fact that https://github.com/pristineio/webrtc-build-scripts was used for this build makes me think the primary forum for reporting issues with that (which is not maintained by the WebRTC team) should be filed at https://github.com/pristineio/webrtc-build-scripts/issues rather than at this list.
On Thu, Feb 16, 2017 at 12:52 PM, Sami Kalliomäki <sa...@webrtc.org> wrote:
Hi,

Oh, it is not built by default. You can build it by manually specifying the target i.e. "ninja -C out/Debug libwebrtc".

Regards,
Sami Kalliomäki

--

---
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.
Reply all
Reply to author
Forward
0 new messages