Audacity Recording Freeze at 38m 47.5s: Win7

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
otwo_pipes
Posts: 114
Joined: Wed Jun 27, 2012 7:28 pm
Operating System: Please select

Audacity Recording Freeze at 38m 47.5s: Win7

Post by otwo_pipes » Wed Jun 27, 2012 9:05 pm

Audacity 2.0.0, Win7 x32 SP1 2G ram
The Audacity recording process freezes at 38minutes and 36.5seconds.
By 'process freeze' I mean the audio and time in the 'default view' window (showing the amplitude and time of the recorded audio waveform) stops updating though the record and play-back level meters are still functioning. The 'Audio Position' indicator continues to update the time.
The audio input is still looped back and routed correctly to the sound card output.
It is not possible to export the audio that has been recorded prior to the freeze. The export function is greyed out.
Most of the time the only way to close Audacity is to use task manager to kill Audacity. Re-starting Audacity and attempts to recover the project fail due to file corruption.

Signal sources are a Pink Triangle PToo with a SME series V arm + Audio Technica cartridge. I have also been using a Pioneer TX-9500 FM tuner as a continuous sound source. The audio pre-amp is a Musical Fidelity 3A. The ADC used to digitise the audio source is an RDL HR-ADC1, a broadcast quality unit: see the following link for details of the converter:-
http://www.rdlnet.com/product.php?page=506
Audacity and the RDL HR-ADC1 are set to 96KHz and 24 bit quality.
I am using the S/PDIF output of the RDL HR-ADC1 which is connected to an M-Audio Delta 192 card.
I am only using the M-Audio sound card as a S/PDIF Input Output interface. See the following link for details of the sound card:-
http://www.m-audio.com/products/en_us/A ... le192.html

I did my intial testing using the following equipment set-up:-
Audacity 2.0.0, XP x32 SP3 2G ram
M-Audio Delta 2496. See the following link for details of the sound card:-
http://www.m-audio.com/products/en_us/A ... e2496.html
All other connections and conditions are as per the Win7 set-up. I can not be certain of the numbers of runs performed on the XP set-up without problem and it may be as low as 2 or 3 albums.

Obviously there is a lot of testing that can be performed to try to ascertain the root cause and to rule out the S/PDIF interfaces on the M-Audio cards and also the RDL HR-ADC1 unit, when used with Win7. As this testing is time consuming I was hoping for pointers regarding any settings I may have overlooked in Audacity before I undertake detailed testing.

For reference, I am an retired electronics design engineer so I do not need assistance with detailing tests to prove my system, I am only interested in help regarding Audacity as this is my first experience of the program.

kozikowski
Forum Staff
Posts: 68901
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by kozikowski » Wed Jun 27, 2012 9:59 pm

Then you already know that 2G of ram is the absolute rock-bottom recommended for Win7 with few if any applications running. Certainly not enough to reliably do picture or sound production.

Koz

audino
Posts: 170
Joined: Fri Jun 15, 2012 8:18 am
Operating System: Windows 7

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by audino » Wed Jun 27, 2012 11:08 pm

With your system Win7 x32 you can install max 3GB of ram so it might still not enough for your set up.
That is a limitation for the 32bit system unless you upgrade (install from scratch new OS) to 64bit.

otwo_pipes
Posts: 114
Joined: Wed Jun 27, 2012 7:28 pm
Operating System: Please select

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by otwo_pipes » Thu Jun 28, 2012 12:51 am

Thanks guys but my set up with Audacity + XP SP3 and 2G ram is no problem.
You seem to be suggesting that if you wish to use Audacity and Win7 then you need a 64 bit system. I have not seen this limitation in the Audacity Wiki recommendations for Win7 as per the cut below:-

System requirements
Windows 7 system requirements quoted by Microsoft are as follows for all versions of Windows 7, including the "Starter" edition with least features that is shipped with many netbooks.Unlike the Vista Starter Edition, Windows 7 Starter does not have a limit of three programs running at a time. For a comparison of features in different versions of Windows 7, click here.
1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
1 gigabyte (GB) RAM (32-bit), or 2 GB RAM (64-bit)
16 GB available hard disk space (32-bit) or 20 GB (64-bit)
DirectX 9 graphics device with WDDM 1.0 or higher driver
For best performance if you are recording, editing or playing a large number of long tracks, we recommend twice the stated processor speed and RAM.

As you can see, I meet ALL the Audacity best performance recommendations except Audacity is not working.
If this was just a ram limitation then I do not see why Audacity would always run out of memory at 38 minutes and 47.5 seconds. This freezing at 38:47.5 is repeatable. I suspect there is something much more fundamental that is causing this problem.

kozikowski
Forum Staff
Posts: 68901
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by kozikowski » Thu Jun 28, 2012 1:55 am

I have an SME arm and Grado Gold. Terrific arm, ropes and all.

Audacity and other editors work in real time. They can't have the computer stop a second while it does housekeeping or shuffles data around to make room. If the machine isn't ready for the current note when it's sung, it will miss the next one. A computer on the edge can start giving you odd missing bits and unstable behavior. Someone did a memory survey recently and found his Win7 machine was using 3/4 of the available 2G just to stay alive. So you'd be doing live audio production in 500M.

