[Cuis-dev] Hanging image at start up

Juan Vuletich JuanVuletich at zoho.com
Mon Jun 20 09:33:50 PDT 2022


Hi Hilaire,

On 6/19/2022 10:07 AM, Hilaire Fernandes via Cuis-dev wrote:
> Hi,
>
> Sorry for the delay, busy elsewhere.

Never mind. We all are, and come back to issues as time permits.

> Le 07/06/2022 à 19:54, Juan Vuletich a écrit :
>> I just tried to reproduce this. Had to tweak the script a bit, as 
>> `UIManager ui taskbar` answered nil. After handling that case, the 
>> script saved a 13Mb image (Not 38Mb), that can be started again 
>> without trouble.
>
> I don't understand, in the base image, UIManager ui taskbar returns 
> the taskbar morph instance?
>

Apparently, not during startup time. Startup is a pretty special time 
for the system. See senders of #processCommandLineArguments. The 
#whenUIinSafeState: in the sender might not be enough.

> Did you start the script from the command line or did you copy and 
> paste it in a Workspace? For me both scenarii lead to an image I can 
> not restart with the same VM. I got alternatively a completely *black 
> or white VM window with an active mouse cursor*.
>

Tried both ways, I believe.

> Now, when I produce the image it is 13MB too, but it can not be 
> started again.
>
> I zipped the files at 
> https://www.dropbox.com/s/fsqz5jc0jvk6nvj/drgeoHang.zip?dl=0. Does it 
> start on your system?
>
> The used VM is recent:
>
> hilaire at PCHome:~/Travaux/Developpement/Cuis/Cuis-Smalltalk-Dev$ 
> ../VM/squeak -version
> 5.0-202205110711  Wed May 11 07:49:55 UTC 2022 clang [Production Spur 
> 64-bit x86_64 VM]
> CoInterpreter VMMaker.oscog-mt.3184 uuid: 
> 57b61827-3f1a-ab45-966e-7c5caaef28d7 May 11 2022
> StackToRegisterMappingCogit VMMaker.oscog-mt.3179 uuid: 
> c6fbcb07-2a19-ed4f-8b40-9c119a70882a May 11 2022
> VM: 202205110711 
> runner at fv-az197-581:work/opensmalltalk-vm/opensmalltalk-vm
> Date: Wed May 11 09:11:21 2022 CommitHash: 95dbe9d
> Plugins: 202205110711 
> runner at fv-az197-581:work/opensmalltalk-vm/opensmalltalk-vm
> Linux fv-az197-581 5.4.0-1077-azure #80~18.04.1-Ubuntu SMP Wed Apr 13 
> 02:07:09 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> plugin path: ../VM/lib/squeak/5.0-202205110711-64bit [default: 
> /home/hilaire/Travaux/Developpement/Cuis/VM/lib/squeak/5.0-202205110711-64bit/]
>

This image starts up without trouble (provided I add a suitable VM, and 
a CuisV6.sources file, in MacOS, Windows 7 and Ubuntu 64. In all cases 
it opens a walkback due to the missing fonts folder, but otherwise they 
can be used normally.

On Ubuntu, the VM I'm using is

cogspur/squeak -version
5.0-201901172323  Thu Jan 24 10:16:38 UTC 2019 gcc 4.8 [Production Spur 
64-bit VM]
CoInterpreter VMMaker.oscog-eem.2504 uuid: 
a00b0fad-c04c-47a6-8a11-5dbff110ac11 Jan 24 2019
StackToRegisterMappingCogit VMMaker.oscog-eem.2504 uuid: 
a00b0fad-c04c-47a6-8a11-5dbff110ac11 Jan 24 2019
VM: 201901172323 https://github.com/OpenSmalltalk/opensmalltalk-vm.git
Date: Fri Jan 18 00:23:50 2019 CommitHash: 5a38b348
Plugins: 201901172323 https://github.com/OpenSmalltalk/opensmalltalk-vm.git
Linux travis-job-c04cd05f-26b2-42b3-a06d-dcae3a05d5b6 4.4.0-101-generic 
#124~14.04.1-Ubuntu SMP Fri Nov 10 19:05:36 UTC 2017 x86_64 x86_64 
x86_64 GNU/Linux
plugin path: cogspur/lib/squeak/5.0-201901172323 [default: 
/mnt/hgfs/Shared/drgeoHang/cogspur/lib/squeak/5.0-201901172323/]

It is a bit older. Haven't updated it recently. If this makes a big 
difference, then it would be a VM problem.

>
>>
>> I suggest trying to make that script smaller, perhaps by doing the 
>> setup in a class method in one of the loaded packages.
>
> I prefer to keep this in the starting script for convenience editing
>
> Thanks
>
> Hilaire
>
>

I see. The price to pay is that debugging is immensely harder.

>>
>> Keep us posted.
>>
>> Thanks, 
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
https://twitter.com/JuanVuletich

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


More information about the Cuis-dev mailing list