Division error.

View: New views
4 Messages — Rating Filter:   Alert me  

Division error.

by Anil Jangam-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

Team,

 

Recently we faced lot of “Division Err” during one of the testing procedure and not sure why and when this error might occur. Out debugging so far, reveals that the problem occur during conversion of ‘qcelp’ type of audio file.

 

...
6824/43: write(1, " D i v i s i o n E r r".., 39) Err#27 EFBIG
6824/43: write(1, " D i v i s i o n E r r".., 39) Err#27 EFBIG
6824/27: write(1, " D i v i s i o n E r r".., 36) Err#27 EFBIG
6824/27: write(1, " D i v i s i o n E r r".., 39) Err#27 EFBIG
6824/27: write(1, " D i v i s i o n E r r".., 39) Err#27 EFBIG

 

----------------- lwp# 27 / thread# 27 --------------------
faa9fbb4 recursive_conv
faa98508 encoder
faa2e82c st_qcelp13kwrite
faa27968 flow_effect_out
faa27684 st_conv_convert
faa258fc sox_audxcode
fa9da168
__1cKSoundXcodeFdoSox6MpnHobArena_pcirnRXcodeAudioRequest_rnSXcodeAudioResponse_
_b_

 

This looks to be a precautionary check while performing the auto gain control of the output speech signal from input speech signal.

<snip:agc.c:225>
s = L_deposit_l (div_s (gain_out, gain_in));
</snip>

 

This is where this error is coming from file - sox/amr/basicop2.c

Word16 var_out = 0;
Word16 iteration;
Word32 L_num;
Word32 L_denom;

