Crash when EditBox text exceeds maximum width

Bug #1571308 reported by Miroslav Remák
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

/home/miroslavr/Games/widelands/src/graphic/rendertarget.cc:189: void RenderTarget::blitrect(const Point&, const Image*, const Rect&, BlendMode): Assertion `0 <= gsrcrc.y' failed.

This is reproducible with EditBoxes in the "Begin Network Game" menu (nickname & host) and 1024x768 resolution.

Tags: crash ui

Related branches

Revision history for this message
GunChleoc (gunchleoc) wrote :

This happens when the texture size for the text exceeds what GL can handle. I don't think many people will try to have that long a nick or host name, but we should cap this somehow.

Changed in widelands:
status: New → Confirmed
Revision history for this message
Miroslav Remák (miroslavr256) wrote :

By maximum width I mean the width of the edit box. The game crashes when the text's width exceeds the width of the edit box, which doesn't require lengthy input at all. I think this is an alignment issue, but I haven't looked into it.

GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
assignee: nobody → GunChleoc (gunchleoc)
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Confirmed
assignee: GunChleoc (gunchleoc) → nobody
Changed in widelands:
assignee: nobody → Miroslav Remák (miroslavr256)
description: updated
GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → Fix Committed
assignee: Miroslav Remák (miroslavr256) → nobody
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.