project-navigation
Personal tools

Author Topic: Problem with 2.3 trunk svn version.  (Read 2940 times)

Offline nanomage

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Problem with 2.3 trunk svn version.
« on: January 30, 2010, 11:52:29 pm »
Hello.
being a veteran of x-com123 series, i'm new to this particular game/ i played 2.2 for a while and liked it a lot but then i heard of 2.3 development version.
i am running a 32-bit ubuntu 9.10 linux on a laptop with some nvidia graphics card (don't remember exact model) and proprietary drivers installed for it.
following instructions on  http://ufoai.ninex.info/wiki/index.php/Debian ,
i installed dependencies with
 $ sudo apt-get install \
   libsdl1.2-dev libsdl-ttf2.0-dev libvorbis-dev zlib1g-dev gettext libtheora-dev \
   libjpeg62-dev libpng12-dev libncurses5-dev libcurl3-dev libsdl-mixer1.2-dev \
   libxml2-dev libopenal-dev ,

 $ sudo apt-get install \
   libglib2.0-dev libgtk2.0-dev libgtkglext1-dev libgtksourceview2.0-dev ,
 
and

 $ sudo apt-get --reinstall install mesa-common-dev

packages were installed correctly. Then i checked out for trunk version as follows:

 svn co https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
, configured with mere ./configured and ran make, make lang and make maps.
still i can't get the game running, here's the console output
linad@lance:~/ufosvn/trunk$ ./ufo

---- filesystem initialization -----
Adding game dir: /usr/local/lib/ufoai/base
Adding game dir: /usr/local/share/ufoai/base
Adding game dir: ./base
Added packfile ./base/0base.pk3 (8 files)
Added packfile ./base/0maps.pk3 (509 files)
Added packfile ./base/0materials.pk3 (41 files)
Added packfile ./base/0media.pk3 (10 files)
Added packfile ./base/0models.pk3 (1660 files)
Added packfile ./base/0music.pk3 (48 files)
Added packfile ./base/0pics.pk3 (2544 files)
Added packfile ./base/0shaders.pk3 (12 files)
Added packfile ./base/0snd.pk3 (214 files)
Added packfile ./base/0ufos.pk3 (98 files)
Added packfile ./base/0videos.pk3 (1 files)
Adding game dir: /home/linad/.ufoai/2.3-dev/base
using /home/linad/.ufoai/2.3-dev/base for writing
executing default.cfg
couldn't execute config.cfg

----- network initialization -------
libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15 initialized.

------ server initialization -------
added 7 maps to the mapcycle

----- console initialization -------
Console initialized.

------- video initialization -------
SDL version: 1.2.13
I: desktop depth: 32bpp
I: video memory: 0
I: video driver: x11
I: setting mode 6
I: set swap control to 0
./ufo(Sys_Backtrace+0x1f)[0x819ed32]
./ufo[0x819ed9d]
[0xd12400]
./ufo(Sys_Backtrace+0x1f)[0x819ed32]
./ufo(Sys_Error+0x22)[0x819df15]
./ufo(Sys_InitSignals+0x0)[0x819edb0]
[0xd12400]
Error: Received signal 11.

linad@lance:~/ufosvn/trunk$

i am not much of a programmer, but i tried to perform diagnostics described in http://ufoai.ninex.info/wiki/index.php/Debugging

here's the gdb shell output:

linad@lance:~/ufosvn/trunk$ gdb ufo
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/linad/ufosvn/trunk/ufo...done.
(gdb) run +set vid_fullscreen 0 +set vid_grabmouse 0 +set developer 1
Starting program: /home/linad/ufosvn/trunk/ufo +set vid_fullscreen 0 +set vid_grabmouse 0 +set developer 1
[Thread debugging using libthread_db enabled]

---- filesystem initialization -----
Adding game dir: /usr/local/lib/ufoai/base
Adding game dir: /usr/local/share/ufoai/base
Adding game dir: ./base
Added packfile ./base/0base.pk3 (8 files)
Added packfile ./base/0maps.pk3 (509 files)
Added packfile ./base/0materials.pk3 (41 files)
Added packfile ./base/0media.pk3 (10 files)
Added packfile ./base/0models.pk3 (1660 files)
Added packfile ./base/0music.pk3 (48 files)
Added packfile ./base/0pics.pk3 (2544 files)
Added packfile ./base/0shaders.pk3 (12 files)
Added packfile ./base/0snd.pk3 (214 files)
Added packfile ./base/0ufos.pk3 (98 files)
Added packfile ./base/0videos.pk3 (1 files)
Adding game dir: /home/linad/.ufoai/2.3-dev/base
using /home/linad/.ufoai/2.3-dev/base for writing
executing default.cfg
couldn't execute config.cfg

----- network initialization -------
libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15 initialized.

------ server initialization -------
mapcycle add: '+africa default' type '1on1'
mapcycle add: '+frozen small' type '1on1'
mapcycle add: '+italy default' type '1on1'
mapcycle add: 'farm' type '1on1'
mapcycle add: 'estate' type '1on1'
mapcycle add: '+japan default' type '1on1'
mapcycle add: 'tower' type '1on1'
added 7 maps to the mapcycle
...using mo files from /home/linad/ufosvn/trunk/base/i18n/

----- console initialization -------
Console initialized.

------- video initialization -------
SDL version: 1.2.13
I: desktop depth: 32bpp
I: video memory: 0
I: video driver: x11
I: setting mode 6
I: set swap control to 0

Program received signal SIGSEGV, Segmentation fault.
0x078f935c in ?? () from /usr/lib/dri/fglrx_dri.so
(gdb) bt full
#0  0x078f935c in ?? () from /usr/lib/dri/fglrx_dri.so
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.
(gdb)


Please help me to understand my problem and thank you for your help and for making a nice game to remind us of childhood :)
No doubt 2.3 will be even better when i get it run.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Problem with 2.3 trunk svn version.
« Reply #1 on: January 30, 2010, 11:55:45 pm »
that is a segfault in your video drivers - which version are you using? any chance to up-/downgrade them?

Offline nanomage

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Re: Problem with 2.3 trunk svn version.
« Reply #2 on: January 31, 2010, 12:02:45 am »
Ah disregard this. looks like i've wasted too much time googling for this mistake and debugging, and forgot to try a GUI restart. now i tried, and all works fine!
EDIT: thanks for reacting so fast Mattn.