[LINUX] assertion `!m_techs.empty()' failed

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
mikko.ohtamaa
Space Krill
Posts: 2
Joined: Tue Jul 24, 2007 1:45 pm

[LINUX] assertion `!m_techs.empty()' failed

#1 Post by mikko.ohtamaa »

Following the instructions in FO/README.txt, there appears to be a some problem with paths, preventing a proper start-up:

Code: Select all

moo@hacker:~/test/freeorion$ pwd
/home/moo/test/freeorion

Code: Select all

moo@hacker:~/test/freeorion$ strace -e trace=file ./freeorion
...
open("/home/moo/test/freeorion/DejaVuSans.ttf", O_RDONLY) = 10
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc8d0) = -1 ENOENT (No such file or directory)
stat64("/home/moo/test/share/freeorion", 0xbfafc6e0) = -1 ENOENT (No such file or directory)
open("/home/moo/freeorion/default/techs.txt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
freeorion: universe/Tech.cpp:437: std::string TechManager::FindIllegalDependencies(): Assertion `!m_techs.empty()' failed.
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
Process 7395 detached


User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#2 Post by kroddn »

This may re related to a prior installation. Please check for

Code: Select all

/home/moo/.freeorion
and delete/move this directory.

Another problem I saw is, that an existing "bin" directory at the same level as the freeorion-dir leads to some problems in finding the default directory. Do you have a dir /home/moo/test/bin or /home/moo/bin ?

I opened a feature-request for solving such problems, but tzlaine does not see any necessarity for that:
http://sourceforge.net/tracker/index.ph ... tid=544945

If your problems persist, please join irc!

/Edit Kroddn: if more linux-users are planning to use this version, i would create a Loki-Installer, which lets the user "install" the game.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: assertion `!m_techs.empty()' failed

#3 Post by kroddn »

This bug is often seen if a new version of the game is installer over an old version.

The statically linked Linux-Version has a wrapper-file "freeorion" which cares about choosing the right data-path.

If you use you own compiled and/or installed version, than after an upgrade you should delete $HOME/.freeorion

Code: Select all

rm -rf $HOME/.freeorion

Post Reply