2025-07-21 19:28 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001723Spring engineLuapublic2009-11-14 20:58
ReporterSirMaverick 
Assigned ToAuswaschbar 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.5 
Target VersionFixed in Version 
Summary0001723: infinite loop in rts/Rendering/glFont.cpp
DescriptionUse latest CA (test). Start game and use command "/localwidgetsconfig". Spring will loop in rts/Rendering/glFont.cpp.

The loop is in CglFont::WrapTextConsole. Called from CglFont::WrapInPlace (where is never returns).
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0001730resolvedhoijui endless loop in font rendering code for small screen resolution 
+Relationships

-Notes

~0004300

SirMaverick (reporter)

Last edited: 2009-11-10 19:30

Stack trace:

Program received signal SIGINT, Interrupt.
0x085df311 in std::_List_const_iterator<CglFont::line>::operator!= (this=0xbfffe290, __x=...) at /usr/include/c++/4.3/bits/stl_list.h:254
254 { return _M_node != __x._M_node; }
(gdb) bt
#0 0x085df311 in std::_List_const_iterator<CglFont::line>::operator!= (this=0xbfffe290, __x=...) at /usr/include/c++/4.3/bits/stl_list.h:254
#1 0x085df35a in std::__distance<std::_List_const_iterator<CglFont::line> > (__first=..., __last=...) at /usr/include/c++/4.3/bits/stl_iterator_base_funcs.h:82
#2 0x085df398 in std::distance<std::_List_const_iterator<CglFont::line> > (__first=..., __last=...) at /usr/include/c++/4.3/bits/stl_iterator_base_funcs.h:119
0000003 0x085df3dc in std::list<CglFont::line, std::allocator<CglFont::line> >::size (this=0xbfffe334) at /usr/include/c++/4.3/bits/stl_list.h:764
0000004 0x085da30c in CglFont::WrapTextConsole (this=0xaf0d3d8, words=..., maxWidth=0, maxHeight=71428568) at spring/rts/Rendering/glFont.cpp:1139
0000005 0x085dab0b in CglFont::WrapInPlace (this=0xaf0d3d8, text=..., _fontSize=14, maxWidth=0, maxHeight=1e+09) at spring/rts/Rendering/glFont.cpp:1325
#6 0x08533c9f in LuaFonts::WrapText (L=0x9e54958) at spring/rts/Lua/LuaFonts.cpp:318
#7 0x089ee624 in luaD_precall (L=0x9e54958, func=0x9ed0410, nresults=-1) at spring/rts/lib/lua/src/ldo.cpp:319
#8 0x089f5afd in luaV_execute (L=0x9e54958, nexeccalls=13) at spring/rts/lib/lua/src/lvm.cpp:630
#9 0x089ee7d7 in luaD_call (L=0x9e54958, func=0x9ed0228, nResults=-1) at spring/rts/lib/lua/src/ldo.cpp:377
0000010 0x089f1715 in f_call (L=0x9e54958, ud=0xbfffe920) at spring/rts/lib/lua/src/lapi.cpp:821
#11 0x089eded6 in luaD_rawrunprotected (L=0x9e54958, f=0x89f16eb <f_call>, ud=0xbfffe920) at spring/rts/lib/lua/src/ldo.cpp:116
0000012 0x089edf4b in luaD_pcall (L=0x9e54958, func=0x89f16eb <f_call>, u=0xbfffe920, old_top=136, ef=0) at spring/rts/lib/lua/src/ldo.cpp:463
0000013 0x089f1521 in lua_pcall (L=0x9e54958, nargs=2, nresults=-1, errfunc=0) at spring/rts/lib/lua/src/lapi.cpp:842
0000014 0x08a0699a in luaB_pcall (L=0x9e54958) at spring/rts/lib/lua/src/lbaselib.cpp:377
#15 0x089ee624 in luaD_precall (L=0x9e54958, func=0x9ed0220, nresults=-1) at spring/rts/lib/lua/src/ldo.cpp:319
#16 0x089f5a56 in luaV_execute (L=0x9e54958, nexeccalls=3) at spring/rts/lib/lua/src/lvm.cpp:609
#17 0x089ee7d7 in luaD_call (L=0x9e54958, func=0x9ed01a8, nResults=0) at spring/rts/lib/lua/src/ldo.cpp:377
#18 0x089f1715 in f_call (L=0x9e54958, ud=0xbfffede0) at spring/rts/lib/lua/src/lapi.cpp:821
#19 0x089eded6 in luaD_rawrunprotected (L=0x9e54958, f=0x89f16eb <f_call>, ud=0xbfffede0) at spring/rts/lib/lua/src/ldo.cpp:116
0000020 0x089edf4b in luaD_pcall (L=0x9e54958, func=0x89f16eb <f_call>, u=0xbfffede0, old_top=8, ef=0) at spring/rts/lib/lua/src/ldo.cpp:463
#21 0x089f1521 in lua_pcall (L=0x9e54958, nargs=0, nresults=0, errfunc=0) at spring/rts/lib/lua/src/lapi.cpp:842
#22 0x08537a5a in CLuaHandle::RunCallInTraceback (this=0xa554110, inArgs=0, outArgs=0, errfuncIndex=0, traceback=...) at spring/rts/Lua/LuaHandle.cpp:221
#23 0x08537b82 in CLuaHandle::RunCallInTraceback (this=0xa554110, hs=..., inArgs=0, outArgs=0, errfuncIndex=0) at spring/rts/Lua/LuaHandle.cpp:248
0000024 0x08537c64 in CLuaHandle::RunCallIn (this=0xa554110, hs=..., inArgs=0, outArgs=0) at spring/rts/Lua/LuaHandle.cpp:267
#25 0x085450c1 in CLuaHandle::RunCallInUnsynced (this=0xa554110, hs=..., inArgs=0, outArgs=0) at spring/rts/Lua/LuaHandle.cpp:276
0000026 0x0853effe in CLuaHandle::Update (this=0xa554110) at spring/rts/Lua/LuaHandle.cpp:1178
0000027 0x088cadc0 in CEventHandler::Update (this=0x8bec6e0) at spring/rts/System/EventHandler.cpp:361
#28 0x083389ca in CGame::Draw (this=0x9135360) at spring/rts/Game/Game.cpp:3104
0000029 0x088bdfc8 in SpringApp::Update (this=0xbffff520) at spring/rts/System/SpringApp.cpp:890
#30 0x088c61c9 in SpringApp::Run (this=0xbffff520, argc=2, argv=0xbffff604) at spring/rts/System/SpringApp.cpp:978
#31 0x088f3809 in Run (argc=2, argv=0xbffff604) at spring/rts/System/Main.cpp:111
#32 0x088f3864 in main (argc=184834248, argv=0xb045868) at spring/rts/System/Main.cpp:127

