write_HTML failed because it tried to write in the wrong directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
trunk 6149
calling ./widelands --write_HTML=yes --editor generates the following error:
terminate called after throwing an instance of '_wexception'
what(): [/home/
The problem is that it is trying to write in /tribes/barbarians (absolute path) instead of writing in tribes/barbarians (relative path)
this is the backtrace:
#0 0x0012d416 in __kernel_vsyscall ()
#1 0x00508651 in raise () from /lib/tls/
#2 0x0050ba82 in abort () from /lib/tls/
#3 0x0046252f in __gnu_cxx:
from /usr/lib/
#4 0x00460465 in ?? () from /usr/lib/
#5 0x004604a2 in std::terminate() () from /usr/lib/
#6 0x004605e1 in __cxa_throw () from /usr/lib/
#7 0x085a3a0f in RealFSImpl::Write (this=0xbfffd1ac, fname=...,
data=0x995e510, length=30844)
at /home/angelo/
#8 0x086839a4 in basic_FileWrite
fs=..., filename=0x9674b4c "index_
at /home/angelo/
#9 0x087baf07 in Widelands:
directory=...) at /home/angelo/
#10 0x085f0c2f in Tribe_Descr (this=0x91b0da0, tribename=..., egbase=...)
at /home/angelo/
#11 0x085d3964 in Widelands:
this=
at /home/angelo/
#12 0x0848b901 in Editor_
at /home/angelo/
#13 0x08470db8 in WLApplication::run (this=0x8ad46c8)
at /home/angelo/
#14 0x0846f0f9 in main (argc=4, argv=0xbffff484)
at /home/angelo/
Related branches
- SirVer: Approve
-
Diff: 577 lines (+142/-77)11 files modifiedCMakeLists.txt (+7/-4)
src/CMakeLists.txt (+10/-3)
src/economy/test/CMakeLists.txt (+2/-3)
src/economy/test/test_road.cc (+12/-3)
src/economy/test/test_routing.cc (+36/-24)
src/io/filesystem/disk_filesystem.cc (+0/-10)
src/io/filesystem/filesystem.cc (+22/-16)
src/io/filesystem/test/CMakeLists.txt (+2/-3)
src/io/filesystem/test/test_filesystem.cc (+42/-8)
src/scripting/test/CMakeLists.txt (+2/-1)
src/wlapplication.cc (+7/-2)
Changed in widelands: | |
milestone: | none → build17-rc1 |
Confirmed, happens also for me on trunk.