View Issue Details

IDProjectCategoryView StatusLast Update
0005072Spring engineGeneralpublic2016-02-09 01:01
Reportersilentwings Assigned Togajop  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version100.0+git 
Summary0005072: hang when pressing backspace in a chili EditBox
DescriptionSpring 101 hangs (with BAR) whenever backspace is pressed in a chili EditBox. See attached infolog.
Steps To Reproduceload up bar:test, press f11 (shows the widget selector), click on the search box so as its ready to be typed into, press backspace -> hang
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

silentwings

2016-02-08 22:15

reporter   ~0015690

translated (maybe meaning its not an engine issue but a chili one)

rts/lib/lua/src/ltable.cpp:457
rts/lib/lua/src/lvm.cpp:137
rts/lib/lua/src/lvm.cpp:112
??:0
??:0
??:0
thread.cpp:?
rts/System/Sound/OpenAL/Sound.cpp:379
/slave/mingwlibs/include/boost/function/function_template.hpp:154
/slave/mingwlibs/include/boost/function/function_template.hpp:767
thread.cpp:?
??:0
??:0
??:0
rts/lib/lua/src/lapi.cpp:440
rts/lib/lua/src/lapi.cpp:432
rts/lib/lua/src/ldo.cpp:321
??:0
??:0
??:0
thread.cpp:?
rts/System/Sound/OpenAL/Sound.cpp:379
/slave/mingwlibs/include/boost/function/function_template.hpp:154
/slave/mingwlibs/include/boost/function/function_template.hpp:767
thread.cpp:?
??:0
??:0
??:0
rts/lib/lua/src/ltable.cpp:457
rts/lib/lua/src/lvm.cpp:137
rts/lib/lua/src/lvm.cpp:112
??:0
??:0
??:0
thread.cpp:?
rts/System/Sound/OpenAL/Sound.cpp:379
/slave/mingwlibs/include/boost/function/function_template.hpp:154
/slave/mingwlibs/include/boost/function/function_template.hpp:767
thread.cpp:?
??:0
??:0
??:0

silentwings

2016-02-08 22:17

reporter   ~0015691

also present in 100.0

Kloot

2016-02-09 00:26

developer   ~0015696

Last edited: 2016-02-09 00:32

you seem to have created an infinite loop inside the Chili Framework widget, because the call to its :KeyPress from widgetHandler:KeyPress never returns (specifically, the call to Utf8BackspaceAt in EditBox:KeyPress, which uses the suspicious-looking Utf8PrevChar)

and bingo:

    while (pos < startPos) do
        oldPos = pos
        nxt = Utf8GetCharByteLength(s, pos)
        pos = pos + nxt
        assert(nxt > 0) -- fails
    end

silentwings

2016-02-09 00:49

reporter   ~0015698

Last edited: 2016-02-09 00:50

thanks, https://github.com/jk3064/chiliui/issues/45 and this can be closed.

Kloot

2016-02-09 01:01

developer   ~0015700

gajop: I know you assigned this to yourself, but I'm closing it again since chili issues don't belong here

Issue History

Date Modified Username Field Change
2016-02-08 22:14 silentwings New Issue
2016-02-08 22:14 silentwings File Added: infolog.txt
2016-02-08 22:15 silentwings Note Added: 0015690
2016-02-08 22:17 silentwings Note Added: 0015691
2016-02-09 00:26 Kloot Note Added: 0015696
2016-02-09 00:29 Kloot Note Edited: 0015696
2016-02-09 00:32 Kloot Note Edited: 0015696
2016-02-09 00:37 Kloot Status new => closed
2016-02-09 00:37 Kloot Assigned To => Kloot
2016-02-09 00:37 Kloot Resolution open => no change required
2016-02-09 00:43 gajop Assigned To Kloot => gajop
2016-02-09 00:43 gajop Status closed => assigned
2016-02-09 00:49 silentwings Note Added: 0015698
2016-02-09 00:50 silentwings Note Edited: 0015698
2016-02-09 01:01 Kloot Note Added: 0015700
2016-02-09 01:01 Kloot Status assigned => closed