Widelands crashes due to economy error

Bug #1217114 reported by Martin Buchwald
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
widelands
Expired
Medium
Unassigned

Bug Description

I am playing bzr6726[trunk](Release) on Windows 7 and the map "Trident of Fire" in scenario mode.

The error text is as follows:
[c:/data/bzr/widelands/trunk/src/economy/economy.cc:651] Economy::find_best_supply: COULD NOT FIND A ROUTE!

Tags: crash economy
Revision history for this message
Martin Buchwald (martinbuchwald) wrote :
Revision history for this message
Martin Buchwald (martinbuchwald) wrote :

Here is the replay file

Revision history for this message
Nasenbaer (nasenbaer) wrote :

This is just guessing from a quick look on the game, however it seems the script of the map breaks some connections of one economy dividing it to two economies without sending an update request to them... most likely this is done by breaking a sea connection and therefore splitting a fleet (which in game is still treated as one, but can't find a route from one to another port)

Changed in widelands:
status: New → Confirmed
importance: Undecided → High
milestone: none → build18-rc1
Revision history for this message
SirVer (sirver) wrote :

feel free to retarget, Nasenbaer if you think this is not a crucial thing.

Changed in widelands:
assignee: nobody → Nasenbaer (nasenbaer)
Revision history for this message
Nasenbaer (nasenbaer) wrote :

I will take a closer look at this issue in the next few days (or at least try to ;) )

Revision history for this message
Nasenbaer (nasenbaer) wrote :

Well... my guess was false. :-/

@ Martin Buchwald: unfortunally your replay is incomplete therefore I cannot open and use it. Can you please upload the missing wgf file or tell us a way how to reproduce the bug?

I retried to reproduce based upon my idea of a broken seafaring route, but actually the case where a seafaring route is suddenly broken does not lead to an error (and therefore not to the one described here).

Changed in widelands:
status: Confirmed → Incomplete
Revision history for this message
Martin Buchwald (martinbuchwald) wrote :

Hello Nasenbaer,
I guess that this file was missing. Sorry for that.
Sadly I cannot tell you another way to reproduce the bug.

But I think I know that the separation of fleets didn't take place during the game.
Maybe volcano eruptions habe destroyed roads a couple of times?
The error seems to have occured in an instant when automatical saving took place.

Revision history for this message
Nasenbaer (nasenbaer) wrote :

Thank you Martin Buchwald for uploading the second part of the replay.
Unfortunally the replay does not give a hint of why the error occured. At the moment I can not reproduce the bug and haven't faced the bug myself until now, so I remove the target milestone build18-rc1.

Any idea on how to trigger this bug reliable is very welcome.

Changed in widelands:
assignee: Nasenbaer (nasenbaer) → nobody
importance: High → Medium
milestone: build18-rc1 → none
Revision history for this message
_aD (ad-simplypeachy) wrote :

I've just encountered this on a map (UK_11) without seafaring.
Map: https://wl.widelands.org/maps/uk_11/

Unfortunately I haven't been able to re-create this. I think a builder had just finished building a bakery when the crash happened.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
Revision history for this message
SirVer (sirver) wrote :

this bug seems confirmed, though it seems hard to repro. setting to confirmed for now, but do not target since we have no idea how to trigger it.

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

Setting to incomplete for bug sweeping.

Changed in widelands:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
SirVer (sirver)
Changed in widelands:
status: Expired → Confirmed
tags: added: crash economy
Revision history for this message
tokgeo (g.t) wrote :

I played the map "The pass trough the mountains" with 6 Players (edited). After 3 minutes, the error occured.
Used version: Build 18 (Release)

Revision history for this message
TiborB (tiborb95) wrote :
Changed in widelands:
assignee: nobody → TiborB (tiborb95)
Revision history for this message
TiborB (tiborb95) wrote :

I was probably wrong :( I am taking it back...

Changed in widelands:
assignee: TiborB (tiborb95) → nobody
Revision history for this message
TiborB (tiborb95) wrote :

Well, at least something: in build 18 there was "throw exemption" - it was removed and replaced with simple log(). I think throw exemption was overkill and game is able to cope with situation when road is not found, though it should not happen, because every two flags in single economy must be connectable by roads&ships...

Revision history for this message
GunChleoc (gunchleoc) wrote :

I just played a long game of Trident of Fire, and no crash.

Revision history for this message
GunChleoc (gunchleoc) wrote :

I played a game with the map from #14 in Build 18 for a while and encountered no problems.

There will be some changes to economy and routing soon anyway, so I'm closing this bug.

Changed in widelands:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
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.