View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005072 | Spring engine | General | public | 2016-02-08 22:14 | 2016-02-09 01:01 |
| Reporter | silentwings | Assigned To | gajop | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 100.0+git | ||||
| Summary | 0005072: hang when pressing backspace in a chili EditBox | ||||
| Description | Spring 101 hangs (with BAR) whenever backspace is pressed in a chili EditBox. See attached infolog. | ||||
| Steps To Reproduce | load 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 | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Checked infolog.txt for Errors | |||||
|
|
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 |
|
|
also present in 100.0 |
|
|
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 |
|
|
thanks, https://github.com/jk3064/chiliui/issues/45 and this can be closed. |
|
|
gajop: I know you assigned this to yourself, but I'm closing it again since chili issues don't belong here |
| 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 |