-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Garth Dahlstrom wrote:
> Tip for those running gdb - you can do this to start the target program
> right away: alias gdb='gdb --eval-command=run'
> 
> 
> Debug: BPM detection successful for "The Tragically Hip - Wheat Kings.mp3"
> Debug: WaveSummary generation successful for "The Underdog Project -
> Tonight.mp3"
> 
> Program received signal SIGFPE, Arithmetic exception.
> [Switching to Thread 1108277584 (LWP 28210)]
> 0x00000000004fbfb0 in SoundSourceProxy (this=0x3603240, pTrack=0x4b76fa0) at
> src/soundsourceproxy.cpp:79
> 79          pTrack->setDuration(length()/(2*getSrate()));
> (gdb) bt
> #0  0x00000000004fbfb0 in SoundSourceProxy (this=0x3603240,
> pTrack=0x4b76fa0) at src/soundsourceproxy.cpp:79
> #1  0x00000000004f5555 in WaveSummary::run (this=0xcfba10) at
> src/wavesummary.cpp:99
> #2  0x00002b1b170e4a12 in ?? () from /usr/lib/libQtCore.so.4
> #3  0x00002b1b186a33f7 in start_thread () from /lib/libpthread.so.0
> #4  0x00002b1b1968495d in clone () from /lib/libc.so.6
> #5  0x0000000000000000 in ?? ()
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel


So if getSrate() ever returns 0 - you will always get a divide by zero
error.

replace soundsourceproxy.cpp line 79 with :

if (getSrate()) { pTrack->setDuration(length()/(2*getSrate())); }


Question is - why is getSrate() zero in this case  (assuming that is
what the floating point exception happens to be)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIFs2u5YHEhx8bKNsRAosDAJ4oUDXcVDcZ6uDkQSUwfE7xyzOfHwCfU4il
A08111NVji9tqjN9pzd0h40=
=kCVC
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to