FreeOrion crashes on selecting Load Game

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

Message
Author
def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

FreeOrion crashes on selecting Load Game

#1 Post by def-mornahan »

Was working fine on the release in Ubuntu 18.04 LTS (0.4.7?) up until today, when I ran some updates. Now it crashes whenever I try to load a game. The error was simply
$ freeorion &
LLVM ERROR: out of memory
Aborted (core dumped)

I found the Ubuntu PPA for 0.4.8 and installed that. The error persists. I hit Load Game from the intro screen, or if I start a new game from the options menu, and the game immediately crashes with that message.

The packages I updated today (sorry for the long list) from /var/log/apt/history.log:

Start-Date: 2019-02-02 13:46:22
Commandline: /usr/bin/unattended-upgrade
Upgrade: avahi-autoipd:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:46:31

Start-Date: 2019-02-02 13:46:34
Commandline: /usr/bin/unattended-upgrade
Upgrade: avahi-daemon:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:46:41

Start-Date: 2019-02-02 13:46:43
Commandline: /usr/bin/unattended-upgrade
Upgrade: avahi-utils:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:46:48

Start-Date: 2019-02-02 13:46:50
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox:amd64 (64.0+build3-0ubuntu0.18.04.1, 65.0+build2-0ubuntu0.18.04.1)
End-Date: 2019-02-02 13:47:00

Start-Date: 2019-02-02 13:47:03
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox-locale-en:amd64 (64.0+build3-0ubuntu0.18.04.1, 65.0+build2-0ubuntu0.18.04.1)
End-Date: 2019-02-02 13:47:04

Start-Date: 2019-02-02 13:47:07
Commandline: /usr/bin/unattended-upgrade
Upgrade: libavahi-client3:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:47:10

Start-Date: 2019-02-02 13:47:13
Commandline: /usr/bin/unattended-upgrade
Upgrade: libavahi-common-data:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:47:14

Start-Date: 2019-02-02 13:47:17
Commandline: /usr/bin/unattended-upgrade
Upgrade: libavahi-common3:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:47:19

Start-Date: 2019-02-02 13:47:21
Commandline: /usr/bin/unattended-upgrade
Upgrade: libavahi-core7:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:47:23

Start-Date: 2019-02-02 13:47:25
Commandline: /usr/bin/unattended-upgrade
Upgrade: libavahi-glib1:amd64 (0.7-3.1ubuntu1.1, 0.7-3.1ubuntu1.2)
End-Date: 2019-02-02 13:47:27

Start-Date: 2019-02-02 13:47:30
Commandline: /usr/bin/unattended-upgrade
Upgrade: libvncclient1:amd64 (0.9.11+dfsg-1ubuntu1, 0.9.11+dfsg-1ubuntu1.1)
End-Date: 2019-02-02 13:47:31

Start-Date: 2019-02-02 13:47:34
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-libc-dev:amd64 (4.15.0-43.46, 4.15.0-45.48)
End-Date: 2019-02-02 13:47:36

Start-Date: 2019-02-02 13:47:39
Commandline: /usr/bin/unattended-upgrade
Upgrade: openjdk-8-jre:amd64 (8u191-b12-0ubuntu0.18.04.1, 8u191-b12-2ubuntu0.18.04.1), openjdk-8-jre-headless:amd64 (8u191-b12-0ubuntu0.18.04.1, 8u191-b12-2ubuntu0.18.04.1)
End-Date: 2019-02-02 13:47:48

Start-Date: 2019-02-02 13:47:50
Commandline: /usr/bin/unattended-upgrade
Install: linux-headers-4.15.0-45:amd64 (4.15.0-45.48, automatic), linux-modules-extra-4.15.0-45-generic:amd64 (4.15.0-45.48, automatic), linux-modules-4.15.0-45-generic:amd64 (4.15.0-45.48, automatic), linux-headers-4.15.0-45-generic:amd64 (4.15.0-45.48, automatic), linux-image-4.15.0-45-generic:amd64 (4.15.0-45.48, automatic)
Upgrade: linux-headers-generic:amd64 (4.15.0.43.45, 4.15.0.45.47), linux-image-generic:amd64 (4.15.0.43.45, 4.15.0.45.47), linux-generic:amd64 (4.15.0.43.45, 4.15.0.45.47)
End-Date: 2019-02-02 13:49:02

