3.10 image hang

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

3.10 image hang

Prashanth Hebbar
Hi:

I am using Squeak 3.10 on a Windows XP (2 GB RAM, 2 Ghz, Intel) While trying to save a project, I got a DNU and the image hung. The Debug walkthrough showed the error in "isSystemDefined" method. On further examination, I found a LowSpaceDebug.txt in my default directory. 

I had similar problems earlier both on XP and Vista. Image would freeze and the CPU usage would show 100%. That problem continues in my new machine which has Ubuntu.

I suspect that the image is entering an infinite loop. There is little or no documentation of this problem. I have been working on a 3.8 and 3.9 images for some time now.

I checked mantis and came across a fix for the TransformationMorph behavious which would solve the freeze problem but I don't see how it is relevant to what I am facing. I may be missing something obvious.

Can someone please help me.

Regards,

--
Prashanth Hebbar
Bangalore

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

Re: 3.10 image hang

K. K. Subramaniam
On Saturday 26 Sep 2009 11:01:20 am Prashanth Hebbar wrote:
> I am using Squeak 3.10 on a Windows XP (2 GB RAM, 2 Ghz, Intel) While
> trying to save a project, I got a DNU and the image hung. The Debug
> walkthrough showed the error in "isSystemDefined" method. On further
> examination, I found a LowSpaceDebug.txt in my default directory.
Check help->vm statistics for total and free memory just before you save. If
it is indeed low, you could increase it using -memory option. E.g.
   squeak -memory 80m

HTH .. Subbu
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: 3.10 image hang

Prashanth Hebbar
Thank you very much Subbu. The low space issues seems to have gone away.

However, I still get a DNU on "isSystemDefined" method.

Regards,

On 9/26/09, K. K. Subramaniam <[hidden email]> wrote:
On Saturday 26 Sep 2009 11:01:20 am Prashanth Hebbar wrote:
> I am using Squeak 3.10 on a Windows XP (2 GB RAM, 2 Ghz, Intel) While
> trying to save a project, I got a DNU and the image hung. The Debug
> walkthrough showed the error in "isSystemDefined" method. On further
> examination, I found a LowSpaceDebug.txt in my default directory.

Check help->vm statistics for total and free memory just before you save. If
it is indeed low, you could increase it using -memory option. E.g.
   squeak -memory 80m

HTH .. Subbu
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners



--
Prashanth Hebbar
Bangalore
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: 3.10 image hang

K. K. Subramaniam
On Saturday 26 Sep 2009 11:46:05 am Prashanth Hebbar wrote:
> Thank you very much Subbu. The low space issues seems to have gone away.
>
> However, I still get a DNU on "isSystemDefined" method.
On which object? could you list the last ten contexts from the Debugger? ..
Subbu

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

Re: 3.10 image hang

Claus Kick
K. K. Subramaniam schrieb:
> On Saturday 26 Sep 2009 11:46:05 am Prashanth Hebbar wrote:
>> Thank you very much Subbu. The low space issues seems to have gone away.
>>
>> However, I still get a DNU on "isSystemDefined" method.
> On which object? could you list the last ten contexts from the Debugger? ..
> Subbu
>

Could you just post a walkback?

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

Re: 3.10 image hang

Prashanth Hebbar
Hello Claus:

