r12793/Ubuntu 10.04 doesn't run correctly

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

r12793/Ubuntu 10.04 doesn't run correctly

Post by shenle »

I've decided to separate my compile/running problems in Ubuntu from my other VC++ thread.

Basically, r12793 compiled on the system above with cmake and usin g system boost (1.40) generates a binary; when I run the binary from either the build directory, the vegastrike directory, the data directory or the parent directory that holds'em all, I get a blank window opening, then nothing. It just sits there forever, and I have to kill -9 it.

here is stdout:

Code: Select all

 In path /home/user/vegastrike/svn/data
Vega Strike  
See http://www.gnu.org/copyleft/gpl.html for license details.

Using .vegastrike as the home directory
Found MODDIR = /home/user/vegastrike/svn/data/mods
DATADIR - No datadir specified in config file, using ; /home/user/vegastrike/svn/data
SIMULATION_ATOM: 0.05
['/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']
['/home/user/vegastrike/svn/data/modules/builtin', '/home/user/vegastrike/svn/data/modules/quests', '/home/user/vegastrike/svn/data/modules/missions', '/home/user/vegastrike/svn/data/modules/ai', '/home/user/vegastrike/svn/data/modules', '/home/user/vegastrike/svn/data/bases']
0 joysticks were found.

The names of the joysticks are:
FactionXML:LoadXML factions.xml
Contents of star system:
<system name="Empty" background="backgrounds/black" nearstars="0" stars="0" starspread="0"  y="0" z="0" x="0">

</system>


using NV_CUBE_MAP

refusing to bind command to joystick (joy-nr too high)
CREATING A LOCAL SHIP : dumbfire
Hi helper play 0
HereInitializing optimizer
Compilation of technique fixed successful
Compilation of technique default successful
Compilation of technique highend_simple successful
pox 119990000000.000000 -9000000.000000 -109990000000.000000
Force feedback support disabled when compiled
Loading completed, now network init
and stderr:

Code: Select all

GOT SUBDIR ARG = 
Found data in /home/user/vegastrike/svn/data
Using /home/user/vegastrike/svn/data as data directory
USING HOMEDIR : /home/user/.vegastrike As the home directory 
CONFIGFILE - No config found in home : /home/user/.vegastrike/vegastrike.config
CONFIGFILE - No home config file found, using datadir config file : /home/user/vegastrike/svn/data/vegastrike.config
MISSION_NAME is empty using : main_menu.mission
Attempt to call ReadFull on a bad file units.csv
running import sys
print sys.path
sys.path = [r"/home/user/vegastrike/svn/data/modules/builtin",r"/home/user/vegastrike/svn/data/modules/quests",r"/home/user/vegastrike/svn/data/modules/missions",r"/home/user/vegastrike/svn/data/modules/ai",r"/home/user/vegastrike/svn/data/modules",r"/home/user/vegastrike/svn/data/bases"]
testing VS randomrunning import sys
print sys.path
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Vertex shader was successfully compiled to run on hardware.
 
Fragment shader was successfully compiled to run on hardware.

Fragment shader(s) linked, vertex shader(s) linked. 
 
Vertex shader was successfully compiled to run on hardware.
 
Fragment shader was successfully compiled to run on hardware.

Fragment shader(s) linked, vertex shader(s) linked. 
WARNING: built-in varying gl_TexCoord [7] defined in Vertex shader and not used in Fragment shader
WARNING: built-in varying gl_TexCoord [7] defined in Vertex shader and not used in Fragment shader
 
Min (0.000000, 0.000000, 0.000000) Max(0.000000, 0.000000, 0.000000) MinLumin 1.000000, MaxLumin 1.000000Read In Star Count 0 used: 2000
Min (0.000000, 0.000000, 0.000000) Max(0.000000, 0.000000, 0.000000) MinLumin 1.000000, MaxLumin 1.000000Read In Star Count 0 used: 38
Loading a starsystem
Loading Star System Special/Empty
FOUND MODIFICATION = player FOR PLAYER #0
Vertex shader was successfully compiled to run on hardware.
 
Fragment shader was successfully compiled to run on hardware.

Fragment shader(s) linked, vertex shader(s) linked. 
WARNING: built-in varying gl_TexCoord [2] defined in Vertex shader and not used in Fragment shader
WARNING: built-in varying gl_TexCoord [2] defined in Vertex shader and not used in Fragment shader
 
Vertex shader was successfully compiled to run on hardware.
 
Fragment shader was successfully compiled to run on hardware.

Fragment shader(s) linked, vertex shader(s) linked. 
 
Vertex shader was successfully compiled to run on hardware.
 
Fragment shader failed to compile with the following errors:
ERROR: 0:122: error(#71) Syntax error incorrect preprocessor directive
WARNING: 0:122: warning(#64) Unexpected tokens following the preprocessor directive - expected a newline(#if )
ERROR: 0:229: error(#71) Syntax error incorrect preprocessor directive
WARNING: 0:229: warning(#64) Unexpected tokens following the preprocessor directive - expected a newline(#if )
ERROR: 0:446: error(#71) Syntax error incorrect preprocessor directive
WARNING: 0:446: warning(#64) Unexpected tokens following the preprocessor directive - expected a newline(#if )
ERROR: error(#273) 3 compilation errors.  No code generated


Fragment Program Error: Failed to compile highend
Compilation of technique highend failed... trying default
Cause: Error compiling program vp:"highend" fp:"highend"
Vertex shader was successfully compiled to run on hardware.
 
Fragment shader was successfully compiled to run on hardware.

Fragment shader(s) linked, vertex shader(s) linked. 
WARNING: built-in varying gl_TexCoord [1] defined in Vertex shader and not used in Fragment shader
WARNING: built-in varying gl_TexCoord [1] defined in Vertex shader and not used in Fragment shader
 
make me a sandwich
make: *** No rule to make target 'me'. Stop.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by klauss »

Seems to stop right after network init stuff.

Not sure it means something... it might.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by shenle »

Two months after this, I reattempted the build. r12885 builds and runs fine. No crashes so far. Same build system. Only peculiarity is that it still doesn't load the splash screen at the beginning - basically a blank screen until the program is completely loaded.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by klauss »

Peculiar indeed - if it happens all the time. I've seen it happen from time to time, since there's one splash file that fails to load (never got around to finding out which) ;)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by shenle »

:My joy was too short.

To make sure it's repeatable, I redid the build on a different machine, running the same version of Ubuntu. Both machines are very vanilla, nothing extra is installed except what is strictly needed to compile vegastrike successfully.

The binary builds (it was giving me some weird errors at compiling vid_file.cpp, which I have resolved by installing every -dev package that has any relation with ffmpeg whatsoever).

However when run it starts initializing the game, then crashes. here is the stderr:

Code: Select all

Registering codec ogg.
Registering codec ffmpeg as universal.
 In path /home/user/src/vegastrike/svn/data
Vega Strike  
See http://www.gnu.org/copyleft/gpl.html for license details.

Using .vegastrike as the home directory
Found MODDIR = /home/user/src/vegastrike/svn/data/mods
DATADIR - No datadir specified in config file, using ; /home/user/src/vegastrike/svn/data
SIMULATION_ATOM: 0.05
['/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages']
['/home/user/src/vegastrike/svn/data/modules/builtin', '/home/user/src/vegastrike/svn/data/modules/quests', '/home/user/src/vegastrike/svn/data/modules/missions', '/home/user/src/vegastrike/svn/data/modules/ai', '/home/user/src/vegastrike/svn/data/modules', '/home/user/src/vegastrike/svn/data/bases']
Creating scene manager...
Creating template manager...
0 joysticks were found.

The names of the joysticks are:
FactionXML:LoadXML factions.xml
Contents of star system:
<system name="Empty" background="backgrounds/black" nearstars="0" stars="0" starspread="0"  y="0" z="0" x="0">

</system>


using NV_CUBE_MAP

refusing to bind command to joystick (joy-nr too high)
CREATING A LOCAL SHIP : dumbfire
Hi helper play 0
HereInitializing optimizer
Compilation of technique fixed successful
Compilation of technique highend successful
And stdout:

Code: Select all

GOT SUBDIR ARG = 
Found data in /home/user/src/vegastrike/svn/data
Using /home/user/src/vegastrike/svn/data as data directory
USING HOMEDIR : /home/user/.vegastrike As the home directory 
CONFIGFILE - Found a config file in home directory, using : /home/user/.vegastrike/vegastrike.config
MISSION_NAME is empty using : main_menu.mission
Attempt to call ReadFull on a bad file units.csv
running import sys
print sys.path
sys.path = [r"/home/user/src/vegastrike/svn/data/modules/builtin",r"/home/user/src/vegastrike/svn/data/modules/quests",r"/home/user/src/vegastrike/svn/data/modules/missions",r"/home/user/src/vegastrike/svn/data/modules/ai",r"/home/user/src/vegastrike/svn/data/modules",r"/home/user/src/vegastrike/svn/data/bases"]
testing VS randomrunning import sys
print sys.path
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
  Initializing renderer...
Min (0.000000, 0.000000, 0.000000) Max(0.000000, 0.000000, 0.000000) MinLumin 1.000000, MaxLumin 1.000000Read In Star Count 0 used: 2000
Min (0.000000, 0.000000, 0.000000) Max(0.000000, 0.000000, 0.000000) MinLumin 1.000000, MaxLumin 1.000000Read In Star Count 0 used: 38
Loading a starsystem
Loading Star System Special/Empty
FOUND MODIFICATION = player FOR PLAYER #0
terminate called after throwing an instance of 'Audio::FileOpenException'
  what():  Cannot open "techniques/highend_simple.technique"
Looks like the error is related to the audio stuff.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by klauss »

No, I believe it's either misconfiguration or that you didn't update the data folder.

It's complaining that it can't find the highend_simple technique.

It may also be that you didn't reconfigure: the latest changes to techniques require that you re-build your local config file (by running vssetup and configuring VS again to your liking).
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by shenle »

Yes that worked; I rebuilt vssetup and ran it, and now the binary runs correctly. However, like before some settings from vssetup don't "stick", such as the window size.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: r12793/Ubuntu 10.04 doesn't run correctly

Post by klauss »

I noticed that, every time vegastrike.config changes on SVN, vssetup "forgets" its settings.

But it only happens when the repo's vegastrike.config changes, so I don't think it's a serious issue. It might even be designed that way.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply