Mac Carbon VM 4.2.3b1 sound recording busted

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Mac Carbon VM 4.2.3b1 sound recording busted

johnmci
>Mac Carbon VM 4.2.3b1 sound recording busted

Must always remember to test (lot more) things after applying VMMaker changes.
I'll have a 4.2.4b1 VM in a few days after some dust settles.

But for now if you hit the SoundRecorder record button in your squeak.image it will crash.

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mac Carbon VM 4.2.3b1 sound recording busted

Andreas.Raab
On 3/30/2010 8:19 PM, John M McIntosh wrote:
>> Mac Carbon VM 4.2.3b1 sound recording busted
>
> Must always remember to test (lot more) things after applying VMMaker changes.
> I'll have a 4.2.4b1 VM in a few days after some dust settles.
>
> But for now if you hit the SoundRecorder record button in your squeak.image it will crash.

Oh dear. Same for Windows 4.0.1. Any ideas what's causing this?

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: Mac Carbon VM 4.2.3b1 sound recording busted

johnmci
Eliot's change to the SoundPlugin primitiveSoundRecordSamplesInto  altered the meaning of the bufSizeInBytes
before the platform code would attempt to calculate the real size based on the startWordIndex, but his change moved
that calculation into the plugin code, so without altering the platform code you end up doing a double subtraction of the startWordIndex offset.

In the carbon vm case this resulted in an underflow for an unsigned integer which then kills you when you say why yes there
is 0xFFFFFAB  bytes of storage to read into...

Based on his emal of "March 29, 2010 12:05:07 PM PDT"
Likely there is still confusion about exactly how it should work and be fixed.

On 2010-03-30, at 8:56 PM, Andreas Raab wrote:

> On 3/30/2010 8:19 PM, John M McIntosh wrote:
>>> Mac Carbon VM 4.2.3b1 sound recording busted
>>
>> Must always remember to test (lot more) things after applying VMMaker changes.
>> I'll have a 4.2.4b1 VM in a few days after some dust settles.
>>
>> But for now if you hit the SoundRecorder record button in your squeak.image it will crash.
>
> Oh dear. Same for Windows 4.0.1. Any ideas what's causing this?
>
> Cheers,
>  - Andreas
>
--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================







smime.p7s (3K) Download Attachment