Start-Date: 2019-02-02 19:07:28
Commandline: apt upgrade
Requested-By: paulus (1000)
Install: libwayland-egl1:amd64 (1.16.0-1ubuntu1.1~18.04.1, automatic), libllvm7:amd64 (1:7-3~ubuntu0.18.04.1, automatic)
Upgrade: libgles2-mesa:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), update-manager-core:amd64 (1:18.04.11.8, 1:18.04.11.9), libdrm-nouveau2:amd64 (2.4.91-2, 2.4.95-1~18.04.1), libapt-inst2.0:amd64 (1.6.6ubuntu0.1, 1.6.8), libegl-mesa0:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libcairo-gobject2:amd64 (1.15.10-2, 1.15.10-2ubuntu0.1), grub-common:amd64 (2.02-2ubuntu8.9, 2.02-2ubuntu8.10), apt:amd64 (1.6.6ubuntu0.1, 1.6.8), libkmod2:amd64 (24-1ubuntu3.1, 24-1ubuntu3.2), libglapi-mesa:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), snapd:amd64 (2.34.2+18.04, 2.37.1+18.04), google-chrome-stable:amd64 (71.0.3578.98-1, 72.0.3626.81-1), libxatracker2:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), grub2-common:amd64 (2.02-2ubuntu8.9, 2.02-2ubuntu8.10), libegl1-mesa:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), ubuntu-release-upgrader-qt:amd64 (1:18.04.29, 1:18.04.30), libapt-pkg5.0:amd64 (1.6.6ubuntu0.1, 1.6.8), grub-pc:amd64 (2.02-2ubuntu8.9, 2.02-2ubuntu8.10), kmod:amd64 (24-1ubuntu3.1, 24-1ubuntu3.2), libgbm1:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libwayland-client0:amd64 (1.14.0-2, 1.16.0-1ubuntu1.1~18.04.1), grub-pc-bin:amd64 (2.02-2ubuntu8.9, 2.02-2ubuntu8.10), libdrm-amdgpu1:amd64 (2.4.91-2, 2.4.95-1~18.04.1), python3-distupgrade:amd64 (1:18.04.29, 1:18.04.30), python3-update-manager:amd64 (1:18.04.11.8, 1:18.04.11.9), ubuntu-release-upgrader-core:amd64 (1:18.04.29, 1:18.04.30), tar:amd64 (1.29b-2, 1.29b-2ubuntu0.1), libwayland-egl1-mesa:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libdrm2:amd64 (2.4.91-2, 2.4.95-1~18.04.1), apt-utils:amd64 (1.6.6ubuntu0.1, 1.6.8), libgl1-mesa-dri:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), thermald:amd64 (1.7.0-5ubuntu1, 1.7.0-5ubuntu2), libgl1-mesa-glx:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libdrm-intel1:amd64 (2.4.91-2, 2.4.95-1~18.04.1), libdrm-radeon1:amd64 (2.4.91-2, 2.4.95-1~18.04.1), mesa-vdpau-drivers:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libcairo2:amd64 (1.15.10-2, 1.15.10-2ubuntu0.1), libwayland-server0:amd64 (1.14.0-2, 1.16.0-1ubuntu1.1~18.04.1), mesa-va-drivers:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libglx-mesa0:amd64 (18.0.5-0ubuntu0~18.04.1, 18.2.2-0ubuntu1~18.04.1), libdrm-common:amd64 (2.4.91-2, 2.4.95-1~18.04.1), libwayland-cursor0:amd64 (1.14.0-2, 1.16.0-1ubuntu1.1~18.04.1)
End-Date: 2019-02-02 19:09:29

o01eg
Programmer
Posts: 2004
Joined: Sat Dec 10, 2011 5:46 am

Re: FreeOrion crashes on selecting Load Game

