Technical support > Linux

Gentoo SDL_image error notes

(1/2) > >>

gravy21:
After installing the ufo-ai-2.3 from portage, I kept getting signal 11 with the following stacktrace:

SDL_image version 1.2.8
Could not load environment map 0
FS_RemoveFile: remove /home/xxxxx/.ufoai/2.3/base/keys.cfg
/usr/share/games/ufoai/ufo(Sys_Backtrace+0x15)[0x56cf95]
/usr/share/games/ufoai/ufo(Sys_Error+0x77)[0x56d767]
/usr/share/games/ufoai/ufo(Com_Error+0x129)[0x507609]
/usr/share/games/ufoai/ufo(R_InitImages+0x18d)[0x53fc8d]
/usr/share/games/ufoai/ufo(R_Init+0x11cf)[0x54458f]
/usr/share/games/ufoai/ufo(CL_Init+0x134)[0x4388c4]
/usr/share/games/ufoai/ufo(Qcommon_Init+0x38e)[0x507eee]
/usr/share/games/ufoai/ufo(main+0x1e)[0x56ccde]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7ffff55aad2d]
/usr/share/games/ufoai/ufo[0x429b49]
Error: Shutdown

My first thought that my SDL config was hosed when I saw SDL_image version 1.2.8, which is not installed (I had 1.2.10). I ran a revdep-rebuild on my SDL packages to make sure none were compiled against an old version of SDL_image. Once that was done, I restarted ufo-ai and got the same error.

I noticed that there was an update in portage for sdl-image (to version 1.2.10-r1). After updating, I re-ran and the game loaded up perfectly. As a test, I downgraded to sdl-image-1.2.10 and received the same stacktrace as before.

After downgrading, I reinstalled my SDL packages and ran a revdep-rebuild to make sure I didn't miss any mismatches. I ran some other SDL games to verify they worked, but I still got the stacktrace. After upgrading SDL_image to 1.2.10-r1, it started working again.

After a lot of back and forth trying to proved the solution, I just keep coming back to the same point. For now I am going enjoy the game (since I found what works for me), and hopefully if someone has a similar problem this will help them out.

Notes:
- I did not file a bug because I have not really put this through the ringer, and never for sure determined it was a problem specific to me.
- I received a warning that I had a libPNG mismatch (1.2 vs 1.4). Anyone who has been using Gentoo lately has probably run into this with other packages. Still get the error while the game is working though.
- I suppose it's possible that SDL_image 1.2.10 is not linking to libPNG 1.4 properly, but the reinstall should have fixed that, and other games that I think are using libSDL-image.so seem to be ok...
- If it comes down to an SDL_image requirement for sdl-image-1.2.10-r12, then the ebuild needs to be updated to reflect (current dependency is just sdl-image version unspecified)
- It is entirely possible this is a SDL configuration problem, a version mismatch, or even a compile vs runtime mismatch. revdep-rebuild should have solved that, but it is possible.
- Searching this forum for my error I noticed stacktraces here and there that looked like they cascaded from game startup through InitImages.  The InitImages is what led me to check libSDL installation. Maybe checking the SDL installation if the #1 video card drivers, and #2 xorg.conf suggestions don't pan out is a good suggestion, maybe it's Gentoo specific, or maybe it was just my box. Who knows...

Mattn:
you don't have all the needed data files:


--- Quote ---Could not load environment map 0
--- End quote ---

this should should be in the base/pics/envmaps directory named envmap_0.png

but i suppose that if this file is missing, there are more files missing. so i would say this is a bug in the gentoo package

gravy21:

--- Quote from: Mattn on November 29, 2010, 05:48:38 pm ---you don't have all the needed data files:

this should should be in the base/pics/envmaps directory named envmap_0.png

but i suppose that if this file is missing, there are more files missing. so i would say this is a bug in the gentoo package

--- End quote ---


Yup, envmap_0.png is not on the disk. I guess gentoo uses a /usr prefix for install, which gives me a /usr/share/games/ufoai/base directory. The only items in this folder are .pk3s, a game.so and what looks like a language folder. I am going to check the tarball that portage downloaded and see if it has everything. What screen would be loading envmap_0.png? At the moment (without the file) I am loading the game and, other than the train screenshot, what I'm seeing looks like the otherscreenshots. I haven't played with it enough to see if everything is working correctly, though.

gravy21:
portage is grabbing a ufoai-2.3-data.tar and a ufoai-2.3-source.tar.bz2. Looks like the data tarball is what is going into that base directory. No file / folder with envmap in either tarball.

I'll look at the 2.3 source when I get a chance later. Maybe the ebuild is hosed.
 

Mattn:
the pk3 files are zip files - they might also contain the file - but the qeustion is, are they loaded? see ufoconsole.log

Navigation

[0] Message Index

[#] Next page

Go to full version