View Issue Details

IDProjectCategoryView StatusLast Update
0004064Spring engineGeneralpublic2013-11-28 19:46
ReporterLeggir Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version95.0 
Target Version96.0 
Summary0004064: Hitting side buttons on mouse causes OOM after some time
DescriptionMost modern mice have side buttons that by default are used to go forward or back on webpages and some other functions. Hitting any of these buttons within a game will instantly cause spring to crash.
Steps To Reproduce-Start a game (multiplay or single).
-Play for 5 minutes, as it often doesn't do this immediately after starting up.
-Press any of the side buttons.
-"Spring has Crashed"
Additional InformationIt does this on several computers, all running Windows 7. Each PC has a different mouse including, Saitek V300 Gaming Mouse, Logitech Laser Mouse, Microsoft Office Mouse.
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
test.lua (Attachment missing)
Checked infolog.txt for Errors

Relationships

related to 0004173 resolvedKloot [f=0012565] Error: [Watchdog::ClearTimer] Invalid thread 4 

Activities

TheFatController

2013-10-15 12:44

reporter   ~0011782

Could be this cause which I worked around in BA: http://springrts.com/phpbb/viewtopic.php?p=544323#p544323

Kloot

2013-10-15 13:39

developer   ~0011783

cannot reproduce on my system with 5-button mouse, need a clean stacktrace

abma

2013-10-15 14:03

administrator   ~0011784

do you have any tool installed that does something on mouse button 5? something teamspeak like? i'm pretty sure this is the cause...

abma

2013-10-15 14:05

administrator   ~0011785

Last edited: 2013-10-15 14:07

http://springrts.com/phpbb/viewtopic.php?f=11&t=30625

oops, read the topic, it seems to be not TS, its a engine bug it seems.

abma

2013-10-15 14:29

administrator   ~0011786

Last edited: 2013-10-15 14:30

infolog.txt is 94.1

"Calling Spring.GetDefaultCommand inside widget:MousePress causes Spring to crash with additional mouse buttons (clickin mouse 4 while moving the scrollwheel crashed 100% of the time for me)"

TheFatController

2013-10-16 23:44

reporter   ~0011820

Attached test.lua, this crashes it for me as described above, definitely recreatable.

More recent stack trace:

