[Newbies] A Cuis Bug

Casey Ransberger casey.obrien.r at gmail.com
Sat Sep 17 02:14:13 UTC 2011


Which version of Cuis are you using? Does this repro in a fresh/stock image?

On Sep 16, 2011, at 4:42 PM, Overcomer Man <overcomer.man at gmail.com> wrote:

> Here's the error I get frequently when copying text to a browser.  I've learned if I click "Proceed" it continues fine.  But it's odd to even get the error.  How can it be fixed?  This is a copy of the debug log file.
> 
> 
> 
> Error: Instances of UndefinedObject are not indexable
> 16 September 2011 4:31:42.033 pm
> 
> VM: Win32 - Squeak3.10.2 of 11 February 2010 [latest update: #9314]
> Image: Cuis 3.3 [latest update: #1024]
> 
> UndefinedObject(Object)>>error:
> 	Receiver: nil
> 	Arguments and temporary variables: 
> 		aString: 	'Instances of UndefinedObject are not indexable'
> 	Receiver's instance variables: 
> nil
> UndefinedObject(Object)>>errorNotIndexable
> 	Receiver: nil
> 	Arguments and temporary variables: 
> 
> 	Receiver's instance variables: 
> nil
> UndefinedObject(Object)>>size
> 	Receiver: nil
> 	Arguments and temporary variables: 
> 
> 	Receiver's instance variables: 
> nil
> SmalltalkEditor(TextEditor)>>closeTypeIn
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 		begin: 	1
> 		stop: 	3496
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> SmalltalkEditor(TextEditor)>>selectFrom:to:
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 		start: 	3496
> 		stop: 	3495
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> SmalltalkEditor(Editor)>>selectAt:
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 		characterIndex: 	3496
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> SmalltalkEditor(TextEditor)>>selectAt:
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 		characterIndex: 	3496
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> [] in SmalltalkEditor(Editor)>>paste
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> SmalltalkEditor(TextEditor)>>replace:with:and:
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 		anInterval: 	(16 to: 15)
> 		newText: 	'Compare input words to def words.
> 1. inputs missing in ouput
> 2. parti...etc...
> 		selectingBlock: 	[closure] in SmalltalkEditor(Editor)>>paste
> 		undoInterval: 	(16 to: 15)
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> SmalltalkEditor(Editor)>>paste
> 	Receiver: a SmalltalkEditor
> 	Arguments and temporary variables: 
> 
> 	Receiver's instance variables: 
> 		morph: 	a BareTextMorph(3071)
> 		model: 	a PluggableTextModel
> 		paragraph: 	a Paragraph
> 		markBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222 at ...etc...
> 		pointBlock: 	a CharacterBlock with index 3496 and rectangle 222 at 1274 corner: 222...etc...
> 		beginTypeInIndex: 	1
> 		emphasisHere: 	#(a TextColor code: Color red)
> 		lastParenLocation: 	nil
> 		selectionStartBlocks: 	#()
> 		selectionStopBlocks: 	#()
> 
> [] in TextModelMorph>>paste
> 	Receiver: a TextModelMorph(510)
> 	Arguments and temporary variables: 
> 
> 	Receiver's instance variables: 
> 		bounds: 	156 at 211 corner: 708 at 414
> 		owner: 	a LayoutMorph(3456)
> 		submorphs: 	#(a TransformMorph(1954))
> 		fullBounds: 	156 at 211 corner: 708 at 414
> 		color: 	Color transparent
> 		extension: 	a MorphExtension (1208) [layoutSpec = ] a LayoutSpec] 
> 		borderWidth: 	0
> 		borderColor: 	Color black
> 		model: 	a PluggableTextModel
> 		scrollBar: 	a ScrollBar(1238)
> 		scroller: 	a TransformMorph(1954)
> 		hScrollBar: 	a ScrollBar(898)
> 		hideScrollBars: 	false
> 		currentScrollRange: 	0 at 58
> 		drawKeyboardFocusIndicator: 	true
> 		textMorph: 	a BareTextMorph(3071)
> 		hasUnacceptedEdits: 	true
> 		askBeforeDiscardingEdits: 	true
> 		hasEditingConflicts: 	false
> 		editorClass: 	SmalltalkEditor
> 		styler: 	a SHTextStylerST80
> 
> [] in TextModelMorph>>handleEdit:
> 	Receiver: a TextModelMorph(510)
> 	Arguments and temporary variables: 
> 		editBlock: 	[closure] in TextModelMorph>>paste
> 		result: 	#(nil)
> 	Receiver's instance variables: 
> 		bounds: 	156 at 211 corner: 708 at 414
> 		owner: 	a LayoutMorph(3456)
> 		submorphs: 	#(a TransformMorph(1954))
> 		fullBounds: 	156 at 211 corner: 708 at 414
> 		color: 	Color transparent
> 		extension: 	a MorphExtension (1208) [layoutSpec = ] a LayoutSpec] 
> 		borderWidth: 	0
> 		borderColor: 	Color black
> 		model: 	a PluggableTextModel
> 		scrollBar: 	a ScrollBar(1238)
> 		scroller: 	a TransformMorph(1954)
> 		hScrollBar: 	a ScrollBar(898)
> 		hideScrollBars: 	false
> 		currentScrollRange: 	0 at 58
> 		drawKeyboardFocusIndicator: 	true
> 		textMorph: 	a BareTextMorph(3071)
> 		hasUnacceptedEdits: 	true
> 		askBeforeDiscardingEdits: 	true
> 		hasEditingConflicts: 	false
> 		editorClass: 	SmalltalkEditor
> 		styler: 	a SHTextStylerST80
> 
> BareTextMorph>>handleEdit:
> 	Receiver: a BareTextMorph(3071)
> 	Arguments and temporary variables: 
> 		editBlock: 	[closure] in TextModelMorph>>handleEdit:
> 	Receiver's instance variables: 
> 		bounds: 	0 at 0 corner: 546 at 58
> 		owner: 	a TransformMorph(1954)
> 		submorphs: 	#()
> 		fullBounds: 	0 at 0 corner: 546 at 58
> 		color: 	Color black
> 		extension: 	nil
> 		model: 	a PluggableTextModel
> 		wrapFlag: 	true
> 		paragraph: 	a Paragraph
> 		editor: 	a SmalltalkEditor
> 		pauseBlinking: 	false
> 		editView: 	a TextModelMorph(510)
> 		acceptOnCR: 	false
> 
> TextModelMorph>>handleEdit:
> 	Receiver: a TextModelMorph(510)
> 	Arguments and temporary variables: 
> 		editBlock: 	[closure] in TextModelMorph>>paste
> 		result: 	#(nil)
> 	Receiver's instance variables: 
> 		bounds: 	156 at 211 corner: 708 at 414
> 		owner: 	a LayoutMorph(3456)
> 		submorphs: 	#(a TransformMorph(1954))
> 		fullBounds: 	156 at 211 corner: 708 at 414
> 		color: 	Color transparent
> 		extension: 	a MorphExtension (1208) [layoutSpec = ] a LayoutSpec] 
> 		borderWidth: 	0
> 		borderColor: 	Color black
> 		model: 	a PluggableTextModel
> 		scrollBar: 	a ScrollBar(1238)
> 		scroller: 	a TransformMorph(1954)
> 		hScrollBar: 	a ScrollBar(898)
> 		hideScrollBars: 	false
> 		currentScrollRange: 	0 at 58
> 		drawKeyboardFocusIndicator: 	true
> 		textMorph: 	a BareTextMorph(3071)
> 		hasUnacceptedEdits: 	true
> 		askBeforeDiscardingEdits: 	true
> 		hasEditingConflicts: 	false
> 		editorClass: 	SmalltalkEditor
> 		styler: 	a SHTextStylerST80
> 
> TextModelMorph>>paste
> 	Receiver: a TextModelMorph(510)
> 	Arguments and temporary variables: 
> 
> 	Receiver's instance variables: 
> 		bounds: 	156 at 211 corner: 708 at 414
> 		owner: 	a LayoutMorph(3456)
> 		submorphs: 	#(a TransformMorph(1954))
> 		fullBounds: 	156 at 211 corner: 708 at 414
> 		color: 	Color transparent
> 		extension: 	a MorphExtension (1208) [layoutSpec = ] a LayoutSpec] 
> 		borderWidth: 	0
> 		borderColor: 	Color black
> 		model: 	a PluggableTextModel
> 		scrollBar: 	a ScrollBar(1238)
> 		scroller: 	a TransformMorph(1954)
> 		hScrollBar: 	a ScrollBar(898)
> 		hideScrollBars: 	false
> 		currentScrollRange: 	0 at 58
> 		drawKeyboardFocusIndicator: 	true
> 		textMorph: 	a BareTextMorph(3071)
> 		hasUnacceptedEdits: 	true
> 		askBeforeDiscardingEdits: 	true
> 		hasEditingConflicts: 	false
> 		editorClass: 	SmalltalkEditor
> 		styler: 	a SHTextStylerST80
> 
> [] in MenuItemMorph>>invokeWithEvent:
> 	Receiver: a MenuItemMorph(1086)'Paste (v)'
> 	Arguments and temporary variables: 
> <<error during printing>
> 	Receiver's instance variables: 
> 		bounds: 	351 at 403 corner: 538 at 421
> 		owner: 	a MenuMorph(567)
> 		submorphs: 	#()
> 		fullBounds: 	351 at 403 corner: 538 at 421
> 		color: 	Color black
> 		extension: 	nil
> 		font: 	a StrikeFont(DejaVu 10 16)
> 		emphasis: 	0
> 		contents: 	'Paste (v)'
> 		hasFocus: 	false
> 		isEnabled: 	true
> 		subMenu: 	nil
> 		isSelected: 	false
> 		target: 	a TextModelMorph(510)
> 		selector: 	#paste
> 		arguments: 	#()
> 		icon: 	Form(16x16x32)
> 
> BlockClosure>>ensure:
> 	Receiver: [closure] in MenuItemMorph>>invokeWithEvent:
> 	Arguments and temporary variables: 
> 		aBlock: 	[closure] in CursorWithMask(Cursor)>>showWhile:
> 		complete: 	nil
> 		returnValue: 	nil
> 	Receiver's instance variables: 
> 		outerContext: 	MenuItemMorph>>invokeWithEvent:
> 		startpc: 	110
> 		numArgs: 	0
> 
> CursorWithMask(Cursor)>>showWhile:
> 	Receiver: ((CursorWithMask
> 	extent: 16 at 16
> 	depth: 1
> 	fromArray: #(
> 		0
> 		100000000000000000000000000...etc...
> 	Arguments and temporary variables: 
> 		aBlock: 	[closure] in MenuItemMorph>>invokeWithEvent:
> 		oldcursor: 	((CursorWithMask
> 	extent: 16 at 16
> 	depth: 1
> 	fromArray: #(
> 		0
> 		10000...etc...
> 	Receiver's instance variables: 
> 		bits: 	a Bitmap of length 16
> 		width: 	16
> 		height: 	16
> 		depth: 	1
> 		offset: 	-1 at -1
> 		maskForm: 	Form(16x16x1)
> 
> MenuItemMorph>>invokeWithEvent:
> 	Receiver: a MenuItemMorph(1086)'Paste (v)'
> 	Arguments and temporary variables: 
> 		evt: 	[411 at 415 mouseUp 495907390]
> 		w: 	a PasteUpMorph(1622) [world]
> 		selArgCount: 	#(0)
> 	Receiver's instance variables: 
> 		bounds: 	351 at 403 corner: 538 at 421
> 		owner: 	a MenuMorph(567)
> 		submorphs: 	#()
> 		fullBounds: 	351 at 403 corner: 538 at 421
> 		color: 	Color black
> 		extension: 	nil
> 		font: 	a StrikeFont(DejaVu 10 16)
> 		emphasis: 	0
> 		contents: 	'Paste (v)'
> 		hasFocus: 	false
> 		isEnabled: 	true
> 		subMenu: 	nil
> 		isSelected: 	false
> 		target: 	a TextModelMorph(510)
> 		selector: 	#paste
> 		arguments: 	#()
> 		icon: 	Form(16x16x32)
> 
> 
> --- The full stack ---
> UndefinedObject(Object)>>error:
> UndefinedObject(Object)>>errorNotIndexable
> UndefinedObject(Object)>>size
> SmalltalkEditor(TextEditor)>>closeTypeIn
> SmalltalkEditor(TextEditor)>>selectFrom:to:
> SmalltalkEditor(Editor)>>selectAt:
> SmalltalkEditor(TextEditor)>>selectAt:
> [] in SmalltalkEditor(Editor)>>paste
> SmalltalkEditor(TextEditor)>>replace:with:and:
> SmalltalkEditor(Editor)>>paste
> [] in TextModelMorph>>paste
> [] in TextModelMorph>>handleEdit:
> BareTextMorph>>handleEdit:
> TextModelMorph>>handleEdit:
> TextModelMorph>>paste
> [] in MenuItemMorph>>invokeWithEvent:
> BlockClosure>>ensure:
> CursorWithMask(Cursor)>>showWhile:
> MenuItemMorph>>invokeWithEvent:
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> MenuItemMorph>>mouseUp:
> MenuItemMorph>>handleMouseUp:
> MouseButtonEvent>>sentTo:
> MenuItemMorph(Morph)>>handleEvent:
> MorphicEventDispatcher>>dispatchDefault:with:
> MorphicEventDispatcher>>dispatchEvent:with:
> MenuItemMorph(Morph)>>processEvent:using:
> [] in MorphicEventDispatcher>>dispatchDefault:with:
> Array(SequenceableCollection)>>do:
> MenuMorph(Morph)>>submorphsDo:
> MorphicEventDispatcher>>dispatchDefault:with:
> MorphicEventDispatcher>>dispatchEvent:with:
> MenuMorph(Morph)>>processEvent:using:
> MenuMorph(Morph)>>processEvent:
> MenuMorph>>handleFocusEvent:
> [] in HandMorph>>sendFocusEvent:to:in:
> [] in PasteUpMorph>>becomeActiveDuring:
> BlockClosure>>on:do:
> PasteUpMorph>>becomeActiveDuring:
> HandMorph>>sendFocusEvent:to:in:
> HandMorph>>sendMouseEvent:
> HandMorph>>handleEvent:
> HandMorph>>processEvents
> [] in WorldState>>doOneCycleNowFor:
> Array(SequenceableCollection)>>do:
> WorldState>>handsDo:
> WorldState>>doOneCycleNowFor:
> WorldState>>doOneCycleFor:
> WorldState>>doOneSubCycleFor:
> PasteUpMorph>>doOneSubCycle
> MenuMorph>>invokeModalAt:in:allowKeyboard:
> MenuMorph>>invokeModal:
> MenuMorph>>invokeModal
> TextModelMorph(ScrollPane)>>mouseButton2Activity
> TextModelMorph(ScrollPane)>>mouseDown:
> TextModelMorph(Morph)>>handleMouseDown:
> MouseButtonEvent>>sentTo:
> TextModelMorph(Morph)>>handleEvent:
> MorphicEventDispatcher>>dispatchMouseDown:with:
> MorphicEventDispatcher>>dispatchEvent:with:
> TextModelMorph(Morph)>>processEvent:using:
> [] in MorphicEventDispatcher>>dispatchMouseDown:with:
> -- and more not shown --
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners


More information about the Beginners mailing list