if ((var1 > var2) || (var1 < 0) || (var2 < 0))
{
printf ("Division Error var1=%d var2=%d\n", var1, var2);
// abort(); /* exit (0); */
return var_out;
}
if (var2 == 0)
{
printf ("Division by 0, Fatal error \n");
// abort(); /* exit (0); */
return var_out;

 

IMO, the divide by 0 error is being handled gracefully here but just confirming why this error is coming.

 

Can anybody please let me know where the problem is?

 

/anil.

 

 

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Division error.

by robs-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm afraid I can't offer much help here; AMR support in SoX is supplied by a 3rd-party library.  Are you sure that div_s is causing the problem?  It doesn't appear to be listed in your stack trace and, as you say, appears to handle div by 0 gracefully.

/Rob

--- On Thu, 8/10/09, Anil Jangam <anil_jangam@...> wrote:

> From: Anil Jangam <anil_jangam@...>
> Subject: [SoX-users] Division error.
> To: "sox-users@..." <sox-users@...>
> Date: Thursday, 8 October, 2009, 1:29 PM
>
>
>
>  
>  
>
>
>
>
>
>
>  
>
>
>
>   
>
> Team,
>
>   
>
> Recently we faced lot of
> “Division Err” during
> one of the testing procedure and not sure why and when this
> error might occur.
> Out debugging so far, reveals that the problem occur during
> conversion of ‘qcelp’
> type of audio file.  
>
>   
>
> ...
>
> 6824/43: write(1, " D i v i s i o n E r r".., 39)
> Err#27 EFBIG
>
> 6824/43: write(1, " D i v i s i o n E r r".., 39)
> Err#27 EFBIG
>
> 6824/27: write(1, " D i v i s i o n E r r".., 36)
> Err#27 EFBIG
>
> 6824/27: write(1, " D i v i s i o n E r r".., 39)
> Err#27 EFBIG
>
> 6824/27: write(1, " D i v i s i o n E r r".., 39)
> Err#27 EFBIG
>
>   
>
> ----------------- lwp# 27 /
> thread#
> 27 --------------------
>
> faa9fbb4 recursive_conv
>
> faa98508 encoder
>
> faa2e82c st_qcelp13kwrite
>
> faa27968 flow_effect_out
>
> faa27684 st_conv_convert
>
> faa258fc sox_audxcode
>
> fa9da168
>
> __1cKSoundXcodeFdoSox6MpnHobArena_pcirnRXcodeAudioRequest_rnSXcodeAudioResponse_
>
> _b_
>
> …
>
>   
>
> This looks to be a precautionary check
> while performing the
> auto gain control of the output speech signal from input
> speech signal.
>
>
>
>  
>
> <snip:agc.c:225>
>
> s = L_deposit_l (div_s (gain_out, gain_in));
>
> </snip>
>
>   
>
> This is where this error is coming
> from file - sox/amr/basicop2.c
>
>
>
>  
>
> Word16
> var_out = 0;
>
> Word16 iteration;
>
> Word32 L_num;
>
> Word32 L_denom;
>
>
>
> if ((var1 > var2) || (var1 < 0) || (var2 < 0))
>
> {
>
> printf ("Division Error var1=%d var2=%d\n",
> var1, var2);
>
> // abort(); /* exit (0); */
>
> return var_out;
>
> }
>
> if (var2 == 0)
>
> {
>
> printf ("Division by 0, Fatal error \n");
>
> // abort(); /* exit (0); */
>
> return var_out;
>
>   
>
> IMO, the divide by 0 error is being
> handled gracefully here
> but just confirming why this error is coming.
>
>   
>
> Can anybody please let me know where
> the problem is?
>
>   
>
> /anil.
>
>   
>
>   
>
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential
> information which is the property of Persistent Systems Ltd.
> It is intended only for the use of the individual or entity
> to which it is addressed. If you are not the intended
> recipient, you are not authorized to read, retain, copy,
> print, distribute or use this message. If you have received
> this communication in error, please notify the sender and
> delete all copies of this message. Persistent Systems Ltd.
> does not accept any liability for virus infected mails.
>  
>
>
>
> -----Inline Attachment Follows-----
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference
> in SF, CA
> is the only developer event you need to attend this year.
> Jumpstart your
> developing skills, take BlackBerry mobile applications to
> market and stay
> ahead of the curve. Join us from November 9 - 12, 2009.
> Register now!
> http://p.sf.net/sfu/devconference
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Sox-users mailing list
> Sox-users@...
> https://lists.sourceforge.net/lists/listinfo/sox-users
>


     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Division error.

by Anil Jangam-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Rob,

Can you tell me what third part library is used to handle the AMR conversion?

/anil.


> -----Original Message-----
> From: robs [mailto:aquegg@...]
> Sent: Saturday, October 10, 2009 1:30 AM
> To: sox users list
> Subject: Re: [SoX-users] Division error.
>
> I'm afraid I can't offer much help here; AMR support in SoX is supplied
> by a 3rd-party library.  Are you sure that div_s is causing the
> problem?  It doesn't appear to be listed in your stack trace and, as
> you say, appears to handle div by 0 gracefully.
>
> /Rob
>
> --- On Thu, 8/10/09, Anil Jangam <anil_jangam@...> wrote:
>
> > From: Anil Jangam <anil_jangam@...>
> > Subject: [SoX-users] Division error.
> > To: "sox-users@..." <sox-
> users@...>
> > Date: Thursday, 8 October, 2009, 1:29 PM
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Team,
> >
> >
> >
> > Recently we faced lot of
> > “Division Err” during
> > one of the testing procedure and not sure why and when this
> > error might occur.
> > Out debugging so far, reveals that the problem occur during
> > conversion of ‘qcelp’
> > type of audio file.
> >
> >
> >
> > ...
> >
> > 6824/43: write(1, " D i v i s i o n E r r".., 39)
> > Err#27 EFBIG
> >
> > 6824/43: write(1, " D i v i s i o n E r r".., 39)
> > Err#27 EFBIG
> >
> > 6824/27: write(1, " D i v i s i o n E r r".., 36)
> > Err#27 EFBIG
> >
> > 6824/27: write(1, " D i v i s i o n E r r".., 39)
> > Err#27 EFBIG
> >
> > 6824/27: write(1, " D i v i s i o n E r r".., 39)
> > Err#27 EFBIG
> >
> >
> >
> > ----------------- lwp# 27 /
> > thread#
> > 27 --------------------
> >
> > faa9fbb4 recursive_conv
> >
> > faa98508 encoder
> >
> > faa2e82c st_qcelp13kwrite
> >
> > faa27968 flow_effect_out
> >
> > faa27684 st_conv_convert
> >
> > faa258fc sox_audxcode
> >
> > fa9da168
> >
> >
> __1cKSoundXcodeFdoSox6MpnHobArena_pcirnRXcodeAudioRequest_rnSXcodeAudio
> Response_
> >
> > _b_
> >
> > …
> >
> >
> >
> > This looks to be a precautionary check
> > while performing the
> > auto gain control of the output speech signal from input
> > speech signal.
> >
> >
> >
> >
> >
> > <snip:agc.c:225>
> >
> > s = L_deposit_l (div_s (gain_out, gain_in));
> >
> > </snip>
> >
> >
> >
> > This is where this error is coming
> > from file - sox/amr/basicop2.c
> >
> >
> >
> >
> >
> > Word16
> > var_out = 0;
> >
> > Word16 iteration;
> >
> > Word32 L_num;
> >
> > Word32 L_denom;
> >
> >
> >
> > if ((var1 > var2) || (var1 < 0) || (var2 < 0))
> >
> > {
> >
> > printf ("Division Error var1=%d var2=%d\n",
> > var1, var2);
> >
> > // abort(); /* exit (0); */
> >
> > return var_out;
> >
> > }
> >
> > if (var2 == 0)
> >
> > {
> >
> > printf ("Division by 0, Fatal error \n");
> >
> > // abort(); /* exit (0); */
> >
> > return var_out;
> >
> >
> >
> > IMO, the divide by 0 error is being
> > handled gracefully here
> > but just confirming why this error is coming.
> >
> >
> >
> > Can anybody please let me know where
> > the problem is?
> >
> >
> >
> > /anil.
> >
> >
> >
> >
> >
> >
> >
> > DISCLAIMER
> > ==========
> > This e-mail may contain privileged and confidential
> > information which is the property of Persistent Systems Ltd.
> > It is intended only for the use of the individual or entity
> > to which it is addressed. If you are not the intended
> > recipient, you are not authorized to read, retain, copy,
> > print, distribute or use this message. If you have received
> > this communication in error, please notify the sender and
> > delete all copies of this message. Persistent Systems Ltd.
> > does not accept any liability for virus infected mails.
> >
> >
> >
> >
> > -----Inline Attachment Follows-----
> >
> > ---------------------------------------------------------------------
> ---------
> > Come build with us! The BlackBerry(R) Developer Conference
> > in SF, CA
> > is the only developer event you need to attend this year.
> > Jumpstart your
> > developing skills, take BlackBerry mobile applications to
> > market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009.
> > Register now!
> > http://p.sf.net/sfu/devconference
> > -----Inline Attachment Follows-----
> >
> > _______________________________________________
> > Sox-users mailing list
> > Sox-users@...
> > https://lists.sourceforge.net/lists/listinfo/sox-users
> >
>
>
>
>
> -----------------------------------------------------------------------
> -------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Sox-users mailing list
> Sox-users@...
> https://lists.sourceforge.net/lists/listinfo/sox-users

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Division error.

by robs-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's a link here:

http://sox.sourceforge.net/Main/Links

In fact, this is a portability wrapper around the 3GPP reference implementation so will be probably be similar to what you already have.

HTH,
Rob

--- On Thu, 15/10/09, Anil Jangam <anil_jangam@...> wrote:

> From: Anil Jangam <anil_jangam@...>
> Subject: Re: [SoX-users] Division error.
> To: "sox-users@..." <sox-users@...>
> Date: Thursday, 15 October, 2009, 3:48 PM
>
> Hi Rob,
>
> Can you tell me what third part library is used to handle
> the AMR conversion?
>
> /anil.



     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users