[f=0000000] GameID: 9f075f52abe72b6ccfbf89611cdf4421
[f=0002155] Error: Spring 94.1.1-1373-g1120427 develop has crashed.
[f=0002155] Error: DLL information:
[f=0002155] Error: 0x00400000 spring
[f=0002155] Error: 0x77950000 ntdll
[f=0002155] Error: 0x76e30000 kernel32
[f=0002155] Error: 0x77230000 KERNELBASE
[f=0002155] Error: 0x76440000 ADVAPI32
[f=0002155] Error: 0x761c0000 msvcrt
[f=0002155] Error: 0x768b0000 sechost
[f=0002155] Error: 0x77140000 RPCRT4
[f=0002155] Error: 0x753a0000 SspiCli
[f=0002155] Error: 0x75390000 CRYPTBASE
[f=0002155] Error: 0x6be80000 GLU32
[f=0002155] Error: 0x6a320000 OPENGL32
[f=0002155] Error: 0x774c0000 GDI32
[f=0002155] Error: 0x76340000 USER32
[f=0002155] Error: 0x77920000 LPK
[f=0002155] Error: 0x766b0000 USP10
[f=0002155] Error: 0x6a230000 DDRAW
[f=0002155] Error: 0x6bed0000 DCIMAN32
[f=0002155] Error: 0x76ba0000 SETUPAPI
[f=0002155] Error: 0x76d70000 CFGMGR32
[f=0002155] Error: 0x772f0000 OLEAUT32
[f=0002155] Error: 0x769d0000 ole32
[f=0002155] Error: 0x76880000 DEVOBJ
[f=0002155] Error: 0x723a0000 dwmapi
[f=0002155] Error: 0x76d40000 IMAGEHLP
[f=0002155] Error: 0x754e0000 SHELL32
[f=0002155] Error: 0x75480000 SHLWAPI
[f=0002155] Error: 0x72440000 WINMM
[f=0002155] Error: 0x772b0000 WS2_32
[f=0002155] Error: 0x75470000 NSI
[f=0002155] Error: 0x10000000 DevIL
[f=0002155] Error: 0x746e0000 MSVCP80
[f=0002155] Error: 0x74930000 MSVCR80
[f=0002155] Error: 0x6b600000 OpenAL32
[f=0002155] Error: 0x70780000 vorbisfile
[f=0002155] Error: 0x68140000 ogg
[f=0002155] Error: 0x64cc0000 vorbis
[f=0002155] Error: 0x62e80000 zlib1
[f=0002155] Error: 0x66fc0000 freetype6
[f=0002155] Error: 0x62aa0000 glew32
[f=0002155] Error: 0x00330000 SDL
[f=0002155] Error: 0x7c340000 MSVCR71
[f=0002155] Error: 0x75400000 IMM32
[f=0002155] Error: 0x76270000 MSCTF
[f=0002155] Error: 0x701c0000 dsound
[f=0002155] Error: 0x706d0000 POWRPROF
[f=0002155] Error: 0x768d0000 CLBCatQ
[f=0002155] Error: 0x73e70000 MMDevApi
[f=0002155] Error: 0x717f0000 PROPSYS
[f=0002155] Error: 0x70160000 wdmaud
[f=0002155] Error: 0x72870000 ksuser
[f=0002155] Error: 0x740b0000 AVRT
[f=0002155] Error: 0x71fa0000 AUDIOSES
[f=0002155] Error: 0x71f60000 msacm32
[f=0002155] Error: 0x72410000 MSACM32
[f=0002155] Error: 0x72100000 midimap
[f=0002155] Error: 0x71110000 nvapi
[f=0002155] Error: 0x752c0000 VERSION
[f=0002155] Error: 0x723c0000 profapi
[f=0002155] Error: 0x72480000 uxtheme
[f=0002155] Error: 0x06e50000 nvoglv32
[f=0002155] Error: 0x77280000 WINTRUST
[f=0002155] Error: 0x76750000 CRYPT32
[f=0002155] Error: 0x76960000 MSASN1
[f=0002155] Error: 0x75230000 ntmarta
[f=0002155] Error: 0x76b50000 WLDAP32
[f=0002155] Error: 0x6be50000 DINPUT
[f=0002155] Error: 0x727d0000 HID
[f=0002155] Error: 0x73f00000 dbghelp
[f=0002155] Error: Exception: Access violation (0xc0000005)
[f=0002155] Error: Exception Address: 0x007219a5
[f=0002155] Error: Stacktrace:
[f=0002155] Error: (0) C:\Games\spring-dev\spring.exe [0x007219A5]

Just FYI my mouse is http://www.sharkoon.com/?q=en/node/2194 (it's actually a pretty decent cheap gaming mouse despite the dragon scales :p)

jK

2013-10-17 00:28

developer   ~0011824

run spring in gdb (+download debugfiles) to get a decent stacktrace

Leggir

2013-10-17 07:48

reporter   ~0011825

Yes I've verified the article's finding. Disabling the BA Waypoint Tracker has eliminated the bug.

Thanks.

abma

2013-10-29 21:03

administrator   ~0011893

0x007219A5
/home/buildbot/slave/full-windows-test/build/build/default/../../rts/Sim/Misc/CollisionHandler.cpp:599

Kloot

2013-10-29 21:28

developer   ~0011896

Last edited: 2013-10-29 21:28

neither that line nor any of the surrounding ones look crashable, and they have nothing to do with *button press* events...

abma

2013-10-29 21:32

