Fatal exception with --scenario if file elemental misses

Bug #1232245 reported by fk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Low
Unassigned

Bug Description

Description:
When the file 'elemental' is missing from the map directory, and I issue this command:

./widelands --scenario=~/.widelands/maps/Along\ The\ River.wmf

I get this error:

Fatal exception: [/build/buildd/widelands-17-ppa0-bzr6783/src/profile/profile.cc:722] [] elemental:0: RealFSImpl::Load: problem with file/directory: /home/fred/.widelands/maps/Along The River.wmf/elemental
lastserial: 0

Caught exception (of type '11_wexception') in outermost handler!
The exception said: [/build/buildd/widelands-17-ppa0-bzr6783/src/profile/profile.cc:722] [] elemental:0: RealFSImpl::Load: problem with file/directory: /home/fred/.widelands/maps/Along The River.wmf/elemental

This should not happen. Please file a bug report on version bzr6783-201309270449(Release).

The OS is Kubuntu (12.04 ?)

Tags: crash
fk (fredkuijper)
tags: added: crash
Revision history for this message
SirVer (sirver) wrote :

While this is hardly idea, I do not think this is a bad bug. The commandline is for advanced uses -the map would not be listed in the UI in the game when it can not be preloaded and any exception are caught.

Changed in widelands:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
fk (fredkuijper) wrote :

"the map would not be listed in the UI in the game"

I know, but it is very strange behaviour.

A more intriguing question to me is why that file was missing, including everything else in that directory, but I am unsure whether or how I should file that. I will try to cause that error again. It may have something to do with a failing init script.

Revision history for this message
SirVer (sirver) wrote :

A failing init script should not lead to a failing safe - it will only trigger a warning ideally. A failing safe could be the reason. I saw something similar in the following scenario: Safe a Map with nozip==true, write an extra file into the newly created directory that Widelands is not expecting to be there, try to override the Map -> you get an invalid directory iirc.

The problem is that Widelands should safe into a temporary filename, then rename the old directory, move the new into the place of the old than delete the old directory. Any failure in between should mean no data loss for the user.

Not sure if this is the bug you are talking about of course.

Revision history for this message
fk (fredkuijper) wrote :

"invalid directory iirc"

Yes, I remember that now I see it again, there has been such a message.

Btw. please don't get me wrong about the status of the bug (of this bug report), that priority seems right to me.

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 → Won't Fix
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.