ErikPettersson / moonshineproject

Automatically exported from code.google.com/p/moonshineproject
0 stars 0 forks source link

Bug report - RangeError - Error #1125: The index 15 is out of range 15. #132

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Got this error from the console after doing "info files" in fdb: 

RangeError: Error #1125: The index 15 is out of range 15.
    at Vector$object/_spliceHelper()
    at Vector$object/_splice()
    at Vector$object/http://adobe.com/AS3/2006/builtin::splice()
    at com.moonshineproject.text::TextEditor/freeItemRenderers()[ide\src\com\moonshineproject\text\TextEditor.as:640]
    at com.moonshineproject.text::TextEditor/freeRenderersAtBottom()[ide\src\com\moonshineproject\text\TextEditor.as:657]
    at com.moonshineproject.text::TextEditor/updateVerticalScroll()[ide\src\com\moonshineproject\text\TextEditor.as:801]
    at com.moonshineproject.text::TextEditor/updateDisplayList()[ide\src\com\moonshineproject\text\TextEditor.as:938]
    at mx.core::UIComponent/validateDisplayList()
    at mx.managers::LayoutManager/validateDisplayList()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Original issue reported on code.google.com by mlunar on 28 Aug 2010 at 11:43

GoogleCodeExporter commented 8 years ago
The Flex framework got borked after this and the only thing I could do is close 
the project view (which is why it's white on the right side :P)

Original comment by mlunar on 28 Aug 2010 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
Similar situation, different error:

RangeError: Error #2006: The supplied index is out of bounds.
    at flash.text.engine::TextLine/getAtomBounds()
    at com.moonshineproject.text::ColorManager/calculateWidth()[ide\src\com\moonshineproject\text\ColorManager.as:209]
    at com.moonshineproject.text::TextEditor/scrollViewIfNeeded()[ide\src\com\moonshineproject\text\TextEditor.as:382]
    at com.moonshineproject.text::TextEditor/invalidateSelection()[ide\src\com\moonshineproject\text\TextEditor.as:374]
    at com.moonshineproject.text::SelectionManager/handleMouseDown()[ide\src\com\moonshineproject\text\SelectionManager.as:117]

I suspect it has something to do with large amounts of text being spammed into 
the console output?

Original comment by mlunar on 29 Aug 2010 at 12:48

GoogleCodeExporter commented 8 years ago

Original comment by mlunar on 29 Aug 2010 at 12:58

GoogleCodeExporter commented 8 years ago
Console output should prolly be done in something else, there is no real reason 
to use our texteditor for it.

If we switched to, say, TLF stuff instead we'd get plenty of stuff for free 
(like word-wrapping).

Original comment by petterson.erik@gmail.com on 11 Sep 2010 at 4:41

GoogleCodeExporter commented 8 years ago
There are actually pretty valid reasons to use our TextEditor as opposed to a 
standard TLF field, the console usually shows a small subset of printed lines, 
and our TextEditor is most efficient at that, only rendering the lines which 
are necessary on screen.

Original comment by t.br...@gmail.com on 12 Dec 2010 at 12:53

GoogleCodeExporter commented 8 years ago
If I were to guess, I'd say the error probably comes from the resize causing 
some method to run before the rendering code (which is lazy) has a chance to 
update the renderers, while the console is being spammed with content, 
resulting in a race of sorts.

Original comment by t.br...@gmail.com on 12 Dec 2010 at 12:55