Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using G.729 codec #546

Open
GoogleCodeExporter opened this issue Jul 10, 2015 · 7 comments
Open

Crash when using G.729 codec #546

GoogleCodeExporter opened this issue Jul 10, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Build doubango using the attached patch to enable G.729 and enable debug.
2. Copy generated libs from android-projects/output/gpl/imsdroid/libs in 
android-ngn-stack 
3. Place a call between two smartphones running the generated version of 
Imsdroid using G.729 codec

What is the expected output? What do you see instead?
The call should stay up until one of the two parties hangs. The call, instead, 
is interrupted after a while (varing from seconds/minutes to hours) due to a 
crash of doubango on one of the parties.

What version of the product are you using? On what operating system?
Doubango r1233 / android-ngn-stack and imsdroid r579.
Reproduced on the following devices:
- Nexus 5/Android 5.0.1
- GT-I9505/Android 4.4.2
- SM-G900F/Android 4.4.2
- GT-I9100/Android 4.1.2

Please provide any additional information below.
Please find attached logcat and wireshark traces on a crash happened after few 
seconds on the GT-I9505 running Android 4.4.2.

Unfortunately, even enabling the debug (each version of tinyWRAP lib exceeds 
80MB), we don't get detailed info about the crash reason, just a line stated 
"Process org.doubango.imsdroid (pid 15298) (adj 0) has died".

Original issue reported on code.google.com by [email protected] on 16 Feb 2015 at 9:09

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 17 Feb 2015 at 8:52

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Tried with Doubango r1246 and imsdroid 580 on GT-I9100/Android 4.1.2 calling 
iPhone6 but cannot reproduce the crash.
Please try with my debug apk (https://ns313841.ovh.net/IMSDroid_g729.apk) and 
tell us if you have same crash.

Original comment by [email protected] on 18 Feb 2015 at 8:54

@GoogleCodeExporter
Copy link
Author

Tried with the provided debug apk using two GT-I9100/Android 4.1.2 devices 
calling each other using G.729 codec (we don't have an iPhone 6 yet). On both 
devices we disabled the "Enable STUN for ICE", "Enable AEC", "VAD" and "Noise 
reduction" options.

After about 50 mintues we got the same crash on one of the phones(logs attached 
are not taken from the start of the call because the AudioHardwareYamaha 
generates logs continously and filled the Logcat buffer).

Please find also attached logs of the same crash occurred after about 10 
minutes under the same conditions on a GT-I9505/Android 4.4.2 calling a 
GT-I9100/Android 4.1.2.

Original comment by [email protected] on 23 Feb 2015 at 9:35

Attachments:

@GoogleCodeExporter
Copy link
Author

From the logs we see that before the app crash we get an error from the 
AudioRecord also some other native services die. It looks like a memory leak 
issue and testing long duration calls I noticed very few variations in the 
memory usage. The memory usage increase significantly each time we start a new 
call. The IMSDroid application won't free the leaked memory when you close it 
as the service will be running in the background. Use "shell top" to track 
memory usage and report it here.
Do you have the crash for the very first calls (after phone restart) or not?

Original comment by [email protected] on 25 Feb 2015 at 7:20

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Here the results of the following test:

- Got the Imsdroid apk provided installed on two GT-I9100 running Android 4.1.2
- Both phones have been rebooted
- After reboot, start Imsdroid and place a call between the two phones using 
G.729 codec.
- After few minutes Imsdroid crashed on one of the phones.

Please find attached the following log files captured using the following 
commands:

Logcat (w/o AudioHardwareYamaha logs): adb logcat -v time | grep --invert-match 
LVVEFS
Memory monitor: adb shell 'while true; do date && top -t -n 1 | grep imsdroid; 
sleep 1; done'

Original comment by [email protected] on 2 Mar 2015 at 3:01

Attachments:

@GoogleCodeExporter
Copy link
Author

Any update about this issue? Thanks.

Original comment by [email protected] on 10 Apr 2015 at 8:46

@GoogleCodeExporter
Copy link
Author

We have tried almost everything but we haven't managed to reproduce the issue. 
The logs show the crash in the audio system not in g729 code. We'll continue 
working on the issue.

Original comment by [email protected] on 13 Apr 2015 at 2:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant