Issue12

Title Bug - Behavior array too small
Priority short-term Status resolved
Superseder Bug - Leap to last character causes problem with run length encoding
View: 57
Nosy List Andrew, Dick, Han
Assigned To Andrew Topics Bug

Created on 2005-01-28.23:59:02 by Dick, last changed 2005-02-09.18:22:45 by Han.

Messages
msg53 (view) Author: Andrew Date: 2005-02-03.16:56:54
PLEASE PAY ATTENTION:
I managed to trace this bug!!!
By printing array sizes, it turns out that it is the TEXT array that is the 
wrong size.
Force print statements of each array size.  You will find that on the 
initial creation, all sizes are correct.  After quitting and reloading, 
however, the text array is one character longer than it should be.

This is wreaking HAVOC with my attempts to deal with the final document 
character.
msg13 (view) Author: Dick Date: 2005-01-28.23:59:02
It looks like the BehaviorArray has an array that's one character smaller than
the text (although the problem could actually be somewhere else). Basically, try
starting Archy, LEAP to "O L D" to get near the end of the humane document, and
creep forward to the very last character. Once you get to the last character,
Archy will either crash with an out-of-bounds array index exception in the
behavior array, or (very weirdly) it will actually work but Archy will slow to a
crawl and eventually stop responding entirely.
History
Date User Action Args
2005-02-09 18:22:45Hansetstatus: in-progress -> resolved
superseder: + Bug - Leap to last character causes problem with run length encoding
2005-02-06 04:31:40Azasetassignedto: Han -> Andrew
nosy: + Andrew
2005-02-05 07:29:40Hansetstatus: unread -> in-progress
2005-02-03 16:56:54Andrewsetmessages: + msg53
2005-01-28 23:59:02Dickcreate