#2 Post by o01eg »

def-mornahan wrote: Sun Feb 03, 2019 12:52 am Was working fine on the release in Ubuntu 18.04 LTS (0.4.7?) up until today, when I ran some updates. Now it crashes whenever I try to load a game. The error was simply
$ freeorion &
LLVM ERROR: out of memory
Aborted (core dumped)
Could you found core dump and upload it somewhere?
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: FreeOrion crashes on selecting Load Game

#3 Post by Geoff the Medio »

Can you make sure there are no zombie freeorion or freeoriond processess running?

And also attach freeorion.log and freeoriond.log from immediately after a crash (having deleted them before starting the program)? They should be in ~/.local/share/freeorion/

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#4 Post by def-mornahan »

Code: Select all

pgrep freeorion
does not display anything between runs. I have checked that two PIDs do come up when I run this command while freeorion is running.

I have deleted both freeorion.log and freeoriond.log, then replicated the error. Only freeorion.log was regenerated. I have attached it. (I don't see anything that my untutored eyes identify as helpful...)

I found

Code: Select all

/var/crash/_usr_lib_freeorion_freeorion.1000.crash
and made it available here: https://1drv.ms/u/s!ApknW2-syaCYrF1hNc0k-MXH8VWJ
Attachments
freeorion.log
(72.46 KiB) Downloaded 288 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: FreeOrion crashes on selecting Load Game

#5 Post by Geoff the Medio »

The end of the log has

Code: Select all

18:53:57.281925 [debug] client : HumanClientApp.cpp:721 : HumanClientApp::LoadSinglePlayerGame
18:53:57.283558 [debug] client : SaveFileDialog.cpp:591 : SaveFileDialog::FilterColumns: Visible columns: 5
18:53:57.283913 [debug] client : SaveFileDialog.cpp:542 : SaveFileDialog::FindLocalRelativeDirs name: auto valid UTF-8: true
18:53:57.284025 [debug] client : SaveGamePreviewUtils.cpp:66 : LoadSaveGamePreviewData: Loading preview from: /home/paulus/.local/share/freeorion/save/save-20170129_182348.sav
18:53:57.284114 [debug] client : SaveGamePreviewUtils.cpp:93 : Loaded preview with: 1 human players
18:53:57.284126 [debug] client : SaveGamePreviewUtils.cpp:101 : LoadSaveGamePreviewData: Successfully loaded preview from: /home/paulus/.local/share/freeorion/save/save-20170129_182348.sav
18:53:57.284152 [debug] client : SaveGamePreviewUtils.cpp:66 : LoadSaveGamePreviewData: Loading preview from: /home/paulus/.local/share/freeorion/save/save-20190121_004057.sav
which makes me thing it's crashing when trying to load a save file to populate the file select box. Don't know why this would happen... Could you post a listing of the save directory contents, and if they aren't too big, the two save files mentioned in that log? You could also try moving those saves somewhere else, and just having the single save file you want to load in a directory, and try loading that.

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#6 Post by def-mornahan »

I cleared out the ~/.local/share/freeorion/save directory by copying everything to .local/share/freeorion/save_backup. Then I copied one autosave file back to save/auto. I was able to get to the screen where I could select games to load, but when I selected the auto save and hit OK, the game crashed with the same error as before.

When I copied my latest saved game from the backup back into the main directory, the game crashes immediately when I select Load Game as before.

Then I deleted that saved game and pulled over all my old saved games from whatever version I was playing in Jan/Feb of 2017. With those all, and those alone, in the save directory, the game will let me see the Load Game dialog and the list of saved games with correct information. When I selected the top one and hit OK, the game acted as if it were going to load normally, although it just hung there; the same thing happened with one of the other old saves.

I added a different 2019 saved game, and the immediate crash returns. I am attaching one each of these saves (2017 save, 2019 save, 2019 autosave).


PS: This warning started appearing after I switched to the PPA and 0.4.8:

Code: Select all

[2019-02-04 07:37:50.497550] [0x00007fb893f81800] [info]    Option "resource-dir", was specified on the command line but was not recognized.  It may not be registered yet or could be a typo.
I suppose there is some script file that specifies the "resource-dir" option?
Attachments
def-morn.zip
(1.83 MiB) Downloaded 293 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: FreeOrion crashes on selecting Load Game

#7 Post by Geoff the Medio »

The 2017 save is too old to care about; it's before the current save format and not at all human readable.

The header text sections of both the 2019 saves have

Code: Select all

<freeorion_version>v0.4.7.1 [build ???] CMake</freeorion_version>
in them, but your posted log has:

Code: Select all

18:53:52.408027 [info] client : HumanClientApp.cpp:253 : v0.4.8 ppa-v0.4.8 [build 2018-08-23.26f16b0] CMake
So it appears you're trying to load saves from an older version of FreeOrion with v0.4.8.

The save files themselves aren't old, though, as they have

Code: Select all

<save_time>2019-01-28T21:54:09</save_time>
Do you have multiple versions of FreeOrion installed, perhaps? What's in freeoriond.log if you run freeoriond from the command line, wait a few seconds, then terminate it?

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#8 Post by def-mornahan »

Like I said in the original post, I had the version of freeorion in the Ubuntu 18.04 LTS repository installed when the problem began. The same save file causes the same error in 0.4.7(.1) as it does in 0.4.8.

I will get back on that box and check what freeoriond says.

I'm beginning to suspect this is just a glitch on the hard drive, and I'd better check to see if it's failing.

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#9 Post by def-mornahan »

The relevant line from freeoriond.log seems to be

07:52:47.911217 [info] server : ServerApp.cpp:150 : v0.4.8 ppa-v0.4.8 [build 2018-08-23.26f16b0] CMake

Like I said, I removed 0.4.7(.*) *because* of this error and checked with 0.4.8, although of course that doesn't make any sense now that you've given me another chance to think about it. I expect the save files just got corrupted during all the hard drive activity while I was running updates.

I will install the Ubuntu repository version on my other box and see if the saves cause the same crash there. (I am swapping between two Linux boxes and my macbook.)

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#10 Post by def-mornahan »

Freshly installed 0.4.7.1 from the Ubuntu repository, with the 2019 saved games populated from the first box, dies immediately with a segmentation fault on my other box. (FWIW they are both running Kubuntu.)

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: FreeOrion crashes on selecting Load Game

#11 Post by Oberlus »

With the save folder empty, run freeorion, start a new game and play some turns, save it, exit freeorion and run it again, reload previous save game.
If everything goes fine, then the problem was maybe in the last save files and you'll have to take them as lost.
But better do that with the PPA version (uninstall first the one from the repos).

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#12 Post by def-mornahan »

Yeah, I've given up on the old save games. A shame... that game was going a lot less stressfully than the one I have going on the laptop... Just thought I would leave a bit more information in case anyone else in a similar situation might at least find it somewhat helpful or a useful warning.

def-mornahan
Krill Swarm
Posts: 13
Joined: Wed Feb 01, 2017 5:26 pm

Re: FreeOrion crashes on selecting Load Game

#13 Post by def-mornahan »

Oy vey. I started a Quick Start game, played a few turns, then tried to save. The game crashed and the following went straight to the terminal:

Code: Select all

LLVM ERROR: out of memory
[2019-02-04 11:41:18.987420] [0x00007fd7a4448b80] [info]    AIClientApp exited cleanly for ai client AI_4
[2019-02-04 11:41:18.987583] [0x00007fd79d8d7700] [info]    Client connection disconnected by EOF from server.
[2019-02-04 11:41:18.987865] [0x00007fb90e37cb80] [info]    AIClientApp exited cleanly for ai client AI_6
[2019-02-04 11:41:18.988432] [0x00007fb907807700] [info]    Client connection disconnected by EOF from server.
[2019-02-04 11:41:18.991492] [0x00007f0c9bb68b80] [info]    AIClientApp exited cleanly for ai client AI_2
[2019-02-04 11:41:18.991573] [0x00007f6a81248b80] [info]    AIClientApp exited cleanly for ai client AI_1
[2019-02-04 11:41:18.993921] [0x00007f6a7a6d7700] [info]    Client connection disconnected by EOF from server.
[2019-02-04 11:41:18.997781] [0x00007f0c94ff7700] [info]    Client connection disconnected by EOF from server.
[2019-02-04 11:41:18.992021] [0x00007fe3ff464b80] [info]    AIClientApp exited cleanly for ai client AI_3
[2019-02-04 11:41:18.992992] [0x00007f51d884eb80] [info]    AIClientApp exited cleanly for ai client AI_5
Aborted (core dumped)
[2019-02-04 11:41:19.004513] [0x00007f51d1cdf700] [info]    Client connection disconnected by EOF from server.
[2019-02-04 11:41:19.004816] [0x00007f3c73383740] [info]    ServerApp::~ServerApp
[2019-02-04 11:41:19.006212] [0x00007fe3f88ef700] [info]    Client connection disconnected by EOF from server.
[2019-02-04 11:41:19.020323] [0x00007f3c73383740] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.020416] [0x00007f3c73383740] [info]    Server exited cleanly.
[2019-02-04 11:41:19.023577] [0x00007f3c73383740] [info]    Reset id allocators with highest object id = -1 and highest design id = 832
[2019-02-04 11:41:19.066360] [0x00007fe3ff464b80] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.067544] [0x00007fe3ff464b80] [info]    Reset id allocators with highest object id = -1 and highest design id = 668
[2019-02-04 11:41:19.073515] [0x00007f51d884eb80] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.079302] [0x00007f51d884eb80] [info]    Reset id allocators with highest object id = -1 and highest design id = 693
[2019-02-04 11:41:19.074839] [0x00007f0c9bb68b80] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.081760] [0x00007f0c9bb68b80] [info]    Reset id allocators with highest object id = -1 and highest design id = 817
[2019-02-04 11:41:19.076108] [0x00007f6a81248b80] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.076893] [0x00007fb90e37cb80] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.094889] [0x00007f6a81248b80] [info]    Reset id allocators with highest object id = -1 and highest design id = 832
[2019-02-04 11:41:19.095193] [0x00007fb90e37cb80] [info]    Reset id allocators with highest object id = -1 and highest design id = 798
[2019-02-04 11:41:19.098907] [0x00007fd7a4448b80] [info]    Cleaned up FreeOrion Python interface
[2019-02-04 11:41:19.100102] [0x00007fd7a4448b80] [info]    Reset id allocators with highest object id = -1 and highest design id = 603