administrator   ~0011897

Last edited: 2013-10-29 21:37

test.lua doesn't trigger the crash for me... maybe related to 0004091

abma

2013-11-11 15:32

administrator   ~0012055

Last edited: 2013-11-11 15:32

"there seems to be a problem with scrollwheelbutton
i pressed it and it crashed
linebombcommand + scrollwheelbutton"

was in game "Tech Annihilation v2.23"

abma

2013-11-11 15:34

administrator   ~0012056

more info needed for this crash:

a clean stacktrace or a way to reproduce it on linux.

jK

2013-11-11 15:34

developer   ~0012057

Last edited: 2013-11-11 15:35

If there isn't a decent stacktrace during the next week, I will close the ticket.

cause
-> there are ppl you can easily trigger the crash and I told what to do, but none ever did so -> close ticket

abma

2013-11-11 15:47

administrator   ~0012058

Last edited: 2013-11-11 15:51

ug, i can reproduce it on windows:

build two bombers in "Tech Annihilation v2.23"

select them, press attack,

hold CTRL+ALT, click and hold mouse 1 to draw a line, then press middle mouse button. game 100% hangs, after a while -> crash



but not sure if this is the same as the initial report.

edit: yep, crashes because out of memory, but it tooks a while until it hits the 4GB (?) limit on windows

abma

2013-11-11 15:58

administrator   ~0012062

can't reproduce on linux as the same key combinations only cause a area attack command and not a bombing line as on windows.

-> maybe related to 0004091

jK

2013-11-11 16:03

developer   ~0012064

> -> maybe related to 0004091
no

abma

2013-11-11 16:09

administrator   ~0012065

Last edited: 2013-11-11 16:10

note: any additional press of a mouse-button leads to the hang + OOM.


related because it can't be reproduced on linux because mouse / input handling seems different on windows.

abma

2013-11-28 13:02

administrator   ~0012239

Last edited: 2013-11-28 13:03

couldn't get a proper stacktrace on linux, but now i can reproduce it on linux:

(gdb) bt
#0 0x0000000000dd1678 in luaV_execute (L=0xca6fe90, nexeccalls=1) at rts/lib/lua/src/lvm.cpp:451
#1 0x0000000000dbdbab in luaD_call (L=0xca6fe90, func=0xfdb68f0, nResults=0)
    at rts/lib/lua/src/ldo.cpp:378
#2 0x0000000000db53d3 in f_call (L=0xca6fe90, ud=0x7fffffffcf60) at rts/lib/lua/src/lapi.cpp:812
0000003 0x0000000000dbcc29 in luaD_rawrunprotected (L=0xca6fe90,
    f=0xdb539e <f_call(lua_State*, void*)>, ud=0x7fffffffcf60) at rts/lib/lua/src/ldo.cpp:116
0000004 0x0000000000dbdfb6 in luaD_pcall (L=0xca6fe90, func=0xdb539e <f_call(lua_State*, void*)>,
    u=0x7fffffffcf60, old_top=768, ef=0) at rts/lib/lua/src/ldo.cpp:464
0000005 0x0000000000db5484 in lua_pcall (L=0xca6fe90, nargs=0, nresults=0, errfunc=0)
    at rts/lib/lua/src/lapi.cpp:833
#6 0x0000000000759e2b in LuaOpenGL::BeginEnd (L=0xca6fe90) at rts/Lua/LuaOpenGL.cpp:1930
#7 0x0000000000dbd8e5 in luaD_precall (L=0xca6fe90, func=0xfdb68d0, nresults=0)
    at rts/lib/lua/src/ldo.cpp:320
#8 0x0000000000dd2ed6 in luaV_execute (L=0xca6fe90, nexeccalls=3) at rts/lib/lua/src/lvm.cpp:613
#9 0x0000000000dbdbab in luaD_call (L=0xca6fe90, func=0xfdb66c0, nResults=-1)
    at rts/lib/lua/src/ldo.cpp:378
