triniwiz / nativescript-webrtc

Apache License 2.0
42 stars 25 forks source link

App crash on starting video call #27

Closed nkemerchou closed 4 years ago

nkemerchou commented 5 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

Is there any code involved?

nkemerchou commented 5 years ago

Can you please advise on what could be the reason to the application crash, i just did a tns project (angular) and everything work until i click on the user to start the camera - the weird thing is tat it work with your demo-ng project but not with the project i did, even thought every thing is the same not sure what is missing---- please advise!!!

triniwiz commented 5 years ago

What version of {N}?

abahrisd commented 5 years ago

Face with same problem - sometimes app freeze on answer videocall. No errors in console, just freeze. What could be problem?

Macarthurval commented 5 years ago

Same here

Macarthurval commented 5 years ago

For me the error only happens in Android, exactly at this.webrtc.makeOffer(new org.webrtc.MediaConstraints());, so I think that the problem is really in fancy-webrtc-android.

triniwiz commented 5 years ago

@Macarthurval that's the error ?

triniwiz commented 5 years ago

Also something tells me you might be using the older api

Macarthurval commented 5 years ago

I'm trying to run the demo you provided.

I'm running the node server, installing the Javascript core demo in iOs and Android and trying a videocall from iOs to Android. The app crashes silently in Android.

Here are some native logs I could find but they don't help me very much:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Hyundai/W25042L/W25042L:7.0/NRD90M/1497536940:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 2309, tid: 2781, name: worker_thread -  >>> com.github.triniwiz.nativescript.webrtc.demo.core <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3c
    r0 00000000  r1 9551d654  r2 00000043  r3 00000000
    r4 99513400  r5 ffffffff  r6 9551d648  r7 9551d654
    r8 989bb1d8  r9 99513504  sl 9958a598  fp 9541e5bc
    ip 00000044  sp 9551d648  lr 97e875eb  pc 97e875ee  cpsr 600f0030

backtrace:
    #00 pc 003385ee  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #01 pc 00337d03  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #02 pc 00383279  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #03 pc 00383961  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #04 pc 0017836f  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #05 pc 00183485  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #06 pc 00177e37  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #07 pc 001832a9  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #08 pc 001831fd  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #09 pc 00047fb3  /system/lib/libc.so (_ZL15__pthread_startPv+22)
    #10 pc 00019a1d  /system/lib/libc.so (__start_thread+6)

and:

onEndOfErrorDumpThread: data_app_native_crash Process: com.github.triniwiz.nativescript.webrtc.demo.core
Flags: 0x3888be46
Package: com.github.triniwiz.nativescript.webrtc.demo.core v1 (1.0)
Foreground: Yes
Build: Hyundai/W25042L/W25042L:7.0/NRD90M/1497536940:user/release-keys

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Hyundai/W25042L/W25042L:7.0/NRD90M/1497536940:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 2309, tid: 2781, name: worker_thread -  >>> com.github.triniwiz.nativescript.webrtc.demo.core <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3c
    r0 00000000  r1 9551d654  r2 00000043  r3 00000000
    r4 99513400  r5 ffffffff  r6 9551d648  r7 9551d654
    r8 989bb1d8  r9 99513504  sl 9958a598  fp 9541e5bc
    ip 00000044  sp 9551d648  lr 97e875eb  pc 97e875ee  cpsr 600f0030

backtrace:
    #00 pc 003385ee  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #01 pc 00337d03  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #02 pc 00383279  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #03 pc 00383961  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #04 pc 0017836f  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #05 pc 00183485  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #06 pc 00177e37  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #07 pc 001832a9  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #08 pc 001831fd  /data/app/com.github.triniwiz.nativescript.webrtc.demo.core-1/lib/arm/libjingle_peerconnection_so.so
    #09 pc 00047fb3  /system/lib/libc.so (_ZL15__pthread_startPv+22)
    #10 pc 00019a1d  /system/lib/libc.so (__start_thread+6)
 2309
Exception Log handling...

I'm trying everything to get it work without success, I have practically rewritten your fancy-webrtc-android in core Javascript but I have not managed to make it work...

Please, I would appreciate very much you help on this!, I can help you debbuging.

My Android version is 7.0, Nativescript 6.0.3

Thank you very much.

triniwiz commented 5 years ago

Please try again in .19

Macarthurval commented 5 years ago

I've just tried with "nativescript-webrtc-plugin": "^2.0.0-alpha.19" and the result was exactly the same.