humm I actually already improved the startup quiet a bit to prevent
stupid people like me to crash images ;)

but the halt is not yet caught, I have to add that, then you'll simply
get a warning at startup :P

On 2012-11-08, at 22:34, Mariano Martinez Peck <[email protected]> wrote:

> You can build a VM and skip to the next bytecode ;)
> http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-td3800729.html
> 
> On Thu, Nov 8, 2012 at 10:30 PM, Sebastian Nozzi <[email protected]> wrote:
>> 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
>>> 
>>> o/
>>> 
>>> PS: I've tried with startup.st with the code that removes that method but
>>> no luck.
>>> 
>>> 
>>> 
>> 
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com
> 


Reply via email to