0000010 0x0000000000db53d3 in f_call (L=0xca6fe90, ud=0x7fffffffd4d0) at rts/lib/lua/src/lapi.cpp:812
#11 0x0000000000dbcc29 in luaD_rawrunprotected (L=0xca6fe90,
    f=0xdb539e <f_call(lua_State*, void*)>, ud=0x7fffffffd4d0) at rts/lib/lua/src/ldo.cpp:116
0000012 0x0000000000dbdfb6 in luaD_pcall (L=0xca6fe90, func=0xdb539e <f_call(lua_State*, void*)>,
    u=0x7fffffffd4d0, old_top=208, ef=0) at rts/lib/lua/src/ldo.cpp:464
0000013 0x0000000000db5484 in lua_pcall (L=0xca6fe90, nargs=1, nresults=-1, errfunc=0)
    at rts/lib/lua/src/lapi.cpp:833
0000014 0x0000000000db8b27 in luaB_pcall (L=0xca6fe90) at rts/lib/lua/src/lbaselib.cpp:377
---Type <return> to continue, or q <return> to quit---
#15 0x0000000000dbd8e5 in luaD_precall (L=0xca6fe90, func=0xfdb66b0, nresults=-1)
    at rts/lib/lua/src/ldo.cpp:320
#16 0x0000000000dd2ed6 in luaV_execute (L=0xca6fe90, nexeccalls=2) at rts/lib/lua/src/lvm.cpp:613
#17 0x0000000000dbdbab in luaD_call (L=0xca6fe90, func=0xfdb6600, nResults=0)
    at rts/lib/lua/src/ldo.cpp:378
#18 0x0000000000db53d3 in f_call (L=0xca6fe90, ud=0x7fffffffda40) at rts/lib/lua/src/lapi.cpp:812
#19 0x0000000000dbcc29 in luaD_rawrunprotected (L=0xca6fe90,
    f=0xdb539e <f_call(lua_State*, void*)>, ud=0x7fffffffda40) at rts/lib/lua/src/ldo.cpp:116
0000020 0x0000000000dbdfb6 in luaD_pcall (L=0xca6fe90, func=0xdb539e <f_call(lua_State*, void*)>,
    u=0x7fffffffda40, old_top=16, ef=0) at rts/lib/lua/src/ldo.cpp:464
#21 0x0000000000db5484 in lua_pcall (L=0xca6fe90, nargs=0, nresults=0, errfunc=0)
    at rts/lib/lua/src/lapi.cpp:833
#22 0x0000000000730a29 in CLuaHandle::ScopedLuaCall::ScopedLuaCall (this=0x7fffffffdb40,
    handle=0xca6b680, state=0xca6fe90, func=0x18f3a40 <CLuaHandle::DrawWorld()::cmdStr>,
    _nInArgs=0, _nOutArgs=0, _errFuncIdx=0, _popErrFunc=false) at rts/Lua/LuaHandle.cpp:453
#23 0x0000000000730e58 in CLuaHandle::RunCallInTraceback (this=0xca6b680,
    hs=0x18f3a40 <CLuaHandle::DrawWorld()::cmdStr>, inArgs=0, outArgs=0, errFuncIndex=0,
    tracebackMsg=..., popErrorFunc=false) at rts/Lua/LuaHandle.cpp:519
0000024 0x0000000000730f1e in CLuaHandle::RunCallInTraceback (this=0xca6b680, hs=..., inArgs=0,
    outArgs=0, errFuncIndex=0, popErrFunc=false) at rts/Lua/LuaHandle.cpp:529
#25 0x00000000007406ba in CLuaHandle::RunCallIn (this=0xca6b680, hs=..., inArgs=0, outArgs=0)
    at rts/Lua/LuaHandle.h:425
