Endless loop in Layout::fit_nodes

Bug #1206712 reported by cghislai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Unassigned

Bug Description

While testing the chat overlay using the new renderer, i noticed the game hangs if i try to enter a very long single-word string in the chat box, like "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm". I called the render method with a maximum width, and my guess is that the renderer is stuck while trying to find a breakpoint.

In the while (m_idx < m_all_nodes.size()) loop, m_idx keeps a value of 47 (out of 49), skipping all the the checks and going over again.

Related branches

Revision history for this message
SirVer (sirver) wrote :

does the loop terminate eventually? This is quite a bad bug :/.

Changed in widelands:
importance: Undecided → High
status: New → Incomplete
milestone: none → build18-rc1
Revision history for this message
cghislai (charlyghislain) wrote :

Nope, the loop is stuck.

Changed in widelands:
status: Incomplete → Confirmed
Revision history for this message
cghislai (charlyghislain) wrote :

I put a fix in the fh1 branch

Revision history for this message
SirVer (sirver) wrote :

This should be backported to trunk today.

Revision history for this message
SirVer (sirver) wrote :

I backported this today.

Changed in widelands:
status: Confirmed → Fix Committed
Revision history for this message
SirVer (sirver) wrote :

Released in build-18 rc1.

Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
SirVer (sirver) wrote :

The fix for this bug changed the correctness of the rich text rendering. I fixed in my move_tests branch.

SirVer (sirver)
Changed in widelands:
importance: High → Medium
status: Fix Released → In Progress
milestone: build18-rc1 → build19-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :

It this fixed now?

kaputtnik (franku)
Changed in widelands:
status: In Progress → Triaged
Revision history for this message
GunChleoc (gunchleoc) wrote :

I have tested this again and the FPS does go down a bit, but that might also be due to long calculations, because the FPS will recover.

I would like to see the original fix that changed the correctness, and also the final fix in the move_tests branch - I can't find the branch. Or is this now all in trunk anyway?

Revision history for this message
kaputtnik (franku) wrote :

I played a longer game with janus and couldn't find any delay when entering such long strings.

So i think this bug is fixed somehow. Feel free to reopen it again

Changed in widelands:
status: Triaged → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.