[Pharo-users] Lockup when inspecting Text

Alistair Grant akgrant0710 at gmail.com
Wed May 25 14:18:08 EDT 2016


On Wed, May 25, 2016 at 07:08:53PM +0200, Alistair Grant wrote:
> On Wed, May 25, 2016 at 04:08:49PM +0000, Henrik Nergaard wrote:
> > Could you post the string/text object you have trouble inspecting?
> > Both: "Text new inspect" and " (String loremIpsum: 1234) asText inspect" works fine for me (Image 60035).
> 
> Inspecting the following will trigger the CPU loop:
> 
> 
> | startPos aTextStream name |
> 
> aTextStream := TextStream on: (Text new: 1024).
> name := 'silver | AB-com.cz'.
> startPos := aTextStream position max: 1.
> aTextStream
> 	nextPutAll: name; 
> 	applyAttribute: (TextFontReference toFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 20))
> 		beginningAt: startPos;
> 	cr; cr.
> aTextStream contents.
> 
> (I thought it would take much longer to generate a small piece of code
> that would reproduce the problem).

Actually, it is enough to have:

name := 'ABcom'

in the above.

Cheers,
Alistair





More information about the Pharo-users mailing list