Status: Accepted Owner: hernan.m...@gmail.com Labels: Type-ReportDefect New issue 3529 by hernan.m...@gmail.com: TextMorph>>releaseCachedState creates a paragraph which causes a "Subscript out of bounds" in an internal RunArray http://code.google.com/p/pharo/issues/detail?id=3529 Pharo image: Pharo1.1rc3 Pharo core version: Latest update: #11406 Virtual machine used: Pharo 4.0.2 Steps to reproduce: 1. ScriptLoader new cleanUpForRelease. or 2. Specifically SystemNavigation default allObjectsDo: [ :each | (each respondsTo: #releaseCachedState) ifTrue: [ each releaseCachedState ] ]. Sometimes creating a new paragraph while releasing caches causes an Error (subscript is out of bounds) in the RunArray of the text attributes of the TextComposer in the MultiNewParagraph which is contained. Attached Error log. The method TextMorph>>paragraph says "Paragraph instantiation is lazy -- it will be created only when needed", then why the (undocumented) TextMorph>>releaseCachedState creates a new paragraph anyway? If creating paragraph is not needed you may apply the proposed fix. Attachments: releaseParagraphBug.log 29.9 KB TextMorph-releaseCachedState.st 234 bytes