Thread Tools Display Modes
07-08-16, 04:57 AM   #1
Infus
A Deviate Faerie Dragon
Join Date: Jul 2016
Posts: 13
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.
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » Game crash, Assertion failure in CSimpleEditBox.cpp 2105, m_cursorPos out of bounds

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off