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,

Intro
###
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
Eric

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
openclonk(+0x19700a)[0x55c3477fc00a]
openclonk(+0x197085)[0x55c3477fc085]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf890)[0x7f8612ae4890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f860e7ef067]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f860e7f0448]
/lib/x86_64-linux-gnu/libc.so.6(+0x731b4)[0x7f860e82d1b4]
/lib/x86_64-linux-gnu/libc.so.6(+0x7898e)[0x7f860e83298e]
/lib/x86_64-linux-gnu/libc.so.6(+0x79696)[0x7f860e833696]
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so(+0x2fc2d5)[0x7f8602e452d5]
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so(+0x2f81bf)[0x7f8602e411bf]
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so(+0x1149bd)[0x7f8602c5d9bd]
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so(+0x3000c7)[0x7f8602e490c7]
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so(+0x1150e4)[0x7f8602c5e0e4]
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so(+0x115342)[0x7f8602c5e342]
openclonk(_ZN9C4Surface8GetPixDwEiib+0x33f)[0x55c3478d453f]
openclonk(_ZN9C4Surface6BltPixEiiPS_iib+0x225)[0x55c3478d4f75]
openclonk(_ZN6C4Draw10BlitSimpleEP9C4SurfaceiiiiS1_iiiib+0x179)[0x55c3478bec79]
openclonk(_ZN6C4Draw5Blit8EP9C4SurfaceiiiiS1_iiiibPK14C4BltTransform+0x618)[0x55c3478bf388]
openclonk(_ZN6C4Draw12BlitUnscaledEP9C4SurfaceffffS1_ffffbPK14C4BltTransform+0xb10)[0x55c3478bfeb0]
openclonk(_ZN6C4Game13SaveGameTitleER7C4Group+0x1a9)[0x55c34787a349]
openclonk(_ZN18C4GameSaveSavegame14SaveComponentsEv+0x29)[0x55c34783bca9]
openclonk(_ZN10C4GameSave4SaveER7C4Groupb+0x195)[0x55c347840455]
openclonk(_ZN10C4GameSave4SaveEPKc+0xf0)[0x55c347840760]
openclonk(_ZN6C4Game9QuickSaveEPKcS1_b+0x21a)[0x55c34787a7ea]
openclonk(_ZN10C4MainMenu11MenuCommandEPKcb+0x602)[0x55c34791fef2]
openclonk(+0x2be2ee)[0x55c3479232ee]
openclonk(_ZN5C4GUI6Screen10MouseInputEiiijPNS_6DialogEP10C4Viewport+0x2f8)[0x55c3478fc378]
openclonk(_ZN5C4GUI6Screen9MouseMoveEiiijP10C4Viewport+0x5c)[0x55c3478fc95c]
openclonk(_Z15OnButtonReleaseP10_GtkWidgetP15_GdkEventButtonPv+0x45)[0x55c347803ff5]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x132a3f)[0x7f861108fa3f]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x145)[0x7f860f91a245]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21f6c)[0x7f860f92bf6c]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xae5)[0x7f860f934285]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x8f)[0x7f860f9349df]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x249d0c)[0x7f86111a6d0c]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc4)[0x7f861108e184]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x3ab)[0x7f861108e61b]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5ab6c)[0x7f8610d01b6c]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x24d)[0x7f860f644c5d]
openclonk(_ZN10C4GLibProc7ExecuteEiP6pollfd+0x6d)[0x55c34780365d]
openclonk(_ZN12StdScheduler15DoScheduleProcsEi+0x38f)[0x55c347b34b8f]
openclonk(_ZN12StdScheduler13ScheduleProcsEi+0x14e)[0x55c347b33cfe]
openclonk(_ZN13C4AbstractApp3RunEv+0x1d)[0x55c347ab69ad]
openclonk(main+0x139)[0x55c3477f27e9]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f860e7dbb45]
openclonk(+0x196c8c)[0x55c3477fbc8c]
zsh: exit 1     openclonk
------------------------------------------------------------------------------------------------------
Reply
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.
Reply
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.
Reply
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
Eric
Reply
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