Success !!! (was Re: RV: [ANN] Kernel image and the Rest of Squeak package for Squeak 7061)

John M McIntosh johnmci at smalltalkconsulting.com
Tue Sep 26 02:33:09 UTC 2006


Mmmm interesting.

First it loads
dlopen: /Users/johnmci/Documents/Squeak3.8.0/build/Development/ 
Plugins/LargeIntegers => 0

Then we go to sleep and just calls
ioRelinquishProcessorForMicroseconds() which calls aioSleep for looks  
like 20 milliseconds...
If I stop the VM and look at the process stacks.

(gdb) call (int) printAllStacks()
Process
156455740 >idleProcess
156450332 [] in >startUp
156450424 [] in BlockContext>newProcess


Process
156452444 >finalizationProcess
156452260 [] in >restartFinalizationProcess
156452352 [] in BlockContext>newProcess

Process
147216216 >timerInterruptWatcher
147216600 [] in >startTimerInterruptWatcher
147216692 [] in BlockContext>newProcess

Process
156447808 InputSensor>userInterruptWatcher
156447624 [] in InputSensor>installInterruptWatcher
156447716 [] in BlockContext>newProcess

Process
156670128 Delay>wait
156670532 [] in EventSensor>eventTickler
156670036 BlockContext>on:do:
156448300 EventSensor>eventTickler
156448116 [] in EventSensor>installEventTickler
156448208 [] in BlockContext>newProcess


Process
156449912 SystemDictionary>lowSpaceWatcher
156450004 [] in SystemDictionary>installLowSpaceWatcher
156450096 [] in BlockContext>newProcess


Process
156680932 Delay>wait
156680840 WorldState>interCyclePause:
156680012 WorldState>doOneCycleFor:
156679644 PasteUpMorph>doOneCycle
154524752 [] in >spawnNewProcess
154524936 [] in BlockContext>newProcess

Process
156682632 Delay>wait
156682540 WorldState>interCyclePause:
156681712 WorldState>doOneCycleFor:
156681620 PasteUpMorph>doOneCycle
154508316 [] in >spawnNewProcess
154508500 [] in BlockContext>newProcess

Then suddenly it after some minutes it loads the
BitBltPlugin and then the
B2DPlugin

and calls
primitiveShowDisplayRect
which triggers the building of the main window and display, because I  
don't build the window until it's required.

Stack now reads

(gdb) call (int) printAllStacks()
Process
156598864 DisplayScreen>forceToScreen:
156598680 [] in DisplayScreen>forceDamageToScreen:
156598772 OrderedCollection>do:
156598588 DisplayScreen>forceDamageToScreen:
156598128 WorldState>forceDamageToScreen:
156490092 WorldState>displayWorld:submorphs:
156490000 PasteUpMorph>privateOuterDisplayWorld
156489908 PasteUpMorph>displayWorld
156488864 SystemWindow>passivate
156488772 SystemWindow>activate
156481812 SystemWindow>openAsIsIn:
156480648 SystemWindow>openInWorld:extent:
156480556 SystemWindow>openInWorldExtent:
156461308 Debugger>buildMorphicNotifierLabelled:message:
156461216 Debugger>openNotifierContents:label:
156460572 [] in >openOn:context:label:contents:fullView:
156460480 BlockContext>on:do:
156459676 [] in >openOn:context:label:contents:fullView:
156460388 WorldState>runStepMethodsIn:
156460296 PasteUpMorph>runStepMethods
156460204 WorldState>doOneCycleNowFor:
156460112 WorldState>doOneCycleFor:
156460020 PasteUpMorph>doOneCycle
154524752 [] in >spawnNewProcess
154524936 [] in BlockContext>newProcess


Process
156452444 >finalizationProcess
156452260 [] in >restartFinalizationProcess
156452352 [] in BlockContext>newProcess

Process
147216216 >timerInterruptWatcher
147216600 [] in >startTimerInterruptWatcher
147216692 [] in BlockContext>newProcess


Process
156447808 InputSensor>userInterruptWatcher
156447624 [] in InputSensor>installInterruptWatcher
156447716 [] in BlockContext>newProcess

Process
156478660 Delay>wait
156478752 [] in EventSensor>eventTickler
156478568 BlockContext>on:do:
156448300 EventSensor>eventTickler
156448116 [] in EventSensor>installEventTickler
156448208 [] in BlockContext>newProcess

Process
156449912 SystemDictionary>lowSpaceWatcher
156450004 [] in SystemDictionary>installLowSpaceWatcher
156450096 [] in BlockContext>newProcess


Debug that comes up says

25 September 2006 7:28:37 pm

