Game crash, Assertion failure in CSimpleEditBox.cpp 2105, m_cursorPos out of bounds
With the following minimimal code example I can always reproduce a crash in CSimpleEditBox.cpp:
local frame = CreateFrame("Frame", nil, UIParent)
local editBox = CreateFrame("EditBox", "1Edit", frame)
editBox:SetAllPoints()
editBox:SetText("|cFFFF0000%p|r")
editBox:SetFocus();
editBox:SetCursorPosition(2)
frame:SetPoint("CENTER",0,0)
frame:SetWidth(1)
frame:SetHeight(1)
To reproduce the crash:
a) Put that code in a addon
b) Login, and immediately press the "HOME" key.
Alternatively press the "END" key and the game hangs.
Apparently the SetCursorPosition doens't correctly handle the color format, and the cursor is acutally in the middle of the color format.
Last edited by Infus : 07-08-16 at 05:07 AM.
|