aws / amazon-chime-sdk-android

An Android client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
105 stars 49 forks source link

amazon chime video call- crash issue #33

Closed mr-techiee closed 4 years ago

mr-techiee commented 4 years ago

@wanghaor-amzn after i updated my android chime SDK with latest one, i'm still facing an issue when i pressed the video call button, app get into crash. i added my log with this ticket.

#06-04 12:51:08.172 5503-6970/? E/AndroidRuntime: FATAL EXCEPTION: VideoClientCapturerThread
    Process: com.example.telemedicine_demo, PID: 5503
    java.lang.NoSuchMethodError: No static method create(Lorg/amazon/chime/webrtc/EglBase$Context;[I)Lorg/amazon/chime/webrtc/EglBase; in class Lorg/amazon/chime/webrtc/EglBase; or its super classes (declaration of 'org.amazon.chime.webrtc.EglBase' appears in /data/app/com.example.telemedicine_demo-1/base.apk)
        at com.xodee.client.video.VideoClientCapturer.internal_start(VideoClientCapturer.java:215)
        at com.xodee.client.video.VideoClientCapturer.lambda$start$3$VideoClientCapturer(VideoClientCapturer.java:158)
        at com.xodee.client.video.-$$Lambda$VideoClientCapturer$DVx-rKodn5fN7VwL3eK1YmSFUY8.run(lambda)
        at android.os.Handler.handleCallback(Handler.java:822)
        at android.os.Handler.dispatchMessage(Handler.java:104)
        at android.os.Looper.loop(Looper.java:207)
        at android.os.HandlerThread.run(HandlerThread.java:61)
06-04 12:51:38.191 5503-6971/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 6971 (Thread-27677)
06-04 13:32:13.693 11584-11589/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 11589 (Compiler driver)

Thanks and Regards, @mr.techiee

Originally posted by @mr-techiee in https://github.com/aws/amazon-chime-sdk-android/issues/5#issuecomment-638733441

hokyungh commented 4 years ago

Could you also provide more details based on issue template like phone you are using?

mr-techiee commented 4 years ago

Test environment Info (please complete the following information):

Device: Moto E3 power 
OS: Android 6.0. (patch level 2018-05-05)
Build number: XT1706_S152_190315_ROW
system version:23.0.XT1706_S152_190315_ROW
Version amazon-chime-sdk: 0.5.1
Version amazon-chime-sdk-media: 0.4.3
mitankit commented 4 years ago

@mr-techiee We have not been able to reproduce it. Could you please try with the latest version that was released on June 5th. The versions are Version amazon-chime-sdk: 0.5.2 Version amazon-chime-sdk-media: 0.5.0 Let us know if you still see the issue.

mr-techiee commented 4 years ago

@mitankit Thank you for your response! Still am facing the same issue, when i'm trying click video enable button its getting crashed,

--------- beginning of crash 06-08 17:21:11.112 7527-7853/? E/AndroidRuntime: FATAL EXCEPTION: VideoClientCapturerThread Process: com.example.telemedicine_demo, PID: 7527 java.lang.NoSuchMethodError: No static method create(Lorg/amazon/chime/webrtc/EglBase$Context;[I)Lorg/amazon/chime/webrtc/EglBase; in class Lorg/amazon/chime/webrtc/EglBase; or its super classes (declaration of 'org.amazon.chime.webrtc.EglBase' appears in /data/app/com.example.telemedicine_demo-1/base.apk) at com.xodee.client.video.VideoClientCapturer.internal_start(VideoClientCapturer.java:215) at com.xodee.client.video.VideoClientCapturer.lambda$start$3$VideoClientCapturer(VideoClientCapturer.java:158) at com.xodee.client.video.-$$Lambda$VideoClientCapturer$DVx-rKodn5fN7VwL3eK1YmSFUY8.run(lambda) at android.os.Handler.handleCallback(Handler.java:822) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:207) at android.os.HandlerThread.run(HandlerThread.java:61) 06-08 17:21:11.509 7527-7622/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0x9a3b37e0 06-08 17:21:11.755 7527-7856/? E/DefaultVideoClientObserver: webrtc_video_engine.cc: [041:617] [7856] (line 3264): Absent receive stream; ignoring clearing encoded frame sink for ssrc 0

Tested environment Info (please complete the following information):

Device: Moto E3 power OS: Android 6.0. (patch level 2018-05-05) Build number: XT1706_S152_190315_ROW system version:23.0.XT1706_S152_190315_ROW Version amazon-chime-sdk: 0.5.2 Version amazon-chime-sdk-media: 0.5.0

hokyungh commented 4 years ago

@mr-techiee Do you have other devices for testing by any chance? Closet devices we have were Moto E (2nd Generation) OS: Android 6.0

Motorola Moto G (2nd Generation) OS: Android 6.0

We were not able to reproduce the crash.

mr-techiee commented 4 years ago

@hokyungh Thanks for response. Now we don't get any error while we using the native android app.

when we try to integrate with flutter application it throws this error as a crash,

do you have any SDK that work with Hybrid Framework(Flutter)?

If yes please let us know.

Oblivious-Kibria commented 4 years ago

I have also faced this issue.

java.lang.NoSuchMethodError: No static method create(Lorg/amazon/chime/webrtc/EglBase$Context;[I)Lorg/amazon/chime/webrtc/EglBase; in class Lorg/amazon/chime/webrtc/EglBase; or its super classes (declaration of 'org.amazon.chime.webrtc.EglBase' appears in /data/app/com.banglatrac.workopolo-1/split_virtualmeeting.apk)

Testing on : Huawei CUN-U29 Android Version - 5.1 EMUI Version - EMUI 3.1

mr-techiee commented 4 years ago

i resolved the issue when i downgrading the android gradle version to 3.4.1,

classpath 'com.android.tools.build:gradle:3.4.1'

i think this should be temporary solutions, you guys are look into sort this issue in future.

Oblivious-Kibria commented 4 years ago

i resolved the issue when i downgrading the android gradle version to 3.4.1,

classpath 'com.android.tools.build:gradle:3.4.1'

i think this should be temporary solutions, you guys are look into sort this issue in future.

Downgrading the gradle version can be a temporary solution. But currently we are using gradle version 6.1.1.

hokyungh commented 4 years ago

@Oblivious-Kibria and @mr-techiee could you try 'com.android.tools.build:gradle:3.6.3' (something more than > 3.6) and see if it works?

mitankit commented 4 years ago

i resolved the issue when i downgrading the android gradle version to 3.4.1, classpath 'com.android.tools.build:gradle:3.4.1' i think this should be temporary solutions, you guys are look into sort this issue in future.

Downgrading the gradle version can be a temporary solution. But currently we are using gradle version 6.1.1.

If you are using gradle version 6.1.1 can you try using AGP 4.0.*. The SDK should work with any AGP >=3.6.3

Oblivious-Kibria commented 4 years ago

@mitankit Thanks a lot. After upgrading the gradle version it's working fine.

hokyungh commented 4 years ago

Will close this issue as this is resolved with new gradle version.