Re: Any idea why this can hang on a long-running Mac?
SoX NG <[email protected]> Tue, 21 Jan 2025 08:49:53 +0100
| Newsgroups | gmane.comp.audio.sox |
|---|---|
| Message-ID | <[email protected]> |
On 20/01/25 21:30, Doug Lee wrote: > On my Mac Mini (details below), the following simple command starts hanging more and more often the longer I > run the machine without a reboot: > > sox --buffer 512 -n -d synth 1 sin 440 > > The buffer size reduction makes this happen sooner, but the issue can eventually happen without this I believe. > > When the hang occurs: > * It is immediate with no output sound, though the SoX progress display does appear. > * The progress counter does not advance. > * Kill will not kill the process; kill -9 is required. > * ps shows the status as S+, meaning foreground and in a less-than-20-second sleep. > * nwchan is 0 and wchan is - > > My Mac is running Monterey because it is too old to run a newer OS, but this is a rather old problem. I am > running SoX from Homebrew. In case it matters, my default output device is a Turtle Beach USB sound card, > though I don't think the device changes this issue. I do run Loopback but am not using it for default output. Hi! On cfarm104, a Mac Mini (2020), CPU Apple M1, arm64 architecture, MacOSX 12.6 21.6.0 with sox_ng-14.5.0 your command runs fine and immediately. I don't know if it's making sound as it's on the other side of the planet - maybe it's squeaking in their machine room - nor how to find out what sound card it has (any clues how to find out without being root? There's no nothing likely-looking in /dev). To see if it's a SoX internal issue or something to do with the sound card, could you try sox --buffer 512 -n foo.wav synth 1 sin 440 Yes, SoX is often Ctrl-C-impervious; Ctrl-\ kills it. There was an issue with coreaudio device naming which affected MacOS https://codeberg.org/sox_ng/sox_ng/issues/167 fixed in sox_ng - trying sox_ng might pinpoint whether it is that or something else. I'm building it using the regular tools with build dependencies installed under $HOME but I've built it successfully with homebrew in the past. That shouldn't impact the issue. Also, what version of sox are you using? 14.4.2? M _______________________________________________ Sox-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sox-users