0000026 0x00000000007406fe in CLuaHandle::RunCallInUnsynced (this=0xca6b680, hs=..., inArgs=0,
    outArgs=0) at rts/Lua/LuaHandle.h:432
---Type <return> to continue, or q <return> to quit---
0000027 0x0000000000739490 in CLuaHandle::DrawWorld (this=0xca6b680) at rts/Lua/LuaHandle.cpp:2112
#28 0x0000000000c3ade0 in CEventHandler::DrawWorld (this=0x1943940 <eventHandler>)
    at rts/System/EventHandler.cpp:414
0000029 0x00000000009c04dd in CWorldDrawer::Draw (this=0x55f6020) at rts/Rendering/WorldDrawer.cpp:213
#30 0x000000000059bbb4 in CGame::Draw (this=0x22a1970) at rts/Game/Game.cpp:1288
#31 0x0000000000c85e37 in SpringApp::Update (this=0x7fffffffe280) at rts/System/SpringApp.cpp:966
#32 0x0000000000c86092 in SpringApp::Run (this=0x7fffffffe280) at rts/System/SpringApp.cpp:1043
#33 0x0000000000c566a6 in Run (argc=1, argv=0x7fffffffe458) at rts/System/Main.cpp:64
0000034 0x0000000000c56d95 in main (argc=1, argv=0x7fffffffe458) at rts/System/Main.cpp:123

BIG FAT NOTE: it doesn't crash, its an endless loop

it crashes because OOM as it allocates memory in the loop.

abma

2013-11-28 13:04

administrator   ~0012240

a few seconds later the same:

(gdb) bt
#0 0x0000000000744244 in std::_Rb_tree<unsigned int, std::pair<unsigned int const, int>, std::_Select1st<std::pair<unsigned int const, int> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, int> > >::_S_value (__x=0x8a3c980) at /usr/include/c++/4.8/bits/stl_tree.h:521
#1 0x00000000007433ad in std::_Rb_tree<unsigned int, std::pair<unsigned int const, int>, std::_Select1st<std::pair<unsigned int const, int> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, int> > >::_S_key (__x=0x8a3c980) at /usr/include/c++/4.8/bits/stl_tree.h:525
#2 0x0000000000763466 in std::_Rb_tree<unsigned int, std::pair<unsigned int const, int>, std::_Select1st<std::pair<unsigned int const, int> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, int> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<unsigned int const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<unsigned int const, int> >, std::piecewise_construct_t const&, std::tuple<unsigned int const&>&&, std::tuple<>&&) (
    this=0xca6b800, __pos=...) at /usr/include/c++/4.8/bits/stl_tree.h:1673
0000003 0x0000000000762d16 in std::map<unsigned int, int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, int> > >::operator[] (this=0xca6b800, __k=@0x7fffffffcf68: 5888)
    at /usr/include/c++/4.8/bits/stl_map.h:465
0000004 0x0000000000762565 in GLMatrixStateTracker::PushMatrix (this=0xca6b800)
    at rts/Lua/LuaContextData.h:64
0000005 0x000000000075fc32 in LuaOpenGL::PushMatrix (L=0xca6fe90) at rts/Lua/LuaOpenGL.cpp:3805
#6 0x0000000000dbd8e5 in luaD_precall (L=0xca6fe90, func=0xfdb68d0, nresults=0)
    at rts/lib/lua/src/ldo.cpp:320
#7 0x0000000000dd2ed6 in luaV_execute (L=0xca6fe90, nexeccalls=3) at rts/lib/lua/src/lvm.cpp:613
#8 0x0000000000dbdbab in luaD_call (L=0xca6fe90, func=0xfdb66c0, nResults=-1)
    at rts/lib/lua/src/ldo.cpp:378