VM: Mac OS - a SmalltalkImage
Image: Squeak3.9gamma [latest update: #7061]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir /Users/johnmci/Shared/MinimalImage-7061b
Trusted Dir /Users/johnmci/Shared/MinimalImage-7061b
Untrusted Dir /Users/johnmci/Library/Preferences/Squeak/Internet/My  
Squeak

UndefinedObject(Object)>>doesNotUnderstand: #includes:
	Receiver: nil
	Arguments and temporary variables:
		aMessage: 	includes: a PasteUpMorph(1414) [world]
	Receiver's instance variables:
nil

MouseOverHandler>>noticeMouseOver:event:
	Receiver: a MouseOverHandler
	Arguments and temporary variables:
		aMorph: 	a PasteUpMorph(1414) [world]
		anEvent: 	[326 at 458 mouseOver nil]
	Receiver's instance variables:
		mouseOverMorphs: 	an Array(a PluggableTextMorph(47) a SystemWindow 
(681) a PasteU...etc...
		enteredMorphs: 	nil
		overMorphs: 	nil
		leftMorphs: 	nil

HandMorph>>noticeMouseOver:event:
	Receiver: a HandMorph(3096)
	Arguments and temporary variables:
		aMorph: 	a PasteUpMorph(1414) [world]
		anEvent: 	[326 at 458 mouseOver nil]
	Receiver's instance variables:
		bounds: 	435 at 358 corner: 451 at 374
		owner: 	a PasteUpMorph(1414) [world]
		submorphs: 	#()
		fullBounds: 	435 at 358 corner: 451 at 374
		color: 	Color blue
		extension: 	a MorphExtension (3895) [other:  (halo -> a HaloMorph 
(3433))]
		mouseFocus: 	nil
		keyboardFocus: 	a TextMorphForEditView(2411)
		eventListeners: 	nil
		mouseListeners: 	nil
		keyboardListeners: 	nil
		mouseClickState: 	nil
		mouseOverHandler: 	a MouseOverHandler
		lastMouseEvent: 	[435 at 358 mouseUp 2260177]
		targetOffset: 	53 at 4
		damageRecorder: 	a DamageRecorder
		cacheCanvas: 	nil
		cachedCanvasHasHoles: 	true
		temporaryCursor: 	nil
		temporaryCursorOffset: 	nil
		hardwareCursor: 	nil
		hasChanged: 	true
		savedPatch: 	nil
		userInitials: 	''
		lastEventBuffer: 	#(1 2260177 435 358 0 0 0 1)
		genieGestureProcessor: 	nil
		keyboardInterpreter: 	a MacRomanInputInterpreter

PasteUpMorph(Morph)>>handleMouseOver:
	Receiver: a PasteUpMorph(1414) [world]
	Arguments and temporary variables:
		anEvent: 	[326 at 458 mouseOver nil]
	Receiver's instance variables:
		bounds: 	0 at 0 corner: 1016 at 716
		owner: 	nil
		submorphs: 	an Array(a HaloMorph(3433) a SystemWindow(681) a  
PreDebugWindow(1744...etc...
		fullBounds: 	0 at 0 corner: 1016 at 716
		color: 	(Color r: 0.97 g: 0.98 b: 1.0)
		extension: 	a MorphExtension (2320) [other:  (dragEnabled -> true)  
(automaticPhr...etc...
		borderWidth: 	0
		borderColor: 	(Color r: 0.861 g: 1.0 b: 0.722)
		presenter: 	a Presenter (2506)
		model: 	nil
		cursor: 	1
		padding: 	3
		backgroundMorph: 	nil
		turtleTrailsForm: 	nil
		turtlePen: 	nil
		lastTurtlePositions: 	nil
		isPartsBin: 	nil
		autoLineLayout: 	nil
		indicateCursor: 	nil
		resizeToFit: 	nil
		wantsMouseOverHalos: 	false
		worldState: 	a WorldState
		griddingOn: 	nil


--- The full stack ---
UndefinedObject(Object)>>doesNotUnderstand: #includes:
MouseOverHandler>>noticeMouseOver:event:
HandMorph>>noticeMouseOver:event:
PasteUpMorph(Morph)>>handleMouseOver:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MouseEvent>>sentTo:
PasteUpMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
PasteUpMorph(Morph)>>processEvent:using:
PasteUpMorph>>processEvent:using:
PasteUpMorph(Morph)>>processEvent:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
MouseOverHandler>>processMouseOver:
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h  
processEvents.  capturingGesture := capturingGest...]}
Array(SequenceableCollection)>>do:
WorldState>>handsDo:
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
PasteUpMorph>>doOneCycle
[] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor  
yield.  false] whileFalse.  nil]}
[] in BlockContext>>newProcess {[self value.  Processor  
terminateActive]}


On 25-Sep-06, at 2:16 PM, John M McIntosh wrote:

> Give me a URL to the image file and I'll see why it won't work.
>
> On 25-Sep-06, at 1:48 PM, Edgar J. De Cleene wrote:
>> Now I hope John could said something about why some images works  
>> on Unix VMs
>> and not on his VM, so I send a copy to he.
>>
>>

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===





More information about the Squeak-dev mailing list