Currently Online

Latest Posts

Topic: Crash in build19 "A Place to Call Home"

Lokimaros
Avatar
Joined: 2016-10-21, 17:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-27, 16:10
Since I have a new bzr8147 compiled binary, I decided to do the Tutorials and Campaigns, again, to get acquainted with the new stuff and get tips I missed the first time round, or added since.

The Campaign A Place to Call Home now crashes on me, about the time the Quarry in the Northeast finishes being build.

The savegame I've uploaded to my Dropbox. It's called Bar1.1. No need to speed up, it happens fairly quick after the restart. Just a few minutes.

Tell me what more I can do to help with tracking and quashing this bug, as it's been a while for me.
Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3159
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-10-27, 17:26

Looks like there is an image file missing:

Image not found: map:khantrukh.png

Do you have the file:

data/campaigns/bar01.wmf/pics/khantrukh.png

in your data directory?


Busy indexing nil values

Top Quote
Lokimaros
Avatar
Joined: 2016-10-21, 17:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-27, 21:19
> find ~ -name khantrukh.png -print
/home/mazur/.widelands/save/A Place to Call Home (Build a lime kiln and coal economy).wgf/map/pics/khantrukh.png
/home/mazur/.widelands/save/A Place to Call Home (Build two ranger’s huts).wgf/map/pics/khantrukh.png
/home/mazur/.widelands/save/A Place to Call Home (Build a reed yard).wgf/map/pics/khantrukh.png
/home/mazur/.widelands/save/A Place to Call Home (Start building mines on the mountain).wgf/map/pics/khantrukh.png
/home/mazur/.widelands/save/A Place to Call Home (Build a wood hardener).wgf/map/pics/khantrukh.png
mazur@hex [Thu, 27 Oct 2016, 21:14:52] ~/.widelands/save                        
> 


Apparently not in the Bar1.1.wgf directory. An omission when saving the game, then.
But they are there in the distribution:
 root@hex /usr/local/src/widelands-repo/trunk Thu Oct 27 16:29:09
$ find . -name khantrukh.png -print
./data/campaigns/bar02.wmf/pics/khantrukh.png
./data/campaigns/bar01.wmf/pics/khantrukh.png
 root@hex /usr/local/src/widelands-repo/trunk Thu Oct 27 21:15:14
$ cd /usr/local/games/widelands/
 root@hex /usr/local/games/widelands Thu Oct 27 21:22:22
$ find . -name khantrukh.png -print
./data/campaigns/bar02.wmf/pics/khantrukh.png
./data/campaigns/bar01.wmf/pics/khantrukh.png
 root@hex /usr/local/games/widelands Thu Oct 27 21:22:24
$ 
Edited: 2016-10-27, 21:25

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3159
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-10-27, 21:39

My best guess is that something got messed up in your file system, since you created your own install script etc. This certainly doesn't reproduce on a standard setup.


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1857
Ranking
One Elder of Players
Location: Germany
Posted at: 2016-10-27, 22:07

I couldn't confirm this either. Played the scenario and as soon the Quarry in the north east was build no crash.


Top Quote
Lokimaros
Avatar
Joined: 2016-10-21, 17:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-28, 02:03
Suit yourself. Sine the file was not missing from the Automatic saves from the same install, nor from the directory I installed widelands in, _I_ am guessing it's a difference between automated and manual save, the latter evidently missing saving the pics directory,

Anyway, after copying the map/pics directory from one of the automated saves to the Bar1.1 one, I managed to finish the campaign without further todo.

Meanwhile, after an update.sh, cmake still provided no install target, but ninja install worked fine, this time.
Top Quote
Lokimaros
Avatar
Joined: 2016-10-21, 17:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-28, 02:49
But even that is not perfect, yet:

mazur@hex [Fri, 28 Oct 2016, 2:45:15] ~/.widelands/save                         > widelands 
This is Widelands Version  ()
Set home directory: /home/mazur/.widelands
Widelands executable directory: /usr/local/games/widelands/
Adding directory: /usr/local/games/widelands
selected language: (system language)
using locale en_US.UTF-8
terminate called after throwing an instance of 'LuaScriptNotExistingError'
  what():  [../src/scripting/lua_errors.cc:22] The script 'i18n/fonts.lua' was not found!
Abort (core dumped)


I'm thinking there is an inconsistency in whether to use or omit "data" as a sub-directory of the install. (The "missing" file is in data/i18n/, not i18n.)
Edited: 2016-10-28, 02:51

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3159
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-10-28, 07:27

You definitely have a screwed up datadir here. Try running Widelands with the --datadir option.

Our file structure also changed since Build 18, so you might want to clean up your system and make a fresh install - running a daily with the Build18 datadir will not work at all.

If I delete the fonts.lua file, my output looks like this:

gunchleoc@museum:~/sources/widelands/trunk$ ./widelands 
This is Widelands Version bzr8151[trunk] (Release)
Set home directory: /home/gunchleoc/.widelands
Widelands executable directory: /home/gunchleoc/sources/widelands/trunk/
Adding directory: /home/gunchleoc/sources/widelands/trunk/data
selected language: (system language)
using locale gd_GB.UTF-8

Caught exception (of type '25LuaScriptNotExistingError') in outermost handler!
The exception said: [/home/gunchleoc/sources/widelands/trunk/src/scripting/lua_errors.cc:22] The script 'i18n/fonts.lua' was not found!

This should not happen. Please file a bug report on version bzr8151[trunk](Release).
and remember to specify your operating system.

Normal output from running the daily PPA version looks like this:

gunchleoc@museum:~/sources/widelands/trunk$ widelands
This is Widelands Version bzr8155-201610271903 (Release)
Set home directory: /home/gunchleoc/.widelands
Adding directory: /usr/share/games/widelands/data
selected language: (system language)
using locale gd_GB.UTF-8
Graphics: Try to set Videomode 800x600
Graphics: OpenGL: Version "2.1 Mesa 11.2.0"
Graphics: SDL_GL_RED_SIZE is 8

Comparing to your output, I think your line

Adding directory: /usr/local/games/widelands

is missing the data subdir.

If you just want to play current trunk, maybe it would be best to remove your self-compiled version and just to get the daily ppa. https://wl.widelands.org/wiki/Download/#ubuntu-recent-releases-and-derivatives-like-linux-mint-17

Edited: 2016-10-28, 07:36

Busy indexing nil values

Top Quote
Lokimaros
Avatar
Joined: 2016-10-21, 17:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-28, 09:10

GunChleoc wrote: Comparing to your output, I think your line

~~~~ Adding directory: /usr/local/games/widelands ~~~~ is missing the data subdir.

If you just want to play current trunk, maybe it would be best to remove your self-compiled version and just to get the daily ppa. https://wl.widelands.org/wiki/Download/#ubuntu-recent-releases-and-derivatives-like-linux-mint-17

I could do that, but I want to help perfect the game, and clearly the install from compiled source results in the problemette above, which is indeed solved by using --datadir=/usr/lcoal/games/widelands/data/, so why does the binary look in the widelands dir, without adding /data? Are the PPA packagers using a script that does that automatically, so they didn't notice? I mean, either the install should not use the subdir data, or the compiled program should by default add the data subdir from the widelands location. Am I wrong?


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3159
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-10-28, 09:22

What exactly did you to to install it?

The install data dir is defined in our CMake environment, so if you happened to circumvent that, it got screwed up.


Busy indexing nil values

Top Quote