[Cuis-dev] Morphic glitches out/hangs when adding faulty code to drawOn method on morphs that step

Juan Vuletich juan at cuis.st
Sun Dec 25 08:30:01 PST 2022


This was a good one!

Completely unrelated to the previous ones, and really unexpected.

Fix is now at GitHub.

Thanks, and Merry Christmas to all!

On 12/25/2022 6:23 AM, Alan Dao via Cuis-dev wrote:
> Ya, I figured you meant the opposite :)
>
> To keep the bug reports coming, I've been able to reproduce a Morphic 
> hang on 5608. This time, I have some faulty code for accessing an 
> array out of bounds in BebopFrequencyVisualizerSoundWave drawOn:.
>
> Here are the steps below to reproduce the hang:
> - Pull repos
> - Start fresh Cuis (on version 6.0-5608).
> - Load package 'Bebop'
> - Do World / New morph... / Vector Graphics / BebopFrequencyVisualizer
>
> I've attached my updated package to this email. Can you take a look 
> into this when you get a chance?
>
> Best,
> Alan
>
> On Tue, Dec 20, 2022 at 11:05 AM Juan Vuletich <juan at cuis.st 
> <mailto:juan at cuis.st>> wrote:
>
>     On 12/20/2022 3:35 PM, Alan Dao via Cuis-dev wrote:
>>     Thanks for the reassurance 👍
>>
>>     I installed the updates and saved as a new 5604 release. My
>>     start-up script works as it did before now.
>>
>>     Cheers,
>>     Alan
>>
>>     On Tue, Dec 20, 2022 at 5:56 AM Juan Vuletich <juan at cuis.st
>>     <mailto:juan at cuis.st>> wrote:
>>
>>         Hi Alan,
>>
>>         On 12/20/2022 3:27 AM, Alan Dao via Cuis-dev wrote:
>>>         Hope I'm not annoying by bringing this up,
>>
>>         Never hesitate in asking for help or reporting some problem!
>>         Open communications is fundamental for us. Each of us will
>>         use Cuis in different ways and will find different issues or
>>         areas to improve. By getting all those experiences together
>>         we can build something that is idiosyncratic and useful for
>>         more people!
>>
>
>     I mean "is not too idiosyncratic", i.e. that suits well different
>     people, and is not too oriented to someone's preferences against
>     other's.
>
>     Thanks,
>
>>
>>>         but I pulled the latest changes, 5601 and 5602, and
>>>         unfortunately it breaks my startup script for setting up my
>>>         workspace/browser windows. More specifically, my windows
>>>         aren't appearing and the background doesn't switch to the
>>>         dark theme. When I comment out "ChangeSet
>>>         installNewUpdates.", my workspace/browser windows appear as
>>>         intended.
>>>
>>>         Could you take a look and see what's going wrong? I've
>>>         attached my startup script below. You can try commenting out
>>>         "ChangeSet installNewUpdates." to see the impact of the
>>>         latest changes. I've been running my startup script through
>>>         this terminal command:
>>>
>>>         /Applications/Squeak.app/Contents/MacOS/Squeak
>>>         /Users/alandao/Cuis/Cuis-Smalltalk-Dev/Cuis6.0-5542.image -s
>>>         /Users/alandao/Scripts/init_workbench.st
>>>         <http://init_workbench.st>
>>>
>>
>>         Thanks for providing all the pieces and details. In this
>>         particular case, most likely the problem is that in the last
>>         changesets I restarted the Morphic process, and this means
>>         that the latter part of your script will not be run.
>>
>>         Please try this:
>>         - Start Cuis
>>         - Install new updates
>>         - Save and exit
>>
>>         Now try again. I believe it will work as usual (or please
>>         report back).
>>
>>         This issue will get solved for you when I save new, updated
>>         Cuis images, that already include all the change sets. I can
>>         do this later today.
>>
>>>         Alternatively, I'd be ok with re-writing my script if the
>>>         way I did it was hacked up together, as long as there's a
>>>         way to migrate this script over. Any help would be appreciated!
>>>
>>>         Also, thanks for the suggestions to the step method. The
>>>         package itself is still in extremely early development, but
>>>         once I get the UI to where I want it, I'll look into
>>>         optimizations.
>>>
>>>         Best,
>>>         Alan
>>>
>>>
>>
>>         I think you'd not need to modify your script, if my intuition
>>         is correct here. Please tell how it goes.
>>
>>         Thanks!
>>
>>         -- 
>>         Juan Vuletich
>>         cuis.st  <http://cuis.st>
>>         github.com/jvuletich  <http://github.com/jvuletich>
>>         researchgate.net/profile/Juan-Vuletich  <http://researchgate.net/profile/Juan-Vuletich>
>>         independent.academia.edu/JuanVuletich  <http://independent.academia.edu/JuanVuletich>
>>         patents.justia.com/inventor/juan-manuel-vuletich  <http://patents.justia.com/inventor/juan-manuel-vuletich>
>>         linkedin.com/in/juan-vuletich-75611b3  <http://linkedin.com/in/juan-vuletich-75611b3>
>>         twitter.com/JuanVuletich  <http://twitter.com/JuanVuletich>
>>
>
>
>     -- 
>     Juan Vuletich
>     cuis.st  <http://cuis.st>
>     github.com/jvuletich  <http://github.com/jvuletich>
>     researchgate.net/profile/Juan-Vuletich  <http://researchgate.net/profile/Juan-Vuletich>
>     independent.academia.edu/JuanVuletich  <http://independent.academia.edu/JuanVuletich>
>     patents.justia.com/inventor/juan-manuel-vuletich  <http://patents.justia.com/inventor/juan-manuel-vuletich>
>     linkedin.com/in/juan-vuletich-75611b3  <http://linkedin.com/in/juan-vuletich-75611b3>
>     twitter.com/JuanVuletich  <http://twitter.com/JuanVuletich>
>


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221225/38048002/attachment.htm>


More information about the Cuis-dev mailing list