Some context and update:
The error is occurring when I try to save home project of image 3.10.2-7179 (Damien Cassou's web based image).

I have tried with VM versions 3.10.6 (2007) and 3.11.5 (Sep 2009).

I do not face this problem in the basic image from squeak.org.

Here's the walkback:

Subject: [BUG]Trait(Object)>>doesNotUnderstand: #isSystemDefined

26 September 2009 7:48:15 pm

VM: Win32 - a SmalltalkImage
Image: Squeak3.10.2 [latest update: #7179]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\Squeak\MySqueak
Trusted Dir C:\Squeak\MySqueak\Prashanth
Untrusted Dir C:\My Squeak\Prashanth

Trait(Object)>>doesNotUnderstand: #isSystemDefined
Receiver: TWriteStreamTest
Arguments and temporary variables:
aMessage: isSystemDefined
Receiver's instance variables:
methodDict: a MethodDictionary(#classUnderTest->a CompiledMethod (1905) #emptyS...etc...
traitComposition: TPuttableStreamTest + TSequencedStreamTest
localSelectors: an IdentitySet()
users: an IdentitySet()
organization: ('accessing' classUnderTest)
('accessing - defaults' emptyStream ...etc...
name: #TWriteStreamTest
environment: a SystemDictionary(lots of globals)
classTrait: TWriteStreamTest classTrait
category: #'CollectionsTests-Streams'

ClassOrganizer(BasicClassOrganizer)>>objectForDataStream:
Receiver: ('accessing' classUnderTest)
('accessing - defaults' emptyStream streamOnArray streamOnStr...etc...
Arguments and temporary variables:
refStrm: a ReferenceStream a DummyStream a DummyStream a DummyStream a DummyStr...etc...
dp: nil
Receiver's instance variables:
categoryArray: #(#accessing #'accessing - defaults' #helpers #'tests - accessin...etc...
categoryStops: #(1 4 5 10 16)
elementArray: #(#classUnderTest #emptyStream #streamOnArray #streamOnString #st...etc...
subject: TWriteStreamTest
classComment: nil
commentStamp: nil

ReferenceStream(DataStream)>>nextPut:
Receiver: a ReferenceStream a DummyStream a DummyStream a DummyStream a DummyStream a DummyStream a ...etc...
Arguments and temporary variables:
anObject: ('accessing' classUnderTest)
('accessing - defaults' emptyStream stre...etc...
typeID: 9
selector: nil
objectToStore: nil
Receiver's instance variables:
byteStream: a DummyStream a DummyStream a DummyStream a DummyStream a DummyStre...etc...
topCall: an Array(a Project(test5) a PasteUpMorph<world>(1622) [world] a Transc...etc...
basePos: 47
references: an IdentityDictionary(size 43365)
objects: an IdentityDictionary()
currentReference: nil
fwdRefEnds: an IdentityDictionary()
blockers: an IdentityDictionary(#(#(24 24) #(48 48) #(72 72) #(96 96) #(120 120...etc...
skipping: an IdentitySet()
insideASegment: true

Trait(Object)>>storeDataOn:
Receiver: TWriteStreamTest
Arguments and temporary variables:
aDataStream: a ReferenceStream a DummyStream a DummyStream a DummyStream a Dumm...etc...
cntInstVars: 9
cntIndexedVars: 0
i: 5
Receiver's instance variables:
methodDict: a MethodDictionary(#classUnderTest->a CompiledMethod (1905) #emptyS...etc...
traitComposition: TPuttableStreamTest + TSequencedStreamTest
localSelectors: an IdentitySet()
users: an IdentitySet()
organization: ('accessing' classUnderTest)
('accessing - defaults' emptyStream ...etc...
name: #TWriteStreamTest
environment: a SystemDictionary(lots of globals)
classTrait: TWriteStreamTest classTrait
category: #'CollectionsTests-Streams'


--- The full stack ---
Trait(Object)>>doesNotUnderstand: #isSystemDefined
ClassOrganizer(BasicClassOrganizer)>>objectForDataStream:
ReferenceStream(DataStream)>>nextPut:
Trait(Object)>>storeDataOn:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ReferenceStream(DataStream)>>writeInstance:
ReferenceStream(DataStream)>>nextPut:
[] in ReferenceStream(DataStream)>>nextPutAll: {[:each | self nextPut: each]}
Array(SequenceableCollection)>>do:
ReferenceStream(DataStream)>>nextPutAll:
ReferenceStream(DataStream)>>writeArray:
ReferenceStream(DataStream)>>nextPut:
IdentitySet(Object)>>storeDataOn:
ReferenceStream(DataStream)>>writeInstance:
ReferenceStream(DataStream)>>nextPut:
Trait(Object)>>storeDataOn:
ReferenceStream(DataStream)>>writeInstance:
ReferenceStream(DataStream)>>nextPut:
[] in ReferenceStream(DataStream)>>nextPutAll: {[:each | self nextPut: each]}
Array(SequenceableCollection)>>do:
ReferenceStream(DataStream)>>nextPutAll:
ReferenceStream(DataStream)>>writeArray:
ReferenceStream(DataStream)>>nextPut:
OrderedCollection(Object)>>storeDataOn:
ReferenceStream(DataStream)>>writeInstance:
...etc...


On Sat, Sep 26, 2009 at 6:09 PM, Claus Kick <[hidden email]> wrote:
 On which object? could you list the last ten contexts from the Debugger? .. Subbu


Could you just post a walkback?


--
Prashanth Hebbar
Bangalore

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

Re: 3.10 image hang

Jerome Peace
Hi Prashanth Hebbar,
 
It looks like you have found a fine bug (or two).

A good way to deal with it is to start a mantis report.
http://bugs.squeak.org/my_view_page.php 
is a good place to start. You can get an account freely and easily.

Please remember that the first rule of troubleshooting is first hand information.

The clearest reports will start with a way to reproduce the problem.
You have given details of what system and image you are using.

The walkback is interesting. Now if you can also supply a recipe for getting to that walkback.

E.G. Starting with a fresh xxx image.
Do this
this and this
and the walk back happens.

Upload any files needed to reproduce the problem. It always helps if your example is boiled down to the simplest thing that will cause the error to occur.

In additional details or a note include the walk back.

The clearer you make the report, the easier it will be for someone to look into the problem.

Once the report is written its worth pointing to it on one of the lists. The squeak-dev list would probably reach people most interested in this level of problem.

Yours in curiosity and service, --Jerome Peace




--- On Sat, 9/26/09, Prashanth Hebbar <[hidden email]> wrote:

> From: Prashanth Hebbar <[hidden email]>
> Subject: Re: [Newbies] 3.10 image hang
> To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
> Date: Saturday, September 26, 2009, 10:35 AM
> Hello Claus:
>
> Some context and update:The error is
> occurring when I try to save home project of image
> 3.10.2-7179 (Damien Cassou's web based
> image).
>
> I have tried with VM versions 3.10.6 (2007) and 3.11.5 (Sep
> 2009).
> I do not face this problem in the basic image
> from squeak.org.


The suspect are the recent changes from block contacts to block closures. I am curious when you refer to the basic image whether you are refering to one before the those changes?  

Good luck with the report. --Jer


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

Re: 3.10 image hang

Prashanth Hebbar
Hello Jerome:
 
 
Thanks for the notes on the bug report. I will prepare a report and post it.

I downloaded the basic image from squeak.org/download. I did not know how to figure out whether the image has Block Closures so I did this:
 

#(a b c) do: [ :s | Transcript show: s] ......... and got "abc" in the transcript. 


and this...
 
#(a b c) do: [:s | [Transcript show: s] fork] and got "c" in the Transcript (from an example from the mailing list)
 
 
So two questions:
1. Why should adding "fork" to the code change the closure behaviour
2. There are BlockClosure and BlockClosureTest classes in the image, does this qualify to be supporting full closure

 
Regards,
 
 
 
On Sun, Sep 27, 2009 at 11:50 PM, Jerome Peace <[hidden email]> wrote:
 
Hi Prashanth Hebbar,
 
It looks like you have found a fine bug (or two).
 
A good way to deal with it is to start a mantis report.
http://bugs.squeak.org/my_view_page.php
is a good place to start. You can get an account freely and easily.
 
Please remember that the first rule of troubleshooting is first hand information.
 
The clearest reports will start with a way to reproduce the problem.
You have given details of what system and image you are using.
 
The walkback is interesting. Now if you can also supply a recipe for getting to that walkback.
 
E.G. Starting with a fresh xxx image.
Do this
this and this
and the walk back happens.
 
Upload any files needed to reproduce the problem. It always helps if your example is boiled down to the simplest thing that will cause the error to occur.
 
In additional details or a note include the walk back.
 
The clearer you make the report, the easier it will be for someone to look into the problem.
 
Once the report is written its worth pointing to it on one of the lists. The squeak-dev list would probably reach people most interested in this level of problem.
 
Yours in curiosity and service, --Jerome Peace
 
 
 
 
--- On Sat, 9/26/09, Prashanth Hebbar <[hidden email]> wrote:
 
> From: Prashanth Hebbar <[hidden email]>
> Subject: Re: [Newbies] 3.10 image hang
> To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
> Date: Saturday, September 26, 2009, 10:35 AM
 
> Hello Claus:
>
> Some context and update:The error is
> occurring when I try to save home project of image
> 3.10.2-7179 (Damien Cassou's web based
> image).
>
> I have tried with VM versions 3.10.6 (2007) and 3.11.5 (Sep
> 2009).
> I do not face this problem in the basic image
> from squeak.org.
 
 
 
The suspect are the recent changes from block contacts to block closures. I am curious when you refer to the basic image whether you are refering to one before the those changes?
 
Good luck with the report. --Jer
 
 
 
_______________________________________________
 
 
--
Prashanth Hebbar
Bangalore
 

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners