Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
King Arthur's Gold crashes on start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
WuDDjA
n00b
n00b


Joined: 30 Aug 2005
Posts: 42

PostPosted: Sat Oct 19, 2013 11:48 am    Post subject: King Arthur's Gold crashes on start Reply with quote

I've tried to run the game "King Arthur's Gold" but is crashes on start.
There are also many libpng errors because KAG was compiled with libpng-1.5 and my machine seem to run it with libpng-1.6.
have both libraries installed under lib32.

Is there any ability for me to force KAG to be run with libpng-1.5?

Here's my GDB output:
Code:

leo@XMGGentoo ~/Downloads/Games/kagbeta-linux32-client $ gdb --args ./KAG nolauncher autostart Scripts/autostart.as autoconfig ../autoconfig.cfg
GNU gdb (Gentoo 7.6.1 p2) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/leo/Downloads/Games/kagbeta-linux32-client/KAG...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/leo/Downloads/Games/kagbeta-linux32-client/./KAG nolauncher autostart Scripts/autostart.as autoconfig ../autoconfig.cfg
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
PID: 1128
Starting in directory: /home/leo/Downloads/Games/kagbeta-linux32-client
Changed directory to: /home/leo/Downloads/Games/kagbeta-linux32-client/
Engine (build: 903 version: 0.9b)
Running without Launcher

Downloading checksums from http://update.kag2d.com/1/linux32-client-release/App/version.txt

Downloading http://update.kag2d.com/1/linux32-client-release/App/version.txt...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 96870  100 96870    0     0  77498      0  0:00:01  0:00:01 --:--:--  101k
file Downloads/App/version.txt
Version file the same (key matches)

Using file 'Base/../libJuxta.so'
APP GameDLLInit

INITIALIZING ANGELSCRIPT 2.27.1
Game DLL initialized.
Changing game working directory to '/home/leo/Downloads/Games/kagbeta-linux32-client/Base/'
[12:37:41] Config file not found '../autoconfig.cfg'
Gathering all files from Base...
[12:37:43] Config file not found '../Security/ignorelist.cfg'
[12:37:43] Loading ignorelist from Base/../Security/ignorelist.cfg
[12:37:43] Loading ignorelist failed - file missing or corrupt. A blank ignorelist file will be generated for you.
Running autostart script configure from Scripts/autostart.as
[12:37:43] Creating video device...
Irrlicht Engine version 1.8.0-alpha
Linux 3.11.5-geek #3 ZEN SMP PREEMPT Sat Oct 19 12:34:56 CEST 2013 x86_64
[12:37:43] Desktop resolution is 1920x1080
[12:37:43] Checking driver support...
[12:37:43] Initializing new video device...
[12:37:43] Irrlicht Engine version 1.8.0-alpha
[12:37:43] Linux 3.11.5-geek #3 ZEN SMP PREEMPT Sat Oct 19 12:34:56 CEST 2013 x86_64
[12:37:44] Using renderer: OpenGL 4.4.0
[12:37:44] GeForce GTX 680M/PCIe/SSE2: NVIDIA Corporation
[12:37:44] OpenGL driver version is 1.2 or better.
[12:37:44] GLSL version: 4.4
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/Fonts/commodore.png
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/Fonts/commodore.png
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/arrow_cursor.png

... many many png files more with the same error...

[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/Fonts/commodore.png
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/Fonts/commodore.png
[12:37:44] Could not load console font 'GUI/Fonts/commodore.png'
irrKlang sound library version 1.4.0
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/conf.c:3314:(snd_config_hooks_call) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_conf_pulse.so
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
[New Thread 0xf3617b40 (LWP 1154)]
Using ALSA driver
[12:37:44] Sound engine started
[12:37:44] Precaching files...
Precaching files.
[12:37:44]  ...Precaching files.
Game version 915
[12:37:44] Creating world from file ''
[12:37:44] Initializing Game Script
[12:37:44] ############ GAMEMODE Challenge
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/DarkMicroStone.png
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/DarkMicroStone.png
[12:37:44] Could not load texture: GUI/DarkMicroStone.png
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/GUI/DarkMicroStone.png

... many many png files more with the same error...

[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/Sprites/default.png
[12:37:44] PNG warning: Application built with libpng-1.5.5 but running with 1.6.6
[12:37:44] LOAD PNG: Internal PNG create read struct failure
: /home/leo/Downloads/Games/kagbeta-linux32-client/Base/Sprites/default.png
[12:37:44] Could not load texture: Sprites/default.png
[12:37:44] New track added to mixer Sounds/Music/KAGWorldIntroA.ogg

Program received signal SIGSEGV, Segmentation fault.
0xf48804f1 in CGUIRender::DrawCursor(irr::core::vector2d<int>&, int) () from Base/../libJuxta.so
(gdb) bt
#0  0xf48804f1 in CGUIRender::DrawCursor(irr::core::vector2d<int>&, int) () from Base/../libJuxta.so
#1  0xf4881b39 in CIrrlichtTask::RenderAll() () from Base/../libJuxta.so
#2  0xf48824c0 in CIrrlichtTask::UpdateNow() () from Base/../libJuxta.so
#3  0xf4883275 in CIrrlichtTask::Update() () from Base/../libJuxta.so
#4  0xf47f78f5 in CKernel::Execute() () from Base/../libJuxta.so
#5  0xf4830723 in CGame::Run(int, char**) () from Base/../libJuxta.so
#6  0xf4810fcd in GameDLLInit () from Base/../libJuxta.so
#7  0x08055bec in ?? ()
#8  0x08056338 in ?? ()
#9  0x08055384 in ?? ()
#10 0xf798f753 in __libc_start_main () from /lib32/libc.so.6
#11 0x0804f3b1 in ?? ()
(gdb) q
A debugging session is active.

   Inferior 1 [process 1128] will be killed.

Quit anyway? (y or n) y
Back to top
View user's profile Send private message
zeronullity
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2010
Posts: 103

PostPosted: Mon Oct 21, 2013 5:02 pm    Post subject: Reply with quote

Try recompiling the game if you haven't done so recently and also try revdep-rebuild.
However if this is a binary only game.. might have to try to link the correct library manually.
Back to top
View user's profile Send private message
ComputerDruid
n00b
n00b


Joined: 21 Sep 2008
Posts: 4

PostPosted: Sun Nov 17, 2013 12:45 am    Post subject: Reply with quote

Got it to work by forcing it to load libpng 1.5

You have to actually have a 32bit libpng1.5 for this to work, but:

LD_PRELOAD=/usr/lib32/libpng15.so.15 LD_LIBRARY_PATH=lib ./KAG

you could also modify rungame.sh to include this. I think this is required because my libfreetype.so.6 is pulling in libpng16.so.16, which is confusing KAG somehow. I suspect that they are doing something odd with linking, as I _think_ something like this should work without crazy hacks, but I don't really know enough about it to be sure.

This game seems pretty cool though, so now that it works, I'm unlikely to look into it much more. Too busy storming castles.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum