<div class="gmail_quote">Thanks for looking into this, Dave!</div><div class="gmail_quote">more below...</div><div class="gmail_quote">On Thu, Aug 2, 2012 at 8:12 PM, David T. Lewis <span dir="ltr"><<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
For clarification: This VM is compiled from sources on an Ubuntu system<br>
(as opposed to downloading compiled binaries from e.g <a href="http://squeakvm.org" target="_blank">squeakvm.org</a>), is<br>
that correct? If so, is it compiled in normal 64-bit mode, or is it<br>
compiled in 32-bit mode ( -m32 compiler flag)?<br></blockquote><div><br></div><div>Great question! I'm afraid I do not know the answer.<div><br></div><div>From looking at this:</div><div><a href="http://packages.ubuntu.com/source/precise/squeak-vm">http://packages.ubuntu.com/source/precise/squeak-vm</a></div>
<div><br></div><div>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. </div>
</div><div><br></div><div>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:</div>
<div><br></div><div><div>/usr/lib/squeak/4.4.7-2357//so.vm-sound-pulse: wrong ELF class: ELFCLASS32</div><div>could not find module vm-sound-pulse</div></div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Aug 02, 2012 at 05:36:42PM -0400, Amos Blanton wrote:<br>
><br>
> To reproduce:<br>
><br>
> 1. Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64<br>
> bit system):<br>
> Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8<br>
> -vm-display-x11 -xshm -plugins<br>
> /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse<br>
> /usr/share/scratch/Scratch.image<br>
> (There is no pulse plugin in /usr/lib/scratch/plugins in my installation<br>
> package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)<br>
><br>
> 2. Click "Sounds" tab, click play icon next to meow. That results in:<br>
><br>
> Segmentation fault<br>
><br>
> 10273532 [] in SoundPlayer class>playLoop<br>
> 10262332 Semaphore>critical:<br>
> 10262240 SoundPlayer class>playLoop<br>
> 10273228 [] in SoundPlayer class>startPlayerProcessBufferSize:rate:stereo:<br>
> 10273320 [] in BlockContext>newProcess<br>
> Aborted (core dumped)<br>
><br>
> Note that the same package on 32 bit systems does not produce the error<br>
> (playback and recording both work).<br>
><br>
> The issue is also described here:<br>
> <a href="https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080" target="_blank">https://bugs.launchpad.net/ubuntu/+source/squeak-vm/+bug/1009080</a><br>
><br>
> If someone can take a look and patch this, we'd very much appreciate it!<br>
> This is the last major (known) issue we've got with Scratch running on<br>
> Ubuntu.<br>
><br>
> -Amos<br>
<br>
</div></div></blockquote></div><br>