[Etoys] etoys image freezing?
John M McIntosh
johnmci at smalltalkconsulting.com
Wed May 14 22:00:19 EDT 2008
Ian wrote the core audio interface for sound on the macintosh. It runs
on a separate thread from the interpreter.
The primitives have very little error checking so passing in bad data
results in crashs, or perhaps loops.
What you need to do is recreate the problem, then use Apple's Activity
Monitor application which is in the Utilities folder.
run that and double click the "Squeak VM" in the Activity Monitor
window, that should bring up another window that lets you
see the Memory, Statistics, Open Files and Ports. On the bottom left
of that window is a *Sample* button. Click that
that will take a sample trace of what the Squeak VM is doing, and
display it in a "Sample of Squeak VM" window.
Click in the text, do select All, copy. Then paste into an email
message and email me a copy so I can see what is happening.
On May 14, 2008, at 10:19 AM, Yoshiki Ohshima wrote:
> Hi, John,
>
> Mark have been reporting that playing sound freezes his image on Mac
> OS X. I think the VM he is using is the one available from
> squeakland.org now. A few Mac users around tried but couldn't
> reproduce the problem. Do you have any idea why that might be?
>
> -- Yoshiki
>
> At Tue, 13 May 2008 21:38:37 -0400,
> polishookm wrote:
>>
>> Yoshiki,
>>
>> I'm finding if I just make the (sound) objects as one step and then
>> as a
>> second step play them then everything appears to be very stable and I
>> can't freeze the image.
>>
>> " first this line"
>> s := SampledSound soundNamed: 'camera'.
>> " evaluate this line (as many times as needed ) "
>> s play.
>>
>> If I make a new object and attempt to play it at the same time, I can
>> usually cause the freeze - but only when doing this over and over and
>> over and over again.
>>
>> " repeat both lines over and over again "
>> r := RepeatingSound repeat: s count: 2.
>> r play.
>>
>> However, I tried the same thing on a an etoys-dev.image in Windows
>> (running in VmWare) and was unable to replicate the freeze.
>>
>> So .... I'm not quite sure of my conclusion which is something
>> along the
>> lines of 1st make the object and 2nd play it (rather than combining
>> both
>> steps). I think the issue with the freeze I originally reported is a
>> non-issue.
>>
>> Thanks very much for the time you spent in guiding me through the
>> troubleshooting process.
>>
>> - Mark
>>
>>
>>
>>
>>
>>
--
=
=
=
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
=
=
=
========================================================================
More information about the Etoys
mailing list