Magma question or bug

tblanchard at mac.com tblanchard at mac.com
Tue May 6 19:06:20 UTC 2003


Yep, I've seen this.
The issue is that the nil thing is assumed to be zero.  It will get 
initialized after the first magma request happens but until it does its 
not yet initialized.  I did something simple by sticking a

whateverIsNil ifNil: [^0]

at the top of the method that generates the walkback.

On Monday, May 5, 2003, at 11:07  PM, Derek Brans wrote:

> I've created a magma repository from a live domain model (an object 
> with dictionaries that are already full of stuff, pointers flying all 
> over the place).
>  
> Then I started MagmaServerConsole and inspected it, as instructed.
>  
> When I select statistics in the inspector, I get an error.
>  
> When I type 'statistics printString' I get the following walkback.
> Any ideas?  -Thanks
>  
> VM: Win32 - Squeak3.4 of 1 March 2003 [latest update: #5170]
> Image: Squeak3.5 [latest update: #5180]
>  
> UndefinedObject(Object)>>doesNotUnderstand:
>  Receiver: nil
>  Arguments and temporary variables:
>   aMessage:  a Message with selector: #// and arguments: #(0)
>  Receiver's instance variables:
> nil
>  
> MaStat>>mean
>  Receiver: <<error during printing>>
>  Arguments and temporary variables:
>  
>  Receiver's instance variables:
>   current:  0
>   min:  nil
>   max:  nil
>   total:  nil
>   count:  0
>  
> MaStat>>maPrintAbbreviatedOn:
>  Receiver: <<error during printing>>
>  Arguments and temporary variables:
>   aStream:  a LimitedWriteStream
>  Receiver's instance variables:
>   current:  0
>   min:  nil
>   max:  nil
>   total:  nil
>   count:  0
>  
> LimitedWriteStream>>maPrintAbbreviated:
>  Receiver: a LimitedWriteStream
>  Arguments and temporary variables:
> <<error during printing>
>  Receiver's instance variables:
>   collection:  'a MagmaServerStatistics
>  sockets queued: min= max= total= count=0...etc...
>   position:  72
>   readLimit:  0
>   writeLimit:  100
>   limit:  50000
>   limitBlock:  [] in String class(SequenceableCollection 
> class)>>streamContents:li...etc...
>  
>
> --- The full stack ---
> UndefinedObject(Object)>>doesNotUnderstand:
> MaStat>>mean
> MaStat>>maPrintAbbreviatedOn:
> LimitedWriteStream>>maPrintAbbreviated:
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> MagmaServerStatistics>>printOn:
> [] in MagmaServerStatistics(Object)>>printStringLimitedTo:
> String class(SequenceableCollection class)>>streamContents:limitedTo:
> MagmaServerStatistics(Object)>>printStringLimitedTo:
> MagmaServerStatistics(Object)>>printString
> MagmaServerConsole>>DoIt
> Compiler>>evaluate:in:to:notifying:ifFail:
> [] in TextMorphEditor(ParagraphEditor)>>evaluateSelection
> BlockContext>>on:do:
> TextMorphEditor(ParagraphEditor)>>evaluateSelection
> TextMorphEditor(ParagraphEditor)>>doIt
> [] in TextMorphEditor(ParagraphEditor)>>doIt:
> TextMorphEditor(Controller)>>terminateAndInitializeAround:
> TextMorphEditor(ParagraphEditor)>>doIt:
> TextMorphEditor(ParagraphEditor)>>dispatchOnCharacter:with:
> TextMorphEditor>>dispatchOnCharacter:with:
> TextMorphEditor(ParagraphEditor)>>readKeyboard
> TextMorphEditor>>readKeyboard
> [] in TextMorphForEditView(TextMorph)>>keyStroke:
> TextMorphForEditView(TextMorph)>>handleInteraction:fromEvent:
> TextMorphForEditView>>handleInteraction:fromEvent:
> TextMorphForEditView(TextMorph)>>keyStroke:
> TextMorphForEditView>>keyStroke:
> TextMorphForEditView(TextMorph)>>handleKeystroke:
> KeyboardEvent>>sentTo:
> TextMorphForEditView(Morph)>>handleEvent:
> TextMorphForEditView(Morph)>>handleFocusEvent:
> [] in HandMorph>>sendFocusEvent:to:clear:
> PasteUpMorph>>becomeActiveDuring:
> HandMorph>>sendFocusEvent:to:clear:
> HandMorph>>sendEvent:focus:clear:
> HandMorph>>sendKeyboardEvent:
> HandMorph>>handleEvent:
> HandMorph>>processEvents
> [] in WorldState>>doOneCycleNowFor:
> Array(SequenceableCollection)>>do:
> WorldState>>handsDo:
> WorldState>>doOneCycleNowFor:
> WorldState>>doOneCycleFor:
> PasteUpMorph>>doOneCycle
> [] in Project class>>spawnNewProcess
> [] in BlockContext>>newProcess
>  
> Derek Brans
> Nerd on a Wire
> Web design that's anything but square
> http://www.nerdonawire.com
> phone: 604.874.6463
> mailto: brans at nerdonawire.com
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 5032 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030506/da32988a/attachment.bin


More information about the Squeak-dev mailing list