There are certainly things you can do to help. Do you have Win7 set to auto defragment the drive? I would probably do it manually and turn that off. Anything that competes with the show is to be avoided. Unplug the network and turn off Virus Protection. Are you doing email as you capture your music? Things like that. You have little or no room for error.

Audacity has a setting to Always Use Memory for capture instead of shuffling off to hard drive constantly. There is a very firm limit to how long you can go with that. Preferences > Directories > Use RAM... Have you tried capture multiple times and it always crashes in the same place? You don't have to play a record. Just set to recording and come back in a half-hour.

Koz

kozikowski
Forum Staff
Posts: 68901
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by kozikowski » Thu Jun 28, 2012 2:04 am

Any reason you're in such a high sound standard? Music CD is 44100/16 and television sound is 48000/16. I understand higher is better, but the machine has to struggle to save all that data and again, in real time. Then there's the thing that Windows doesn't directly support 24-bit. I'm fuzzy there, but I think that's correct.

Oh, never mind. You're using an internal custom sound card. That eliminates a lot of the housekeeping. Still, Windows has to "know" what 24-bit is.

Koz

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by steve » Thu Jun 28, 2012 11:31 am

otwo_pipes wrote:You seem to be suggesting that if you wish to use Audacity and Win7 then you need a 64 bit system. I have not seen this limitation in the Audacity Wiki recommendations for Win7 as per the cut below:-
Audacity does not require a 64 bit system. It is a 32 bit program so it is (or should be) quite happy on a 32 bit system.

For clarification, are you saying that:
  • The problem occurs intermittently on both your Windows 7 system and your XP system
  • The freeze always occurs at 39:47.5
  • You have only tested with recording set to 24/96
What happens if you record in 32 bit float? Does it still freeze? Does it still freeze at the same "38:47.5"?
What if you change the sample rate, for example at 48 or 44.1 kHz?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

waxcylinder
Forum Staff
Posts: 14571
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by waxcylinder » Thu Jun 28, 2012 1:31 pm

It's running quite happily right now on my wife's little Samsung mini laptop/notebook running Windows 7 Ultimate 32-bit.

With a bit of effert I've even persuaded the little beast to record streaming audio from t'interweb (which can sometimes be a challenge for modern W7 systems).

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

otwo_pipes
Posts: 114
Joined: Wed Jun 27, 2012 7:28 pm
Operating System: Please select

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by otwo_pipes » Thu Jun 28, 2012 11:12 pm

Problem solved:
Unfortunately I missed (missed = I read and did not correctly decode) the comment from Koz, "Audacity has a setting to Always Use Memory for capture instead of shuffling off to hard drive constantly. There is a very firm limit to how long you can go with that. Preferences > Directories > Use RAM...." Had I realised the implications of this statement I would have saved my experimentation using the Windows resource monitors and Vinyl Studio as a comparison tool. My recordings never crashed under VS and the resource monitors showed averages of 8% CPU & 35% memory usage; there had to be something in Audacity causing the problem I was experiencing. As I said, I miss-undersood Koz's comment. The reason I did not follow on these comments is beneath the audacity tick box is a pre-filed box with 16M memory cache limit and the statement that if free memory falls beneath this figure then data is written to disc. I just did not twig the implications of this. With the audio cache box ticked data is indeed cached in ram. I have sat and watched my free ram drop from 1.35G to 600M and then penny dropped. So what is going on.... here I have to surmise a little because I do not have the tools to diagnose but I guess writing the cached data to disc, all 1.35G, is very CPU and disc intensive, so intensive that Audacity grinds to a halt and ceases recording. If recording is stopped prior to the crash then it takes many minutes to save the cached data. I have removed the tick from the 'cache audio' box and everything works as it should.

If Koz is correct and selecting the Audio Cache tick box inhibits discs writes then I maybe this could be explained a little more clearly in the description alongside the tick box (just a thought). What is obvious to experienced users is not necessarily quite so clear to newbies like me..... and I did look could not find anything to this effect in the FAQ, I tried many searches hence my resort to use this forum.

To answer Steve's questions:-
For clarification, are you saying that:
The problem occurs intermittently on both your Windows 7 system and your XP system

The problem was not intermittent; quite repeatable and at (virtually) the same time points
The freeze always occurs at 39:47.5
see my comment above
You have only tested with recording set to 24/96
Yes, I have only used 24/96 and if I had not found the root cause during the course of today then I would have used both the M-Audio sound card and the external RDL ADC box to digitise at different bit depths and sample rates to see if there was a correlation.

Again, thanks quys, we got there in the end and I wish I had better understood Koz's comment. The comment and explanation was spot on but it just did not register until I read all comments again before writing this update. When I read Koz's comment this was definitely a, "Durgh Brian" moment for me.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity Recording Freeze at 38m 47.5s: Win7

Post by steve » Fri Jun 29, 2012 1:14 pm

Glad you've solved the mystery :P
otwo_pipes wrote:If Koz is correct and selecting the Audio Cache tick box inhibits discs writes then I maybe this could be explained a little more clearly in the description alongside the tick box (just a thought).
Yes, Koz is correct.
That option is only intended to enable users that have a slow hard drive and/or slow/old machines to be able to make short recordings. By default the option is not selected.

You are not the first to misunderstand the purpose/implications of that option. Can you suggest better wording for the option?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply