[Pharo-project] Pharo go in loop.
Hi, i run a Pharo image on MacBook. It's in loop and don't answer at any input from mouse and keyboard. I can force a command to interup the loop and save a new version of image ? Thank, Dario
Did you try : cmd-. or cmd-shift-. ? On Wed, Nov 17, 2010 at 9:36 PM, Dario Trussardi <dario.trussardi@tiscali.it> wrote:
Hi,
    i run a Pharo image on MacBook.
    It's in loop and don't answer at any input from mouse and keyboard.
    I can force a command to interup the loop and save a new version of image ?
    Thank,
        Dario
-- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Every DSL ends up being Smalltalk http://doesnotunderstand.org/
Hi,
Hi,
Did you try : cmd-. or cmd-shift-. ?
Yes but any change.
The image run at 100% of cpu.
Other idea ?
If i force the Pharo close with operating system command how i can restore the change from my last image save ? I have 3 hours of work to restore from changes file Thank, Dario
Hi Dario open the world menu and look for "recover lost changes". Might be under "tools". Cheers, Max On 17.11.2010, at 16:03, Dario Trussardi wrote:
Hi,
Hi,
Did you try : cmd-. or cmd-shift-. ?
Yes but any change.
The image run at 100% of cpu.
Other idea ?
If i force the Pharo close with operating system command
how i can restore the change from my last image save ?
I have 3 hours of work to restore from changes file
Thank,
Dario
Hi, i restored the change ( thanks, Serge and Max ). Now i found this problem in my pharo 1.1 image: I open a class browser and select the Object class. Now when i clic: the browse hierarchy ( of Object ) the system go in loop. It is my problem or is know ? Thanks, Dario
Can you reproduce that with a fresh image? Max On 17.11.2010, at 16:25, Dario Trussardi wrote:
Hi,
i restored the change ( thanks, Serge and Max ).
Now i found this problem in my pharo 1.1 image:
I open a class browser and select the Object class.
Now when i clic: the browse hierarchy ( of Object ) the system go in loop.
It is my problem or is know ?
Thanks,
Dario
On Nov 17, 2010, at 4:25 42PM, Dario Trussardi wrote:
Hi,
i restored the change ( thanks, Serge and Max ).
Now i found this problem in my pharo 1.1 image:
I open a class browser and select the Object class.
Now when i clic: the browse hierarchy ( of Object ) the system go in loop.
It is my problem or is know ?
Thanks,
Dario
Question is if it indefinately hangs (which can not be reproduced in a clean 1.1), or just takes extremely long (which can) You can't expect it to be extremely fast to open a browser on the entire class hierarchy, but it should be faster than what it is in 1.1. In OBClassSortFilter>>#nodesFrom:forNode: , change #asOrderedCollection in the second line to #asSet, and it opensd in 1 second rather than 11 on my machine. If this is as usual, Lukas has probably already fixed this in a newer version of OB :) Cheers, Henry
On Wed, 17 Nov 2010, Henrik Johansen wrote:
On Nov 17, 2010, at 4:25 42PM, Dario Trussardi wrote:
Hi,
i restored the change ( thanks, Serge and Max ).
Now i found this problem in my pharo 1.1 image:
I open a class browser and select the Object class.
Now when i clic: the browse hierarchy ( of Object ) the system go in loop.
It is my problem or is know ?
Thanks,
Dario
Question is if it indefinately hangs (which can not be reproduced in a clean 1.1), or just takes extremely long (which can) You can't expect it to be extremely fast to open a browser on the entire class hierarchy, but it should be faster than what it is in 1.1. In OBClassSortFilter>>#nodesFrom:forNode: , change #asOrderedCollection in the second line to #asSet, and it opensd in 1 second rather than 11 on my machine.
Under 200ms using Squeak. :) Levente
If this is as usual, Lukas has probably already fixed this in a newer version of OB :)
Cheers, Henry
On Nov 17, 2010, at 5:12 15PM, Levente Uzonyi wrote:
On Wed, 17 Nov 2010, Henrik Johansen wrote:
On Nov 17, 2010, at 4:25 42PM, Dario Trussardi wrote:
Hi,
i restored the change ( thanks, Serge and Max ).
Now i found this problem in my pharo 1.1 image:
I open a class browser and select the Object class.
Now when i clic: the browse hierarchy ( of Object ) the system go in loop.
It is my problem or is know ?
Thanks,
Dario
Question is if it indefinately hangs (which can not be reproduced in a clean 1.1), or just takes extremely long (which can) You can't expect it to be extremely fast to open a browser on the entire class hierarchy, but it should be faster than what it is in 1.1. In OBClassSortFilter>>#nodesFrom:forNode: , change #asOrderedCollection in the second line to #asSet, and it opensd in 1 second rather than 11 on my machine.
Under 200ms using Squeak. :)
Levente
Yeah, those numbers were while time-profiling and running other stuff as well, was more the order of magnitude difference which was the main point ;) Cheers, Henry
You can't expect it to be extremely fast to open a browser on the entire class hierarchy, but it should be faster than what it is in 1.1. In OBClassSortFilter>>#nodesFrom:forNode: , change #asOrderedCollection in the second line to #asSet, and it opensd in 1 second rather than 11 on my machine.
If this is as usual, Lukas has probably already fixed this in a newer version of OB :)
No, that wasn't fixed yet, but it is now. It indeed makes all the hierarchy views way faster. Thanks for reporting this: Name: OB-Standard-lr.517 Author: lr Time: 17 November 2010, 2:31:29 pm UUID: 5e1e4d6f-e704-43a1-a75a-1c949542269f Ancestors: OB-Standard-lr.516 - in OBClassSortFilter>>#nodesFrom:forNode: use an IdentitySet rather than an OrderedCollection for #includes: tests (thanks to Henrik Johansen) Lukas -- Lukas Renggli www.lukas-renggli.ch
Serge, Things to consider in your situation: (1) make a copy of your changes and image file as they are now - mark them as possibly damaged, but it can help if you need to take multiple attempts to recover your work (2) As mentioned already, use Recover Lost Changes (3) Note that one or more of the changes might have caused the problem, so restore them carefully. (4) next time, don't do three hours of work w/o saving :) Humor aside, the change log should help you, but it is better to not need to recover. I make backups of my image and changes, and do so more often when I am making big changes or simply getting a lot of work done. Good luck, Bill ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Serge Stinckwich [serge.stinckwich@gmail.com] Sent: Wednesday, November 17, 2010 9:41 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Pharo go in loop. Did you try : cmd-. or cmd-shift-. ? On Wed, Nov 17, 2010 at 9:36 PM, Dario Trussardi <dario.trussardi@tiscali.it> wrote:
Hi,
i run a Pharo image on MacBook.
It's in loop and don't answer at any input from mouse and keyboard.
I can force a command to interup the loop and save a new version of image ?
Thank,
Dario
-- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Every DSL ends up being Smalltalk http://doesnotunderstand.org/
(4) next time, don't do three hours of work w/o saving :) Â Humor aside, the change log should help you, but it is better to not need to recover. Â I make backups of my image and changes, and do so more often when I am making big changes or simply getting a lot of work done.
this also begs another question.. my whole life, i have been used to doing a C-x s (in emacs) and doing a commit every so often.. is there a way to do this with keyboard shortcuts in pharo? that would make life much better.. -- ---- peace, sergio photographer, journalist, visionary http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
participants (8)
-
Dario Trussardi -
Henrik Johansen -
Levente Uzonyi -
Lukas Renggli -
Max Leske -
Schwab,Wilhelm K -
Serge Stinckwich -
sergio_101