#9 0x0000000000db53d3 in f_call (L=0xca6fe90, ud=0x7fffffffd4d0) at rts/lib/lua/src/lapi.cpp:812
---Type <return> to continue, or q <return> to quit---
0000010 0x0000000000dbcc29 in luaD_rawrunprotected (L=0xca6fe90,
    f=0xdb539e <f_call(lua_State*, void*)>, ud=0x7fffffffd4d0) at rts/lib/lua/src/ldo.cpp:116
#11 0x0000000000dbdfb6 in luaD_pcall (L=0xca6fe90, func=0xdb539e <f_call(lua_State*, void*)>,
    u=0x7fffffffd4d0, old_top=208, ef=0) at rts/lib/lua/src/ldo.cpp:464
0000012 0x0000000000db5484 in lua_pcall (L=0xca6fe90, nargs=1, nresults=-1, errfunc=0)
    at rts/lib/lua/src/lapi.cpp:833
0000013 0x0000000000db8b27 in luaB_pcall (L=0xca6fe90) at rts/lib/lua/src/lbaselib.cpp:377
0000014 0x0000000000dbd8e5 in luaD_precall (L=0xca6fe90, func=0xfdb66b0, nresults=-1)
    at rts/lib/lua/src/ldo.cpp:320
#15 0x0000000000dd2ed6 in luaV_execute (L=0xca6fe90, nexeccalls=2) at rts/lib/lua/src/lvm.cpp:613
#16 0x0000000000dbdbab in luaD_call (L=0xca6fe90, func=0xfdb6600, nResults=0)
    at rts/lib/lua/src/ldo.cpp:378
#17 0x0000000000db53d3 in f_call (L=0xca6fe90, ud=0x7fffffffda40) at rts/lib/lua/src/lapi.cpp:812
#18 0x0000000000dbcc29 in luaD_rawrunprotected (L=0xca6fe90,
    f=0xdb539e <f_call(lua_State*, void*)>, ud=0x7fffffffda40) at rts/lib/lua/src/ldo.cpp:116
#19 0x0000000000dbdfb6 in luaD_pcall (L=0xca6fe90, func=0xdb539e <f_call(lua_State*, void*)>,
    u=0x7fffffffda40, old_top=16, ef=0) at rts/lib/lua/src/ldo.cpp:464
0000020 0x0000000000db5484 in lua_pcall (L=0xca6fe90, nargs=0, nresults=0, errfunc=0)
    at rts/lib/lua/src/lapi.cpp:833
#21 0x0000000000730a29 in CLuaHandle::ScopedLuaCall::ScopedLuaCall (this=0x7fffffffdb40,
    handle=0xca6b680, state=0xca6fe90, func=0x18f3a40 <CLuaHandle::DrawWorld()::cmdStr>,
    _nInArgs=0, _nOutArgs=0, _errFuncIdx=0, _popErrFunc=false) at rts/Lua/LuaHandle.cpp:453
#22 0x0000000000730e58 in CLuaHandle::RunCallInTraceback (this=0xca6b680,
    hs=0x18f3a40 <CLuaHandle::DrawWorld()::cmdStr>, inArgs=0, outArgs=0, errFuncIndex=0,
---Type <return> to continue, or q <return> to quit---
    tracebackMsg=..., popErrorFunc=false) at rts/Lua/LuaHandle.cpp:519
#23 0x0000000000730f1e in CLuaHandle::RunCallInTraceback (this=0xca6b680, hs=..., inArgs=0,
    outArgs=0, errFuncIndex=0, popErrFunc=false) at rts/Lua/LuaHandle.cpp:529
0000024 0x00000000007406ba in CLuaHandle::RunCallIn (this=0xca6b680, hs=..., inArgs=0, outArgs=0)
    at rts/Lua/LuaHandle.h:425
#25 0x00000000007406fe in CLuaHandle::RunCallInUnsynced (this=0xca6b680, hs=..., inArgs=0,
    outArgs=0) at rts/Lua/LuaHandle.h:432
0000026 0x0000000000739490 in CLuaHandle::DrawWorld (this=0xca6b680) at rts/Lua/LuaHandle.cpp:2112
0000027 0x0000000000c3ade0 in CEventHandler::DrawWorld (this=0x1943940 <eventHandler>)
    at rts/System/EventHandler.cpp:414
#28 0x00000000009c04dd in CWorldDrawer::Draw (this=0x55f6020) at rts/Rendering/WorldDrawer.cpp:213
0000029 0x000000000059bbb4 in CGame::Draw (this=0x22a1970) at rts/Game/Game.cpp:1288
#30 0x0000000000c85e37 in SpringApp::Update (this=0x7fffffffe280) at rts/System/SpringApp.cpp:966
#31 0x0000000000c86092 in SpringApp::Run (this=0x7fffffffe280) at rts/System/SpringApp.cpp:1043
#32 0x0000000000c566a6 in Run (argc=1, argv=0x7fffffffe458) at rts/System/Main.cpp:64
#33 0x0000000000c56d95 in main (argc=1, argv=0x7fffffffe458) at rts/System/Main.cpp:123

abma

2013-11-28 13:15

administrator   ~0012241

can be reproduced in BA 7.84 with building two bombers, selecting bombers, then press:

a
hold CTRL+ALT
drag a line with left mouse button but hold mouse button
then press an additional mouse button

doesn't work always because sometimes shows an area attack command, sometimes a bomb line command (this is when it crashes when pressing the additional mouse button).

i don't (yet) understand when it shows area attack and when attack line.

abma

2013-11-28 13:17

administrator   ~0012242

ahhh, maybe the window manager conflicts by captureing ALT, not sure.

this is how it always works:

press and hold CTRL. then with a short delay press and hold ALT

Kloot

2013-11-28 14:32

developer   ~0012246

Last edited: 2013-11-28 14:36

can reproduce it now

1) select N>1 bombers
2) press 'a', then press and hold ALT
3) drag line with LMB but do NOT release LMB
4) press RMB

Kloot

2013-11-28 14:48

developer   ~0012247

infinite loop is inside unit_customformations2.lua:DrawFormationDots

Kloot

2013-11-28 14:57

developer   ~0012248

when pressing RMB, the variable 'lineLength' at the top of DrawFormationDots becomes 0 --> 'lengthPerUnit' becomes 0 --> the innermost 'while (currentLength + length >= lengthUnitNext) do' loop never terminates --> not our problem

silentwings

2013-11-28 15:09

reporter   ~0012250

Last edited: 2013-11-28 15:39

Yes, just debugged it and found the exact same thing.

This is 100% a widget bug, I'll fix it. Is there any way to tell which widget is stuck in an infinite loop? If you hadn't said it above, I'd never have found it.

fix: http://imolarpg.dyndns.org/trac/balatest/changeset/1889

Kloot

2013-11-28 15:30

developer   ~0012251

Last edited: 2013-11-28 15:32

From the engine side it is only possible to tell which callin is misbehaving.

On the Lua side the nugget (new official term) handlers can then log the specific widget/gadget for which that callin doesn't return.

silentwings

2013-11-28 15:39

reporter   ~0012252

Last edited: 2013-11-28 15:39

oh, that would be cool, where are those nugget handlers kept?

Kloot

2013-11-28 19:46

developer   ~0012258

widgets.lua & gadgets.lua ;)

Anyway, marking as fixed since the first half of this report was about "calling Spring.GetDefaultCommand inside widget:MousePress causes Spring to crash" which I could never reproduce and BA has worked around and the second half is no longer relevant.

Issue History

Date Modified Username Field Change
2013-10-15 09:07 Leggir New Issue
2013-10-15 09:07 Leggir File Added: infolog.txt
2013-10-15 12:44 TheFatController Note Added: 0011782
2013-10-15 13:39 Kloot Note Added: 0011783
2013-10-15 14:03 abma Note Added: 0011784
2013-10-15 14:03 abma Status new => feedback
2013-10-15 14:05 abma Note Added: 0011785
2013-10-15 14:07 abma Note Edited: 0011785
2013-10-15 14:29 abma Note Added: 0011786
2013-10-15 14:29 abma Product Version 94.1.1+git => 94.1
2013-10-15 14:30 abma Note Edited: 0011786
2013-10-16 23:41 TheFatController File Added: test.lua
2013-10-16 23:44 TheFatController Note Added: 0011820
2013-10-17 00:28 jK Note Added: 0011824
2013-10-17 07:48 Leggir Note Added: 0011825
2013-10-17 07:48 Leggir Status feedback => new
2013-10-29 21:03 abma Note Added: 0011893
2013-10-29 21:28 Kloot Note Added: 0011896
2013-10-29 21:28 Kloot Note Edited: 0011896
2013-10-29 21:32 abma Note Added: 0011897
2013-10-29 21:37 abma Note Edited: 0011897
2013-11-11 15:32 abma Note Added: 0012055
2013-11-11 15:32 abma Product Version 94.1 => 95.0
2013-11-11 15:32 abma Note Edited: 0012055
2013-11-11 15:34 abma Note Added: 0012056
2013-11-11 15:34 abma Assigned To => abma
2013-11-11 15:34 abma Status new => feedback
2013-11-11 15:34 jK Note Added: 0012057
2013-11-11 15:35 jK Note Edited: 0012057
2013-11-11 15:35 jK Note Edited: 0012057
2013-11-11 15:47 abma Note Added: 0012058
2013-11-11 15:49 abma Note Edited: 0012058
2013-11-11 15:51 abma Note Edited: 0012058
2013-11-11 15:58 abma Note Added: 0012062
2013-11-11 16:01 abma Status feedback => new
2013-11-11 16:01 abma Target Version => 96.0
2013-11-11 16:03 jK Note Added: 0012064
2013-11-11 16:09 abma Note Added: 0012065
2013-11-11 16:10 abma Note Edited: 0012065
2013-11-18 05:09 abma Assigned To abma =>
2013-11-28 13:02 abma Note Added: 0012239
2013-11-28 13:03 abma Note Edited: 0012239
2013-11-28 13:04 abma Note Added: 0012240
2013-11-28 13:05 abma Summary Hitting side buttons on mouse causes crash. => Hitting side buttons on mouse causes OOM after some time
2013-11-28 13:15 abma Note Added: 0012241
2013-11-28 13:17 abma Note Added: 0012242
2013-11-28 13:18 abma Relationship added related to 0004173
2013-11-28 14:32 Kloot Note Added: 0012246
2013-11-28 14:34 Kloot Note Edited: 0012246
2013-11-28 14:35 Kloot Note Edited: 0012246
2013-11-28 14:36 Kloot Note Edited: 0012246
2013-11-28 14:48 Kloot Note Added: 0012247
2013-11-28 14:57 Kloot Note Added: 0012248
2013-11-28 15:09 silentwings Note Added: 0012250
2013-11-28 15:09 silentwings Note Edited: 0012250
2013-11-28 15:09 silentwings Note Edited: 0012250
2013-11-28 15:10 silentwings Note Edited: 0012250
2013-11-28 15:30 Kloot Note Added: 0012251
2013-11-28 15:30 Kloot Note Edited: 0012251
2013-11-28 15:32 Kloot Note Edited: 0012251
2013-11-28 15:39 silentwings Note Added: 0012252
2013-11-28 15:39 silentwings Note Edited: 0012250
2013-11-28 15:39 silentwings Note Edited: 0012252
2013-11-28 19:46 Kloot Note Added: 0012258
2013-11-28 19:46 Kloot Status new => resolved
2013-11-28 19:46 Kloot Resolution open => fixed
2013-11-28 19:46 Kloot Assigned To => Kloot