~0004301

SirMaverick (reporter)

Line numbers in spring/rts/Rendering/glFont.cpp might differ due to additional logOutput.
I used fd4ecd3d47212af23fbde8a7607ddc96f09f70e0 from 0.80.5-branch.

~0004328

hoijui (reporter)

most likely fixed by the same commit that fixed 1730.
i was not able to reproduce this now (though i did not try before the fix).
safest would be, if you try again, SirMaverick, as it might depend on some widget you have and i do not.

~0004330

SirMaverick (reporter)

Yes, seems fixed.
+Notes

-Issue History
Date Modified Username Field Change
2009-11-10 19:28 SirMaverick New Issue
2009-11-10 19:29 SirMaverick Note Added: 0004300
2009-11-10 19:30 SirMaverick Note Edited: 0004300
2009-11-10 19:32 SirMaverick Note Added: 0004301
2009-11-13 13:52 Kloot Relationship added related to 0001730
2009-11-14 11:18 hoijui Note Added: 0004328
2009-11-14 11:18 hoijui Status new => feedback
2009-11-14 20:26 SirMaverick Note Added: 0004330
2009-11-14 20:58 Auswaschbar Status feedback => resolved
2009-11-14 20:58 Auswaschbar Resolution open => fixed
2009-11-14 20:58 Auswaschbar Assigned To => Auswaschbar
+Issue History