Not logged inOpenClonk Forum
Up Topic General / Help and Questions / openclonk crashing on save
- - By Anonymous [fr] Date 2019-04-07 21:30
Hello everybody,

I have been diving again in games now my son is tall enough to play. I installed him a computer with Debian  8.11, 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1
The best game I found is Openclonk and we love to play together. The version that came with Debian is Openclonk 5.5.1-2.
The computer cannot do better and my budget cannot do a better computer!
As the problem happends on an old version, I don't know if I should post a bugrepport or not.
Anyway, I searched on the net but didn't find any answer to my problem.

The system
Intel(R) Core(TM) i3 CPU       M 380  @ 2.53GHz
HD Graphics   Arrandale      8086:0046

The problem
When we try to save the game (single player), Openclonk crashes (whel I press the diskette with the number).

I hope I gave enough infos to let you have a clue of the possible cause.
By advance thank you,
Best regards

If launched from user's command line, it says the same as in the log:

[21:45:37] OpenClonk
[21:45:37] Version: 5.5.1 linux-x86_64 (fd8b81c33e09)
[21:45:37] ExePath: "/usr/games/"
[21:45:37] SystemDataPath: "/usr/share/games/openclonk/"
[21:45:37] UserDataPath: "/home/louca/.clonk/openclonk/"
[21:45:37] Command line: openclonk
[21:45:37] WARNING: Engine without Gamepad support
[21:45:37] Loading graphics...
[21:45:38] SDL_mixer runtime version is 1.2.12 (compiled with 1.2.12)
[21:45:55] Scenario: /usr/share/games/openclonk//Missions.ocf/DeadlyGrotto.ocs
[21:45:55] Scenario uses specified object definitions.
[21:45:55] Loading extras...
[21:45:55] Loading graphics...
[21:45:56] Loading object definitions:
[21:45:56] Objects.ocd...
[21:46:01]    286 definitions loaded.
[21:46:01] DeadlyGrotto.ocs...
[21:46:01]    3 definitions loaded.
[21:46:01] C4AulScriptEngine linked - 50927 lines, 0 warnings, 0 errors
[21:46:01] Texture table holds 32 entries.
[21:46:02] 32 textures loaded.
[21:46:02] 22 materials loaded.
[21:46:02] Creating landscape...
[21:46:03]   gl: Texturing uses 32 slots at 512x512, 6 levels (44 MB total)
[21:46:03]   gl: Shader 1 linked successfully
[21:46:04] Placing environment objects...
[21:46:04] Local music file: /usr/share/games/openclonk//Music.ocg
[21:46:04] Music: IslandDreams.ogg
[21:46:04] Game started.
[21:46:04] Player join: looca
[21:46:32] Saving game...
[21:46:32] Synchronizing local player files...
[21:46:32] Saving player file looca.ocp...
*** Error in `openclonk': double free or corruption (out): 0x000055c355867ac0 ***
5.5.1: Caught signal SIGABRT
zsh: exit 1     openclonk
Parent - - By Luchs Date 2019-04-07 22:10
Hello Eric,

yeah, that processor (or rather the integrated GPU) is indeed too old to run current OpenClonk versions. I think OC 6 is the last version before we bumped the GPU requirements. I don't know whether that makes any difference with the bug you're seeing, but it might be worth a try. You'll probably have to compile it yourself, though. Here's the download archive.

In any case, the stack trace you posted indicates that the crash is somewhere in the graphics driver code (i965_dri) while creating a screenshot for the save game. That could mean that we're using the graphics APIs incorrectly or it could be a bug in the graphics driver. Either way, this is unfortunately not something we can diagnose properly from just the stack trace, sorry.

As a workaround, in case you're set up to compile OpenClonk, you could remove the code that creates that save game screenshot. It's in src/game/C4Game.cpp, function C4Game::SaveGameTitle. If you just add return false; as the first line of that function, it should skip the crashing code with no other negative effect.

Good luck!
Parent - - By Anonymous [fr] Date 2019-04-08 22:42
Great, thank you a lot!
This is what I have tried but gave up. I was upset not beeing able to determine correctly what were the correct packages to install as the list is not fully explicit for a compiling noob, especially regarding to g++ as there isn't a package directly named so. I did'nt compile since a while...
But I'll give it a new try!
I'll be back with some news.
Parent - - By Luchs Date 2019-04-08 23:23 Edited 2019-04-08 23:25
I think under Debian you could try running apt-get build-dep openclonk which will install all the packages used to build the openclonk package. I'm not sure whether we added any dependencies between OC 5.5 and 6, but it should be a good start. To get the compiler g++, just install the build-essential package group.

We also have a short tutorial on compiling OpenClonk in the wiki, but note that the list of dependencies there is for the current version and will be slightly different for 5.5/6.
Parent - By Anonymous [fr] Date 2019-04-09 22:48
Hi Luchs,

Wonderfull, somuch help in so few lines. Sincerely thank you greatly!
It compiled like a charm (both 5.5 and 6.1). This is already great. And it runs! But saving is still making it crash.
I made the modification in the function as you said and it is compiling again for now.
I'll give you news.
Parent - - By Anonymous [fr] Date 2019-04-11 21:05
Everything working perfectly, saving too, thank to the correction into c4game.cpp. Thank you for that and also for this beautifull and peacefull game.
I would suggest you to ad somthing about the "make install" final command at the end of the wiki.
Best regards
Parent - By Luchs Date 2019-04-11 22:21
Awesome, I'm glad to hear that :)

Thanks for the feedback regarding the wiki page, I added a short section on installing now.
Up Topic General / Help and Questions / openclonk crashing on save

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill