I have determined the source of the problem. This is 100% reproducible here
on Vista (it does not happen unless you change the recording time from five
minutes starting immediately--i.e. simply clicking OK and accepting the
default); steps to reproduce:
*set start timer for 30 seconds after current time
*using either the duration or the end timer set a record time of something
short -- 10 to 15 seconds
*click OK to start the "wait for start" dialogue
It's not actually an "Crash" it is a wxASSERT which is being called because
of a divide by zero error:
At the end of the short recording the following assert presents:
d:\audio\Audacity\timed record\audacity\src\widgets\ProgressDialog.cpp line
1417 & 1418:
int nGaugeValue = (1000 * elapsed) / mDuration; // range = [0,1000]
wxASSERT((nGaugeValue >= 0) && (nGaugeValue <= 1000));
Given that this is timer code which is exercised constantly, I could not use
breakpoints and stepping so I fell back on the good old printf...
int nGaugeValue = (1000 * elapsed) / mDuration; // range = [0,1000]
if
(nGaugeValue > 1000)
{
wxString gv;
gv.Printf("gv is %d", nGaugeValue);
wxMessageBox(gv.c_str());
gv.Printf("elapsed = %d, mDur = %d", elapsed, mDuration);
wxMessageBox(gv.c_str());
}
wxASSERT((nGaugeValue >= 0) && (nGaugeValue <= 1000));
nGaugeValue = 1020 +- 10
mDuration = 0
ergo div by 0
BTW, just to insure that I was not having a collision with Dragon
NaturallySpeaking, I exited it for the tests. I performed the "default five
minute" test three separate times successfully. I have not looked into the
details but it would appear that something is going wrong using the
"duration" setting -- if it is changed with any method the problem appears.
I just did a 6 minute test changing only the duration and starting
immediately and got the assert.
--Ed
> -----Original Message-----
> From: Gale Andrews [mailto:
[hidden email]]
> Sent: Wednesday, October 14, 2009 2:18 AM
> To:
[hidden email]
> Subject: Re: [Audacity-devel] P3 Timer Record cannot maintain scheduled
> duration if system clock changes
>
>
> | From "Ed Musgrove" <
[hidden email]> Tue, 13 Oct 2009
> | 23:57:49 -0700
> | Subject: [Audacity-devel] P3 Timer Record cannot maintain scheduled
> duration if system clock changes
> > Has anyone tested the timed record on 1.3.10? I just grabbed the CVS
> > Head and built the debug version. I tried repeatedly to record some
> > short segments using the timed record feature. Except for one 10
> > second recording, Audacity crashed every single time.
> >
> > Using the 29 August build of 1.3.9 downloaded from the Audacity
> > website I have no trouble making timed recordings.
>
> Quick answer, no on Windows XP Timer Record is not crashing for me if I
just
> start it and hit OK for an immediate five minute recording.
> Are you/have you been playing with the system clock to test the P3 issue
> where the clock changes during recording?
>
> If that's not the reason, can you give some example wait and scheduled
> times that crash?
>
>
>
> Gale
>
>
>
> >
> > --Ed
> >
> >
> > > -----Original Message-----
> > > From: Ed Musgrove [mailto:
[hidden email]]
> > >
> > > ---------------from Wiki Release Checklist---------------
> > > GA: Schedule a five minute recording ...
> >
> >
> >
> >
----------------------------------------------------------------------------
--
> > 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
----------------------------------------------------------------------------
--
> 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> _______________________________________________
> audacity-devel mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/audacity-devel------------------------------------------------------------------------------
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_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel