phonertc icon indicating copy to clipboard operation
phonertc copied to clipboard

Crashes in android during the session constructor initialisation

Open balaabhinav opened this issue 7 years ago • 4 comments

Hi,

My android phones (moto x2, xiomi mi3, OnePlus) all of them crash when in the line making a call to the session constructor. I saw that a similar issue was closed last year. I have followed the documentation and the sample ionic code to create my Ionic2 version for video calling. Could anyone help me out if I am missing something?

balaabhinav avatar Mar 24 '17 12:03 balaabhinav

do you solve it? I have the same error. When new cordova.plugins.phonertc.Session(config); it crash! browser(change password to credential) is right but android is wrong.

zengchuan avatar Aug 04 '17 04:08 zengchuan

Nope, I was not able to solve it. I just started using a third party video calling app and invoking it from my ionic app.


From: zengchuan [email protected] Sent: Friday, August 4, 2017 9:53 AM To: alongubkin/phonertc Cc: balaabhinav; Author Subject: Re: [alongubkin/phonertc] Crashes in android during the session constructor initialisation (#228)

do you solve it? I have the same error. When new cordova.plugins.phonertc.Session(config); it crash! browser(change password to credential) is right but android is wrong.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/alongubkin/phonertc/issues/228#issuecomment-320152857, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APac2BKo5NzIv9471UglOuPdzcB8Qwdyks5sUpymgaJpZM4MoMef.

balaabhinav avatar Aug 04 '17 04:08 balaabhinav

try giving the permissions ACCESS_NETWORK_STATE if not already.

chetanbnaik avatar Aug 21 '17 07:08 chetanbnaik

08-19 12:53:42.964 E/AndroidRuntime(11476): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/zengchuan.nancaochang.com-1/base.apk"],nativeLibraryDirectories=[/data/app/zengchuan.nancaochang.com-1/lib/arm64, /system/fake-libs64, /data/app/zengchuan.nancaochang.com-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libjingle_peerconnection_so.so" 08-19 12:53:42.964 E/AndroidRuntime(11476): at java.lang.Runtime.loadLibrary0(Runtime.java:972) 08-19 12:53:42.964 E/AndroidRuntime(11476): at java.lang.System.loadLibrary(System.java:1530) 08-19 12:53:42.964 E/AndroidRuntime(11476): at org.webrtc.PeerConnectionFactory.(PeerConnectionFactory.java:22) 08-19 12:53:42.964 E/AndroidRuntime(11476): at org.webrtc.PeerConnectionFactory.initializeAndroidGlobals(Native Method) 08-19 12:53:42.964 E/AndroidRuntime(11476): at com.dooble.phonertc.PhoneRTCPlugin$1.run(PhoneRTCPlugin.java:81) 08-19 12:53:42.964 E/AndroidRuntime(11476): at android.os.Handler.handleCallback(Handler.java:751) 08-19 12:53:42.964 E/AndroidRuntime(11476): at android.os.Handler.dispatchMessage(Handler.java:95) 08-19 12:53:42.964 E/AndroidRuntime(11476): at android.os.Looper.loop(Looper.java:154) 08-19 12:53:42.964 E/AndroidRuntime(11476): at android.app.ActivityThread.main(ActivityThread.java:6114) 08-19 12:53:42.964 E/AndroidRuntime(11476): at java.lang.reflect.Method.invoke(Native Method) 08-19 12:53:42.964 E/AndroidRuntime(11476): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:874) 08-19 12:53:42.964 E/AndroidRuntime(11476): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:764) 08-19 12:53:42.979 W/ActivityManager( 2030): Force finishing activity zengchuan.nancaochang.com/.MainActivity

how to resolve it?

zengchuan avatar Aug 21 '17 11:08 zengchuan