[squeak-dev] This is the Help System failure...

K K Subbu kksubbu.ml at gmail.com
Sat Jul 14 17:02:25 UTC 2018

On Saturday 14 July 2018 09:56 AM, Chris Cunningham wrote:
> HelpBrowserTest>>testOpen
> the selected item (Welcome) has the red cross in it, and 2 debug windows 
> on UndefinedObject>>findBinaryIndex:ifNone: show up.

I can confirm this error. When HelpBrowser starts displaying the 
contents of Welcome text, it triggers an out of bounds error while 
processing its text based on its runArray (see attached picture). This 
in turn triggers the above error.

Here are my steps:
1. Start Squeak without Collections-kks.801 mcz
2. Open Workspace, type "HelpBrowserText new open"
3. Help window opens with "Welcome" subtopic. Close this window
4. Now install Collections-kks.801 mcz
5. In Workspace, do "HelpBrowserTest new open"

This will open an out of bounds error first and then an UndefinedObject 
error on top.

Welcome text is only 2173 bytes long, but in basicScanByte....,
startIndex: 	2171
stopIndex: 	4302 (!)

In CompositionScanner>>composeFrom:...., runLength is being computed as 
2188 (!) for a startIndex of 2115.

Chris/Karl, thanks for finding this testcase. This may help us track 
down a long pending bug in Squeak's handling of styled text.

Regards .. Subbu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helpbrowser-crash.png
Type: image/png
Size: 71966 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180714/c9fa56a5/attachment-0001.png>

More information about the Squeak-dev mailing list