Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006647 [Squeak] Morphic major always 09-01-07 02:04 09-02-07 04:12
Reporter brad View Status public  
Assigned To
Priority normal Resolution open  
Status acknowledged   Product Version 3.10
Summary 0006647: TextMorph sequence results in infinite loop
Description When the following is performed, an infinite loop results calling the debugger.

1. TextMorph new openInWorld
2. open Halo menu and unselect "text wrap to bounds"
3. open Halo Menu and select "avoid occlusions"

MNU: TextContainer>>DoesNotUnderstand: #right

(order of items 0000002 and 0000003 does not matter - both create the MNU and loop)
Additional Information
Attached Files

- Relationships

- Notes
(0011085 - 451 - 553 - 553 - 553 - 553 - 553)
wiz
09-02-07 03:21

HI brad,

Good bug find.


More data points:

This happens also in Squeak 6665 (as well as 7143) and is just as noisy.

And it will happen with the TEXT morph drawn out of the objects bin as well as from creating it fresh.

Each screen refresh complains anew.

So there are two bugs.
The one that causes the problem
and a debugger bug that does not invalidate the morph from drawing.

Yours in curiosity and service, --Jerome Peace
 
(0011086 - 1278 - 1529 - 1529 - 1529 - 1529 - 1529)
wiz
09-02-07 04:12

Hmm.

from the debug logs full stack trace.

TextContainer(Object)>>doesNotUnderstand: #right
MultiNewParagraph(NewParagraph)>>adjustRightX
TextMorph>>paragraph
TextMorph>>installEditorToReplace:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TextMorph>>ownerChanged

Paragraphs container ivar expect to be either a Rectangle or a TextContainer.

The problem is that TextContainer is being expected to be polymorphic with a rectangle at this point and is not really up to the task.

it gets sent both right:
and withRight:

its proceedure with other rectangle messages is to pass them along to
the text morphs owner.

which would work with #right but not with #withRight since morph passes
#right along to self bounds but wouldn't understand withRight.

Still the smell detectors are going off like nobodys business.

The integration here is suspect.

MultiNewParagraph has no class comment and was typically time stamped:

'yo 1/23/2003 12:53 MultiNewParagraph multiComposeLinesFrom:to:delta:into:priorLines:atY: {as yet unclassified}'

TextContainer is ancient (di 1997) with more recent additions by nk 2004.

Lots of cooks. Somethings been lost in the translation and integration.

There are definitely boojums here.
 

- Issue History
Date Modified Username Field Change
09-01-07 02:04 brad New Issue
09-01-07 02:04 brad Status new => assigned
09-01-07 02:04 brad Assigned To  => KenCausey
09-01-07 10:59 KenCausey Assigned To KenCausey =>
09-01-07 10:59 KenCausey Status assigned => new
09-01-07 10:59 KenCausey Category Any => Morphic
09-02-07 03:21 wiz Note Added: 0011085
09-02-07 03:22 wiz Status new => acknowledged
09-02-07 04:12 wiz Note Added: 0011086


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
45 total queries executed.
35 unique queries executed.
Powered by Mantis Bugtracker