[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] linphone blackberry error 523 on device

From: Jehan Monnier
Subject: Re: [Linphone-developers] linphone blackberry error 523 on device
Date: Tue, 10 May 2011 19:31:29 +0200

Hi Antionio,

Very interesting indeed.
Just a question, at the end, do you manage to fix the issue ?
It would be very kind if you can post a patch that I can integrate to the main GIT tree.


Le 10 mai 2011 à 10:59, Antonio Grillo a écrit :

Dear Aleksei,

I'm trying to investigate the problem in the class.

I have fixed the playerupdate() method, the states of the player are
represented as Strings and so they have to be compared using equals()
instead of ==.

Once fixed I have obtained that player at 30 secs of normal call
enters in the PlayerListener.ERROR state with EventData code -5 that
is an unspecified error.

As posted by Izrdus in the link above, he has idenitifed the player
error problem as follows:

"I had a problem with my bookkeeping when the offset approaches length
in buffer[],
int, int). Basically after 58000 bytes the audio would become
corrupted, causing the player to raise an error."

What do you about the Izrdus' solution?

I found an official code snippet from BlackBerry
explaining how to use the SourceStream as source for a Player. In that
snippet the Thread.sleep() is used with a delay of 100ms so I think
that sleeping 20ms for collecting more data should not be the problem.


Antonio Grillo, PhD Student
Dept. of Computer Science, System and Industrial Engineering
Room D1-21(aka S4ALab)
phone: 06 72597714
mail: address@hidden
University of Rome "Tor Vergata"
Via del Politecnico, 1 00133 Roma

On Fri, Apr 29, 2011 at 04:33, aleksei drassen <address@hidden> wrote:
The problem is in the player buffer (, when the player is
ready to "play"  the buffer (byte[] b) of the player does'nt have anything
data stored yet, then the outputstream returns -1 (end of stream) throw to
the thread sleep(20), so the player enter to a error state and stops, i'm
trying to determine how i can solve this without affect other app layers,
one solution (stable) is putting the recvstream in a timer to reset
and initiate the class ever 30 secs, but this is a bad solution (is'nt a

so, i think the solution maybe is rewritting the class take care to the
delayer timer and write stream implementation. For now i have some work in
my house and i cannot write anything for the moment, but if you understand
what is i say i think you can write the best stable class implementation
(and i appreciate if you share anyway)

lucky you!

From: address@hidden
Date: Thu, 28 Apr 2011 13:59:26 +0200
Subject: Re: [Linphone-developers] linphone blackberry error 523 on device
To: address@hidden

Hi Aleksei,

I'm trying linphone-bb on two real devices (Bold 9700).

I have patched the source code and I've disabled the log (ALT +
twice("lg")) as you suggested in the last mail.

Now, I can make VoIP call between two real devices but at 30 sec
(sometime a little more) there is no more audio, I'm trying to
understand the classes and

Do you make some progress in solving this problem?
If you have detected a possible source of problem may I help you in
investigate and solve it?



On Fri, Apr 8, 2011 at 18:03, aleksei drassen <address@hidden>
Hi, no, i test all and is no rigth to prevent the 523 error on the
the error ocurrs when the device try to fill queue (thread(20))  ms on
the device log, so, you'll need go directly to the device and disable
hand) the debug log.

device: on the home screen press alt+lglg  (press "l" + "g" twice)  and
toggle hide all elements on the list and select global warning, save,
thats all.

Maybe you have no sound at 30 secs of normal call (blackberry to
blackberry), but i don't resolve that issue yet.


Date: Thu, 7 Apr 2011 16:30:16 +0200
From: address@hidden
To: address@hidden; address@hidden
Subject: RE: [Linphone-developers] linphone blackberry error 523 on

Hi Aleksei,

I tried to implement the patch that you suggested for avoiding the 523
App Error on blackberry.

Unfortunately such patch does not work for me:

1) I've encapsulated the send method in a thread [Class]

Thread l1TmpThread = new Thread(new Runnable(){
public void run() {
mSendStream=new SendStream(mSession);

2) I've set a 30 ms sleep time when an RTPException occurs [Class]
try {
mSession.sendPacket(packet, mTs);
} catch (RtpException e) {

3) I've disabled all the log features [Class]
public void log(int level, String msg, Throwable e){
//No Operations

maybe I'm forgotting something??

Thanks in advance for your attentions


Linphone-developers mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]