<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">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</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&#39;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&#39;m not sure where I&#39;d find the build logs for the binary to confirm that.  I can&#39;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&#39;d work. Scratch wouldn&#39;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>
&gt;<br>
&gt; To reproduce:<br>
&gt;<br>
&gt; 1. Execute Scratch using current VM and pulse plugin (on Ubuntu 12.04, 64<br>
&gt; bit system):<br>
&gt; Executing: /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8<br>
&gt; -vm-display-x11 -xshm -plugins<br>
&gt; /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-pulse<br>
&gt; /usr/share/scratch/Scratch.image<br>
&gt; (There is no pulse plugin in /usr/lib/scratch/plugins in my installation<br>
&gt; package, so it must be using the one in /usr/lib/squeak/4.4.7-2357)<br>
&gt;<br>
&gt; 2. Click &quot;Sounds&quot; tab, click play icon next to meow. That results in:<br>
&gt;<br>
&gt; Segmentation fault<br>
&gt;<br>
&gt; 10273532 [] in SoundPlayer class&gt;playLoop<br>
&gt; 10262332 Semaphore&gt;critical:<br>
&gt; 10262240 SoundPlayer class&gt;playLoop<br>
&gt; 10273228 [] in SoundPlayer class&gt;startPlayerProcessBufferSize:rate:stereo:<br>
&gt; 10273320 [] in BlockContext&gt;newProcess<br>
&gt; Aborted (core dumped)<br>
&gt;<br>
&gt; Note that the same package on 32 bit systems does not produce the error<br>
&gt; (playback and recording both work).<br>
&gt;<br>
&gt; The issue is also described here:<br>
&gt; <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>
&gt;<br>
&gt; If someone can take a look and patch this, we&#39;d very much appreciate it!<br>
&gt; This is the last major (known) issue we&#39;ve got with Scratch running on<br>
&gt; Ubuntu.<br>
&gt;<br>
&gt; -Amos<br>
<br>
</div></div></blockquote></div><br>