[1]+  Exit 134                freeorion
I didn't delete the log files again before I started, but there's not a lot of other data in them. Here they are.

I was not able to save the game manually, but it turns out I can select Continue from the main menu and the autosave loads successfully.
Attachments
freeoriond.log
(677.29 KiB) Downloaded 299 times
freeorion.log
(212.6 KiB) Downloaded 287 times

Kirvoss
Space Krill
Posts: 1
Joined: Sat Mar 30, 2019 3:10 am

Re: FreeOrion crashes on selecting Load Game

#14 Post by Kirvoss »

def-mornahan wrote: Mon Feb 04, 2019 4:27 pm Yeah, I've given up on the old save games. A shame... that game was going a lot less stressfully than the one I have going on the laptop... Just thought I would leave a bit more information in case anyone else in a similar situation might at least find it somewhat helpful or a useful warning.
I'm exactly in this same situation, 160 turns into my first game and i tried to save and it crashed, and i tried to load the saved game and got the same error as you(i'm on ubuntu as well), i created an account just to see if this get's resolved because i'm hooked, i cannot find this continue button you speak of

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: FreeOrion crashes on selecting Load Game

#15 Post by Geoff the Medio »

Kirvoss wrote: Sat Mar 30, 2019 3:24 ami cannot find this continue button you speak of
The continue button appears on the main intro screen menu in v0.4.8 if there are saves that can (or appear to be) loadable. It will load the most recent save file. If you have an older version of FreeOrion, or all saves are delete or very corrupted, then the button won't appear.

Post Reply