2024-03-29 09:21 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001730Spring engineGeneralpublic2009-11-14 11:11
Reporterhoijui 
Assigned Tohoijui 
PrioritylowSeveritytweakReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.5+git 
Target VersionFixed in Version0.80.5+git 
Summary0001730: endless loop in font rendering code for small screen resolution
DescriptionWhen the X resolution (XResolution in ~/.springrc) for spring (windowed or full-screen) is set to a value of 112 or lower, the game will be caught in an endless loop in:
CglFont::WrapTextConsole()
rts/Rendering/glFont.cpp:1103

It looks like it was trying to fit some text on the screen by adding line breaks to the text, but can not make it fit. maybe one char/word is already too big for one line? (eg. on the load screen)

It would be nice to be able to set the resolution to lower values then this, for headless spring. plus i can imagine, that when using a bigger font-size, the same thing would happen on larger values then 113 even.
Steps To Reproduce* start spring.exe
* resize the window on the X axis to be less then 113 pixels
* start with any start script (eg BA, random Map, NullAI)
spring will get to a line looking like this "[New Thread 0xa8fddb90 (LWP 18452)]", and be caught in an endless loop.
Additional InformationYResolution can be set to 0 without problems, as long as XResolution is >= 113.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0001723resolvedAuswaschbar infinite loop in rts/Rendering/glFont.cpp 
+Relationships

-Notes

~0004327

hoijui (reporter)

fixed by Kloot in commit: 324c8d5957920ab45c8d5d1ea54dab358251be24
thanks! :D
+Notes

-Issue History
Date Modified Username Field Change
2009-11-13 11:26 hoijui New Issue
2009-11-13 13:52 Kloot Relationship added related to 0001723
2009-11-13 22:20 hoijui Description Updated
2009-11-13 22:20 hoijui Steps to Reproduce Updated
2009-11-14 11:11 hoijui Note Added: 0004327
2009-11-14 11:11 hoijui Status new => resolved
2009-11-14 11:11 hoijui Fixed in Version => 0.80.5+git
2009-11-14 11:11 hoijui Resolution open => fixed
2009-11-14 11:11 hoijui Assigned To => hoijui
+Issue History