Hi All,
I'm running the following:
FC3 kernel: 2.6.10-2.1.11.rhfc3.ccrma Alsa driver 1.0.8-1.rhfc3.ccrma Squeak VM 3.7b from the hp dnl site (the Intel x86 Linux rpm) Squeak3.7.5958-full.image clean
Both Alsa and the OSS emulation work fine with other applications (such as ardour and mplayer using it's OSS interface). I haven't seen any problems with them so far.
In Squeak, audio plays fine. But, when I start up squeak, go to the Widgets flap, drag out a "Sound" morph and push record, squeak hangs. Its repeatable every time.
Any idea why? I'm thinking back thru my memory and I can't remember if this has happened before... but it may have. I searched thru Mantis and found nothing but one audio bug that was a playback bug.
Anybody else running Linux with 3,7? If you are, can you try this and see if you get the same result?
Any ideas? I'll keep searching the archives... and dig more into this bug on 3.7. Just wanted to see if anyone has seen this issue before I go searching too far.
thanks,
brad
Brad Fuller a écrit :
Hi All,
I'm running the following:
FC3 kernel: 2.6.10-2.1.11.rhfc3.ccrma Alsa driver 1.0.8-1.rhfc3.ccrma Squeak VM 3.7b from the hp dnl site (the Intel x86 Linux rpm) Squeak3.7.5958-full.image clean
Both Alsa and the OSS emulation work fine with other applications (such as ardour and mplayer using it's OSS interface). I haven't seen any problems with them so far.
In Squeak, audio plays fine. But, when I start up squeak, go to the Widgets flap, drag out a "Sound" morph and push record, squeak hangs. Its repeatable every time.
Yes, I can confirm this problem aswell with 3.6 and 3.7.
Hilaire
Hilaire Fernandes wrote:
Brad Fuller a écrit :
Hi All,
I'm running the following:
FC3 kernel: 2.6.10-2.1.11.rhfc3.ccrma Alsa driver 1.0.8-1.rhfc3.ccrma Squeak VM 3.7b from the hp dnl site (the Intel x86 Linux rpm) Squeak3.7.5958-full.image clean
Both Alsa and the OSS emulation work fine with other applications (such as ardour and mplayer using it's OSS interface). I haven't seen any problems with them so far.
In Squeak, audio plays fine. But, when I start up squeak, go to the Widgets flap, drag out a "Sound" morph and push record, squeak hangs. Its repeatable every time.
Yes, I can confirm this problem aswell with 3.6 and 3.7.
Hilaire
Gentoo with 2.6 kernel and alsa sound under Squeak 3.6 VM (3.7 image) also has this problem.
David
Hilaire Fernandes wrote:
Brad Fuller a écrit :
Hi All,
I'm running the following:
FC3 kernel: 2.6.10-2.1.11.rhfc3.ccrma Alsa driver 1.0.8-1.rhfc3.ccrma Squeak VM 3.7b from the hp dnl site (the Intel x86 Linux rpm) Squeak3.7.5958-full.image clean
Both Alsa and the OSS emulation work fine with other applications (such as ardour and mplayer using it's OSS interface). I haven't seen any problems with them so far.
In Squeak, audio plays fine. But, when I start up squeak, go to the Widgets flap, drag out a "Sound" morph and push record, squeak hangs. Its repeatable every time.
Yes, I can confirm this problem aswell with 3.6 and 3.7.
Hilaire
ça va, Hilaire,
are you referring to the 3.6 VM and 3.7b VM? Can you tell me the version of Linux and if you are using ALSA or plain OSS?
I suspect that the problem is in the VM. Anyone know the particular issue?
On Friday 18 February 2005 8:07 pm, Brad Fuller wrote:
Both Alsa and the OSS emulation work fine with other applications (such as ardour and mplayer using it's OSS interface). I haven't seen any problems with them so far.
In Squeak, audio plays fine. But, when I start up squeak, go to the Widgets flap, drag out a "Sound" morph and push record, squeak hangs. Its repeatable every time.
Any idea why? I'm thinking back thru my memory and I can't remember if this has happened before... but it may have. I searched thru Mantis and found nothing but one audio bug that was a playback bug.
Anybody else running Linux with 3,7? If you are, can you try this and see if you get the same result?
I have explained this several times before.
Are you sure that you aren't running another program that has the OSS files open?
i.e. what do you get when you do:
sudo lsof /dev/*s*nd*
It should be nothing...
If you have esd or artsd running and hanging on to the OSS sound files you'll have problems. Tell them to release the devices after they've been idle for a while.
hint: try running squeak under: artsdsp (if you're running artsd), or esddsp (if you're running esd)
another hint: if you're running artsd, try artsshell autosuspend 10 artsshell suspend
Ned Konz wrote:
On Friday 18 February 2005 8:07 pm, Brad Fuller wrote:
Both Alsa and the OSS emulation work fine with other applications (such as ardour and mplayer using it's OSS interface). I haven't seen any problems with them so far.
In Squeak, audio plays fine. But, when I start up squeak, go to the Widgets flap, drag out a "Sound" morph and push record, squeak hangs. Its repeatable every time.
Any idea why? I'm thinking back thru my memory and I can't remember if this has happened before... but it may have. I searched thru Mantis and found nothing but one audio bug that was a playback bug.
Anybody else running Linux with 3,7? If you are, can you try this and see if you get the same result?
I have explained this several times before.
Strange that I haven't memorized all your posts :-) ;-) :-) :-)
Are you sure that you aren't running another program that has the OSS files open?
i.e. what do you get when you do:
sudo lsof /dev/*s*nd*
Lists nothing.
It should be nothing...
If you have esd or artsd running and hanging on to the OSS sound files you'll have problems. Tell them to release the devices after they've been idle for a while.
hint: try running squeak under: artsdsp (if you're running artsd), or
I use KDE/artsd. Using this wrapper, as I always do, has no effect on the problem above. Removing it had no effect either.
esddsp (if you're running esd)
I don't use esd.
another hint: if you're running artsd, try artsshell autosuspend 10 artsshell suspend
Done...long time ago. artsshell status shows "suspended".
I can break the recording loop with alt-. and it shows that SoundRecorder is sitting in:
n _ self primRecordSamplesInto: currentBuffer startingAt: nextIndex.
inside the ifFalse: block. It seems that blocking in this prim now blocks the VM. Really, I don't know...I'm just guessing. Anyway sound in linux is a mess. I've had problems on occasion with simple programs like rec or the KDE sound recorder so it never really bothered me that squeak's recording didn't work.
David
On Saturday 19 February 2005 6:44 am, David Shaffer wrote:
I can break the recording loop with alt-. and it shows that SoundRecorder is sitting in:
n _ self primRecordSamplesInto: currentBuffer startingAt: nextIndex.
inside the ifFalse: block. It seems that blocking in this prim now blocks the VM. Really, I don't know...I'm just guessing. Anyway sound in linux is a mess. I've had problems on occasion with simple programs like rec or the KDE sound recorder so it never really bothered me that squeak's recording didn't work.
OK...
I find that I can't even usefully break (at least in SpectrumAnalyzerMorph).
When I break in gdb, I find myself inside the read inside input() in sqUnixSoundOSS.c:
(gdb) p *dsp $1 = {path = 0xb779d12a "/dev/dsp", fd = 12, caps = 12801, fmts = 505, hw = {format = 8, channels = 1, rate = 11025, bpf = 2, fragSize = 2048}, sq = {format = 8, channels = 1, rate = 11025, bpf = 2, fragSize = 2048}, read = 0xb779cbec <input>, write = 0xb779cb4c <output>, semaphore = 5, running = 1}
(gdb) call printAllStacks() Process 2023201148 SoundRecorder>recordLoop 2023200964 [] in SoundRecorder>startRecording 2023201056 [] in BlockContext>newProcess ...
oddly, no UI process in that list. When I hit Alt-. I get what looks like an interrupted UI task pre-debug window popping up, but the UI is dead.
Of course, I now find that I can't record with the usual tools outside of Squeak either. I should stop updating my system...
In the past, I had recording working in Squeak -- but I'd had to re-compile ALSA from their CVS to get it to work with my sound hardware.
Ned Konz wrote:
On Saturday 19 February 2005 6:44 am, David Shaffer wrote:
I can break the recording loop with alt-. and it shows that SoundRecorder is sitting in:
n _ self primRecordSamplesInto: currentBuffer
startingAt: nextIndex.
inside the ifFalse: block. It seems that blocking in this prim now blocks the VM. Really, I don't know...I'm just guessing. Anyway sound in linux is a mess. I've had problems on occasion with simple programs like rec or the KDE sound recorder so it never really bothered me that squeak's recording didn't work.
OK...
I find that I can't even usefully break (at least in SpectrumAnalyzerMorph).
When I break in gdb, I find myself inside the read inside input() in sqUnixSoundOSS.c:
(gdb) p *dsp $1 = {path = 0xb779d12a "/dev/dsp", fd = 12, caps = 12801, fmts = 505, hw = {format = 8, channels = 1, rate = 11025, bpf = 2, fragSize = 2048}, sq = {format = 8, channels = 1, rate = 11025, bpf = 2, fragSize = 2048}, read = 0xb779cbec <input>, write = 0xb779cb4c <output>, semaphore = 5, running = 1}
(gdb) call printAllStacks() Process 2023201148 SoundRecorder>recordLoop 2023200964 [] in SoundRecorder>startRecording 2023201056 [] in BlockContext>newProcess ...
oddly, no UI process in that list. When I hit Alt-. I get what looks like an interrupted UI task pre-debug window popping up, but the UI is dead.
Of course, I now find that I can't record with the usual tools outside of Squeak either. I should stop updating my system...
In the past, I had recording working in Squeak -- but I'd had to re-compile ALSA from their CVS to get it to work with my sound hardware.
Can you tell us your distro and kernel version?
On Saturday 19 February 2005 2:16 pm, Brad Fuller wrote:
oddly, no UI process in that list. When I hit Alt-. I get what looks like an interrupted UI task pre-debug window popping up, but the UI is dead.
Of course, I now find that I can't record with the usual tools outside of Squeak either. I should stop updating my system...
In the past, I had recording working in Squeak -- but I'd had to re-compile ALSA from their CVS to get it to work with my sound hardware.
Can you tell us your distro and kernel version?
Distro is Debian unstable or testing; kernel a custom 2.6.9.
I just compiled a 2.6.10 along with the alsa modules and was finally able to get arecord working.
Having done that, I can run (some versions of) the Squeak VM using aoss and I am actually able to record now.
My Squeak script is thus something like:
aoss /usr/local/lib/squeak/3.7b-6/squeak "$@"
except it's more complicated than that because it does error logging, etc.
Ned Konz wrote:
On Saturday 19 February 2005 2:16 pm, Brad Fuller wrote:
oddly, no UI process in that list. When I hit Alt-. I get what looks like an interrupted UI task pre-debug window popping up, but the UI is dead.
Of course, I now find that I can't record with the usual tools outside of Squeak either. I should stop updating my system...
In the past, I had recording working in Squeak -- but I'd had to re-compile ALSA from their CVS to get it to work with my sound hardware.
Can you tell us your distro and kernel version?
Distro is Debian unstable or testing; kernel a custom 2.6.9.
I just compiled a 2.6.10 along with the alsa modules and was finally able to get arecord working.
Having done that, I can run (some versions of) the Squeak VM using aoss and I am actually able to record now.
My Squeak script is thus something like:
aoss /usr/local/lib/squeak/3.7b-6/squeak "$@"
except it's more complicated than that because it does error logging, etc.
I tried the aoss wrapper and it worked on my setup too -- although the recording level was extremely low. But, at least it didn't hang. Are you using the latest alsa version?
In any case, squeak out of the box should record in linux -- at the very least, it should never, ever hang. I suppose that there is no one looking at this particular issue -- no one "responsible" (as it were)?
This certainly goes on the list of things to fix for multimedia. Ned: you have a bit more experience with the lower-guts in Squeak on *nix? Do you want to file a bug on mantis?
How should we go about getting this fixed?
brad
On Sunday 20 February 2005 1:30 pm, Brad Fuller wrote:
I tried the aoss wrapper and it worked on my setup too -- although the recording level was extremely low. But, at least it didn't hang. Are you using the latest alsa version?
I'm using the alsa-source package from Debian unstable, as well as the alsa stuff in the 2.6.10 kernel. Which means that it's probably quite a bit behind the CVS. Still, it does work now.
In any case, squeak out of the box should record in linux -- at the very least, it should never, ever hang. I suppose that there is no one looking at this particular issue -- no one "responsible" (as it were)?
This certainly goes on the list of things to fix for multimedia. Ned: you have a bit more experience with the lower-guts in Squeak on *nix? Do you want to file a bug on mantis?
I don't actually think it's a bug in Squeak, at least in the cases I've seen on my system.
As far as I can tell, Squeak is playing by the rules of the OSS sound system. But the ALSA OSS emulation has not always been friendly to me.
I have found that when I can get *other* recording apps on my system to work, then Squeak does too (at least if I use aoss).
How should we go about getting this fixed?
Someone should write an ALSA sound plugin, probably. For low latency, probably something like Jack would make more sense, but it's not standard with any distribution that I've seen.
Ned Konz wrote:
On Sunday 20 February 2005 1:30 pm, Brad Fuller wrote:
I tried the aoss wrapper and it worked on my setup too -- although the recording level was extremely low. But, at least it didn't hang. Are you using the latest alsa version?
I'm using the alsa-source package from Debian unstable, as well as the alsa stuff in the 2.6.10 kernel. Which means that it's probably quite a bit behind the CVS. Still, it does work now.
In any case, squeak out of the box should record in linux -- at the very least, it should never, ever hang. I suppose that there is no one looking at this particular issue -- no one "responsible" (as it were)?
This certainly goes on the list of things to fix for multimedia. Ned: you have a bit more experience with the lower-guts in Squeak on *nix? Do you want to file a bug on mantis?
I don't actually think it's a bug in Squeak, at least in the cases I've seen on my system.
But, out of the box, using the built in recorder app, squeak behaves improperly -- it hangs. I don't think it should ever hang.This behavior is consistent with reports here on the dev-list. Even though that is not a lot of people, no one has said it works for them. It would be nice for others to report behavior.
As far as I can tell, Squeak is playing by the rules of the OSS sound system. But the ALSA OSS emulation has not always been friendly to me.
I have found that when I can get *other* recording apps on my system to work, then Squeak does too (at least if I use aoss).
Not for me, unless I use aoss -- I contend that anyone using squeak should not have to use aoss so that fundamental audio recording works (it's ok for debugging.). All my other apps work fine, btw.
How should we go about getting this fixed?
Someone should write an ALSA sound plugin, probably. For low latency, probably something like Jack would make more sense, but it's not standard with any distribution that I've seen.
Alsa is now standard with Fedora Core 3.
On Monday 21 February 2005 10:40 am, Brad Fuller wrote:
Someone should write an ALSA sound plugin, probably. For low latency, probably something like Jack would make more sense, but it's not standard with any distribution that I've seen.
Alsa is now standard with Fedora Core 3.
I'm sorry I wasn't clear. I know that Alsa is standard; I was saying that Jack isn't.
So who wants to write an Alsa sound plugin?
Ned Konz wrote:
On Monday 21 February 2005 10:40 am, Brad Fuller wrote:
Someone should write an ALSA sound plugin, probably. For low latency, probably something like Jack would make more sense, but it's not standard with any distribution that I've seen.
Alsa is now standard with Fedora Core 3.
I'm sorry I wasn't clear. I know that Alsa is standard; I was saying that Jack isn't.
So who wants to write an Alsa sound plugin?
I would be glad to. But, I've never written one and my C chops are rusty. But, I'd be glad to give it a go if someone could help me.
I just tried to record in FC3 and Squeak bombed:
[bfuller@ives squeak]$ aoss squeak Squeak3.8g-6643.image squeak: /home/pingu/piumarta/squeak/devel/platforms/unix/vm-sound-OSS/sqUnixSoundOSS.c:333: dspOpen: Assertion `dsp->fd < 0' failed. Aborted
The kernel I'm running: 2.6.11-0.3.rdt.rhfc3.ccrma
I'll try a little less radical kernel.
squeak-dev@lists.squeakfoundation.org