Hey there Sebastian,

I feel your pain. Unfortunately there seem to be *many* places / situations
where "halting" is a very bad idea and renders your image unusable.

That's why I think it would be a good idea to have a "list" of these places
(in the documentation and in the Pharo "welcome" Workspace), and maybe the
technical reasons behind them.

Something that I did a couple (!!) of times until I learnt the lesson was
to halt withing a Morph>>drawnOn:. If you do, then there goes your UI
painting/event processing thread (solution: debug your Morph from outside,
passing a NullCanvas).

It was also possible for me, more than once, to "hang" the image beyond
recovery (CMD-dot did not help) if "Delaying" ((Delay forMilliseconds: 200)
wait) within the UI thread in an infinite recursion (by mistake).

As for "rescuing it"... can the "recent changes" help you? In your case you
would be directly reading the ".changes" file... Not really rescuing your
image, but extracting and saving your work... (and migrating to a new
image).

This is very annoying, I know. Been there a couple of times (although with
less serious work than yours). In my opinion something needs to change in
this area. These are huge productivity losses, and I fear that many new
users (*) would at this point turn their backs on Smalltalk never to look
back again.

Best regards,

Sebastian N.

(*) or senior developers evaluating the possibility to use Pharo in their
companies.


2012/11/8 Sebastian Sastre <[email protected]>

> …I mean ever.
>
> Because you'll screw your image.
>
> Mostly when you also are on OS X but, for some crazy reason of the
> Universe, your TimeMachine was not operating normally on your laptop while
> coding.
>
> Aaaaand you weren't committing in the monticello repo because it was work
> in progress and you were expecting to reach some goal.
>
> Ever.
>
> So…
>
> I'm in that situation with an image now :(
>
> I've the false good idea of putting a halt in an SomeApp class>>startUp:
> method and now, when I open the image, it tries to, stays for about 2
> seconds and crashes.
>
> Any of you guys have a workaround/hack to rescue it?
>
>  sebastian <https://about.me/sebastianconcept>
>
> o/
>
> PS: I've tried with startup.st with the code that removes that method but
> no luck.
>
>
>
>

Reply via email to