Print console message on illegal --datadir

Bug #1703833 reported by GunChleoc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Unassigned

Bug Description

While starting Widelands from console under Windows while specifying a nonexistent --datadir, Widelands was terminated before showing any GUI and no message shown.

There should be a log message.

I am assuming that the same will happen under other OSses.

Related branches

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I get the following error message on Ubuntu when running Widelands r8400:
Realpath: (null)
widelands: /[path-to-repo]/widelands/src/wlapplication.cc:163: std::__cxx11::string {anonymous}::absolute_path_if_not_windows(const string&): Assertion `rp' failed.

(I seem to remember I filed a similar bug report on some cli options which didn't deal with non-existing directories, couldn't find it at the moment, but there might be similar bugs lurking for other options.)

Changed in widelands:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Did some more digging. I might have been thinking about either bug 1355397 or bug 1150455. Note that the latter talks about the --editor option handling it at the time. To be fair, a warning is still logged, but it also crash with a segfault now, so not sure if that is intended behaviour...

GunChleoc (gunchleoc)
Changed in widelands:
assignee: nobody → GunChleoc (gunchleoc)
status: Triaged → In Progress
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
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.