To reproduce:
1. Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64 bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
2. Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo: 10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
-Amos
Thanks Amos,
I made an entry in our Mantis bug tracker for this also:
http://bugs.squeak.org/view.php?id=7701
For clarification: This VM is compiled from sources on an Ubuntu system (as opposed to downloading compiled binaries from e.g squeakvm.org), is that correct? If so, is it compiled in normal 64-bit mode, or is it compiled in 32-bit mode ( -m32 compiler flag)?
Thanks, Dave
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:
To reproduce:
- Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64
bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
- Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo: 10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
-Amos
Thanks for looking into this, Dave! more below... On Thu, Aug 2, 2012 at 8:12 PM, David T. Lewis lewis@mail.msen.com wrote:
For clarification: This VM is compiled from sources on an Ubuntu system (as opposed to downloading compiled binaries from e.g squeakvm.org), is that correct? If so, is it compiled in normal 64-bit mode, or is it compiled in 32-bit mode ( -m32 compiler flag)?
Great question! I'm afraid I do not know the answer.
From looking at this:
http://packages.ubuntu.com/source/precise/squeak-vm
I suspect that the package is probably built in normal 64 bit mode, but I'm not sure where I'd find the build logs for the binary to confirm that. I can't be certain that the files are identical, but I believe we had used a binary plugin built from the same source in a previous version of the Scratch package. When we forced installation of that 32 bit package (and plugin) on 64 bit systems, pulse audio playback and recording worked well.
I just tried replacing the plugin on my system with the 32 bit plugin downloaded from the ubuntu squeak package, to see if it'd work. Scratch wouldn't start, and I got the following error:
/usr/lib/squeak/4.4.7-2357//so.vm-sound-pulse: wrong ELF class: ELFCLASS32 could not find module vm-sound-pulse
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:
To reproduce:
- Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64
bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
- Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer
class>startPlayerProcessBufferSize:rate:stereo:
10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
-Amos
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:
To reproduce:
- Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64
bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
- Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo: 10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
I cannot get this to fail on my SuSE box, which plays the Scratch "meow" sound without problems on a freshly compiled 64-bit VM. But I think that my problem is that I'm not running a pulse audio server, and I don't know how to start it.
I installed enough Gnome stuff on my box to be able to do the vm-sound-pulse build, and I do see some compiler warnings that point to type declaration issues, details on http://bugs.squeak.org/view.php?id=7701. I cannot look into this further right now, but I suspect it will turn out to be just some simple type declaration issues to be sorted out.
Dave
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:
To reproduce:
- Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64
bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
- Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo: 10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
-Amos
I have a possible fix for this problem, but need some help to verify.
The issue is tracked on Mantis http://bugs.squeak.org/view.php?id=7701
I believe the problem is just some type declaration issues in the support code that result in pointers being stored in ints, hence VM crash. A potential fix is attached (and also on uploaded to the Mantis issue).
I need someone to test the 64-bit compiled VM on Scratch with Ubuntu and pulse audio and see if the VM crashes are eliminated.
Bert: Can I send you a compiled VM to test with Scratch/Etoys/Squeak and find out if sound still crashes the VM?
Ian: Regardless of whether this fixes the Scratch problem, the type declarations in vm-sound-pulse need to be updated, so please consider the attached as a patch.
Thanks, Dave
On 08/08/12 02:06, David T. Lewis wrote:
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:
To reproduce:
- Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64
bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
- Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo: 10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
-Amos
I have a possible fix for this problem, but need some help to verify.
The issue is tracked on Mantis http://bugs.squeak.org/view.php?id=7701
I believe the problem is just some type declaration issues in the support code that result in pointers being stored in ints, hence VM crash. A potential fix is attached (and also on uploaded to the Mantis issue).
I need someone to test the 64-bit compiled VM on Scratch with Ubuntu and pulse audio and see if the VM crashes are eliminated.
Bert: Can I send you a compiled VM to test with Scratch/Etoys/Squeak and find out if sound still crashes the VM?
Ian: Regardless of whether this fixes the Scratch problem, the type declarations in vm-sound-pulse need to be updated, so please consider the attached as a patch.
Thanks, Dave
Tested on Ubuntu 12.04 64-bit, works, thanks Dave!
On 2012-08-08, at 03:06, David T. Lewis wrote:
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:
To reproduce:
- Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64
bit system): Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse /usr/share/scratch/Scratch.image (There is no pulse plugin in /usr/lib/scratch/plugins in my installation package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)
- Click "Sounds" tab, click play icon next to meow. That results in:
Segmentation fault
10273532 [] in SoundPlayer class>playLoop 10262332 Semaphore>critical: 10262240 SoundPlayer class>playLoop 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo: 10273320 [] in BlockContext>newProcess Aborted (core dumped)
Note that the same package on 32 bit systems does not produce the error (playback and recording both work).
The issue is also described here: https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080
If someone can take a look and patch this, we'd very much appreciate it! This is the last major (known) issue we've got with Scratch running on Ubuntu.
-Amos
I have a possible fix for this problem, but need some help to verify.
The issue is tracked on Mantis http://bugs.squeak.org/view.php?id=7701
I believe the problem is just some type declaration issues in the support code that result in pointers being stored in ints, hence VM crash. A potential fix is attached (and also on uploaded to the Mantis issue).
I need someone to test the 64-bit compiled VM on Scratch with Ubuntu and pulse audio and see if the VM crashes are eliminated.
Bert: Can I send you a compiled VM to test with Scratch/Etoys/Squeak and find out if sound still crashes the VM?
Please do.
I compiled my own from svn and that works, but I'd rather use the one compiled by you for Etoys-To-Go.
Ian: Regardless of whether this fixes the Scratch problem, the type declarations in vm-sound-pulse need to be updated, so please consider the attached as a patch.
Thanks, Dave
<platforms-unix-sound-pulse-sqUnixSoundPulse.c.tar>
- Bert -
vm-dev@lists.squeakfoundation.org