wordwrap - game crash

Bug #1530723 reported by TiborB
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
widelands
Fix Released
High
Unassigned

Bug Description

I just got this game crash:

widelands: /var/widelands/BZR/trunk/src/graphic/wordwrap.cc:151: void UI::WordWrap::compute_end_of_line(const string&,
std::__cxx11::basic_string<char>::size_type, std::__cxx11::basic_string<char>::size_type&,
std::__cxx11::basic_string<char>::size_type&, uint32_t): Assertion `m_wrapwidth > safety_margin' failed.

It is trunk is few days old - I cannot get the number.

If I will be able to reproduce it, I will attach the savegame (but I doubt it)

The crash hapesn in the game summary window.

Tags: crash ui

Related branches

TiborB (tiborb95)
tags: added: ui
Revision history for this message
GunChleoc (gunchleoc) wrote :

Do you remember what you were looking at? Did you just open a window, maybe?

tags: added: crash
Revision history for this message
TiborB (tiborb95) wrote :

No I dont remember at all....

Revision history for this message
GunChleoc (gunchleoc) wrote :

So, we need to keep an eye out.... it must be a Multiline Textarea causing the problem somewhere, so it might not be related to a specific game, but to a window opened.

Revision history for this message
TiborB (tiborb95) wrote :

Could it be a message window that just had to pop up? Because I dont remember that I was just opening any window. But I am not sure at all...

And I was just lucky running it from console. Otherwise it would be completely unexplained crash...

Revision history for this message
TiborB (tiborb95) wrote :

Right now I got the crash again - what is interesting it was completely "unattended" game - AI only and I am sure I left no window opened.

Perhaps the 4:00:00 window?

Revision history for this message
TiborB (tiborb95) wrote :

Yes, I can confirm ow, it was that 4:00:00 window...

Revision history for this message
GunChleoc (gunchleoc) wrote :

Thanks for tracking this down!

description: updated
Changed in widelands:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
kaputtnik (franku) wrote :

I got this crash when winning the game. Is this the same window as the 4hrs window?

Attaching a save game. Just attack the barbarian tower ... short after conquer the game crashes.

Revision history for this message
TiborB (tiborb95) wrote :

I get this crash always, when 4:00:00 window is to be shown. On the console I can see something like this:

NetHost::report_result(5, 0, win_condition=Collectors;win_condition_version=2;tribe=atlanteans;score=61)
NetHost::report_result(2, 0, win_condition=Collectors;win_condition_version=2;tribe=atlanteans;score=64)
NetHost::report_result(6, 0, win_condition=Collectors;win_condition_version=2;tribe=barbarians;score=69)
NetHost::report_result(3, 0, win_condition=Collectors;win_condition_version=2;tribe=atlanteans;score=101)
NetHost::report_result(4, 0, win_condition=Collectors;win_condition_version=2;tribe=empire;score=118)
widelands: /var/widelands/ai_ship_tweaks/src/graphic/wordwrap.cc:151: void UI::WordWrap::compute_end_of_line(const string&, std::basic_string<char>::size_type, std::basic_string<char>::size_type&, std::basic_string<char>::size_type&, uint32_t): Assertion `m_wrapwidth > safety_margin' failed.

Of course some play modes does not initiate such window, I usually play default mode...

Revision history for this message
kaputtnik (franku) wrote :

The savegame provided is played with Autotcrat mode and the error is the same, no former suspicious output.

Revision history for this message
TiborB (tiborb95) wrote :

Maybe it does not need to collect points in autocrat mode, lets wait for GunChleoc...

Revision history for this message
GunChleoc (gunchleoc) wrote :

#8: Yes, it's the same window.

The crash will be in one of the result messages, which are different for each win condition.

GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
milestone: none → build19-rc1
wl-zocker (wl-zocker)
summary: - worldwrap - game crash
+ wordwrap - game crash
SirVer (sirver)
Changed in widelands:
status: In Progress → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
assignee: GunChleoc (gunchleoc) → 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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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