react-native-twilio icon indicating copy to clipboard operation
react-native-twilio copied to clipboard

Android Error

Open dabit3 opened this issue 7 years ago • 8 comments

I've been trying to debug this for a while but can't come up with anything.

Everything works great on iOS, but in Android, after creating a call, I get what looks like an infinite loop stating the following errors:

01-04 17:54:42.714 8477-9330/com.channelmobile D/PJSIP: 17:54:42.714          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.715 8477-9330/com.channelmobile D/PJSIP: 17:54:42.715          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.715 8477-9330/com.channelmobile D/PJSIP: 17:54:42.715          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.715 8477-9330/com.channelmobile D/PJSIP: 17:54:42.715          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.715 8477-9330/com.channelmobile D/PJSIP: 17:54:42.715          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.715 8477-9330/com.channelmobile D/PJSIP: 17:54:42.715          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.715 8477-9330/com.channelmobile D/PJSIP: 17:54:42.715          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.716 8477-9330/com.channelmobile D/PJSIP: 17:54:42.716          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.716 8477-9330/com.channelmobile D/PJSIP: 17:54:42.716          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.718 8477-9330/com.channelmobile D/PJSIP: 17:54:42.718          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.719 8477-9330/com.channelmobile D/PJSIP: 17:54:42.719          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.719 8477-9330/com.channelmobile D/PJSIP: 17:54:42.719          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.720 8477-9330/com.channelmobile D/PJSIP: 17:54:42.720          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.721 8477-9330/com.channelmobile D/PJSIP: 17:54:42.721          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.721 8477-9330/com.channelmobile D/PJSIP: 17:54:42.721          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.721 8477-9330/com.channelmobile D/PJSIP: 17:54:42.721          speex  warning: No playback frame available (your application is buggy and/or got xruns)
01-04 17:54:42.724 8477-9329/com.channelmobile D/PJSIP: 17:54:42.724          speex !warning: Auto-filling the buffer (your application is buggy and/or got xruns)

This gets thrown when the Twilio.connect({To: '+61234567890'}); method is called in javascript.

Any idea what may be causing this?

dabit3 avatar Jan 04 '17 23:01 dabit3

@rogchap any idea what may be going on here?

dabit3 avatar Jan 11 '17 14:01 dabit3

Also, @fabriziomoscon if you have a minute, I would appreciate your help with this, thank you!

dabit3 avatar Jan 11 '17 14:01 dabit3

Does it affect the telephone call at all? Or are you just concerned about the errors in the log? I remember I was also noticing massive blocks of error coming from PJSIP, but somehow they were not affecting my calls.

I have completely moved my Android implementation to https://github.com/hoxfon/react-native-twilio-programmable-voice, because for my app it doesn't make sense having the call receiver working only when the app is opened. And the Client SDK has that big limitation, because it doesn't use push notification to notify about the received calls. I haven't had a chance to build the ios part of my library yet - which I would be more than happy to delegate to more iOS competent developers - but I believe that moving to the Programmable Voice SDK is also recommended by Twilio.

I am sorry I couldn't help more

fabriziomoscon avatar Jan 11 '17 15:01 fabriziomoscon

@fabriziomoscon No, it does not affect the call itself, but once the call is finished and hung up, the app crashes when trying to initiate a second call.

I will definitely take a look at the twilio-programmable-voice-sdk, that looks really promising.

Thanks so much for your help!

dabit3 avatar Jan 11 '17 16:01 dabit3

I remember while using this library I also have experienced few annoying crashes on hangup. I don't think I found the reason though.

fabriziomoscon avatar Jan 11 '17 17:01 fabriziomoscon

Ah, very useful info, I appreciate your quick responses today.

dabit3 avatar Jan 11 '17 17:01 dabit3

Hi @dabit3 , I'm having the same issue, did you move to react-native-twilio-programmable-voice already?

zhantx avatar May 29 '17 05:05 zhantx

@zhantx yes I did!

dabit3 avatar Jun 03 '17 07:06 dabit3