Crashing Seaside Image = Lost Work?

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

Crashing Seaside Image = Lost Work?

aditya siram-2
Hi all,
Due to careless programming I have crashed my Seaside One-Click image twice today. None of my mouse and keyboard clicks work but when I 'x' out the window I get a confirmation dialog asking if Squeak should quit without saving (which I accept since I don't really have a choice). When I open the image all my work during the previous session is lost. Am I doing something wrong? Is it actually saved somewhere I don't know about?

Thanks...
Deech

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Crashing Seaside Image = Lost Work?

Sophie424
"aditya siram" <[hidden email]> wrote in message

> Is it actually saved somewhere I don't know about?

Yes, World-Menu -> Changes -> recently logged changes

Pick the top of the list (typically), you get a list of changes sorted by
time, with most recent at the bottom. You can right click on each and do
actions. I found it slightly non-intuitive to use, but it can be a life
saver.

See "Squeak By Example" book section 6.10.

You should start using Monticello if you have not already (Section 6.3). It
is an absolute must-have for managing, versioning, and saving your source
code during development, imo.

- Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Crashing Seaside Image = Lost Work?

Brett Kosinski
In reply to this post by aditya siram-2
> Hi all,
> Due to careless programming I have crashed my Seaside One-Click image twice
> today. None of my mouse and keyboard clicks work but when I 'x' out the
> window I get a confirmation dialog asking if Squeak should quit without

This is a rather basic, beginner question, but did you try doing an
Alt-. (Alt and the period), first, to see if you could terminate the
offending process?  I've very rarely hung an image such that I
couldn't use Alt-. to recover.  That's not to say it doesn't happen,
though. :)

Brett.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Crashing Seaside Image = Lost Work?

Ryan Simmons-3
In reply to this post by aditya siram-2
I have also managed to crash the Squeak ui that it is unresponsive, but have had very little success with the alt-. Trick. What has worked for me is that Seaside has pretty much always remained responsive.

When this is the case I browse to seaside, click on tools then  on the screenshot tool, then on suspend and resume UI. That normally gets squeak to be responsive again.


-----Original Message-----
From: Brett Kosinski <[hidden email]>
Sent: Wednesday, April 09, 2008 1:04 AM
To: Seaside - general discussion <[hidden email]>
Subject: Re: [Seaside] Crashing Seaside Image = Lost Work?

> Hi all,
> Due to careless programming I have crashed my Seaside One-Click image twice
> today. None of my mouse and keyboard clicks work but when I 'x' out the
> window I get a confirmation dialog asking if Squeak should quit without

This is a rather basic, beginner question, but did you try doing an
Alt-. (Alt and the period), first, to see if you could terminate the
offending process?  I've very rarely hung an image such that I
couldn't use Alt-. to recover.  That's not to say it doesn't happen,
though. :)

Brett.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Crashing Seaside Image = Lost Work?

Rajeev Lochan
In reply to this post by aditya siram-2
Hi Aditya,
One of the reasons why your image hung would be that you have

WAComponent subclass: #XYMainView
    instanceVariableNames: 'child'
    classVariableNames: ''
    poolDictionaries: ''
    category: 'XY-View'

XYView >> children
    ^ Array with: child

XYMainView >> initialize
super initialize.
child := XYChildVIew new.

XYMainView subclass: #XYChildView
    instanceVariableNames: 'editor'
    classVariableNames: ''
    poolDictionaries: ''
    category: 'XY-View'

XYChildView >> initialize
super initialize.
editor := OrderedCollection new. "or any similar statement"


The problem with the above code is, when XYMainView is initialized, child variable is assigned a new instance of XYChildView, which also initializes.

Since XYChildView is a subclass of XYMainView, there is an infinite loop of instantiation and thats why the image hangs.

Hope this helps,
Rajeev


On Wed, Apr 9, 2008 at 3:35 AM, aditya siram <[hidden email]> wrote:
Hi all,
Due to careless programming I have crashed my Seaside One-Click image twice today. None of my mouse and keyboard clicks work but when I 'x' out the window I get a confirmation dialog asking if Squeak should quit without saving (which I accept since I don't really have a choice). When I open the image all my work during the previous session is lost. Am I doing something wrong? Is it actually saved somewhere I don't know about?

Thanks...
Deech

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9243468076 (Bangalore)
080 65355873
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Crashing Seaside Image = Lost Work?

aditya siram-2
In reply to this post by Sophie424
That did it! You rule!

Deech

On Tue, Apr 8, 2008 at 5:29 PM, itsme213 <[hidden email]> wrote:
"aditya siram" <[hidden email]> wrote in message

> Is it actually saved somewhere I don't know about?

Yes, World-Menu -> Changes -> recently logged changes

Pick the top of the list (typically), you get a list of changes sorted by
time, with most recent at the bottom. You can right click on each and do
actions. I found it slightly non-intuitive to use, but it can be a life
saver.

See "Squeak By Example" book section 6.10.

You should start using Monticello if you have not already (Section 6.3). It
is an absolute must-have for managing, versioning, and saving your source
code during development, imo.

- Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside