allegro problems

You have a problem with TA3D, it doesn't run or it crashes...
/
Vous avez un problème avec TA3D, il ne se lance pas ou plante...
Post Reply
mr_kyle
Posts: 15
Joined: Sun Aug 26, 2007 9:04 pm

allegro problems

Post by mr_kyle » Sat Dec 01, 2007 5:04 am

hi again, just wanted to let you know how i was doing with ta3d
and well its been interesting. First of all i had to tweak it so it would even compile so that might have something to do with my problems, but i did get it to compile, then i updated fmod and that seemed to help but it crashes with this message in the console:
Allegro: 4.2.2 (2007)
AllegroGL version: 0.4.2
OS : Linux :-)
CPU: ??? GenuineIntel -cpuid-x87 FPU-MMX-MMX+-SSE-SSE2-SSE3-cmov
FMOD version: 4.8.9
OpenGL informations:
vendor: NVIDIA Corporation
renderer: GeForce 7800 GT/PCI/SSE2
version: 2.1.1 NVIDIA 100.14.19
Shutting down Allegro due to signal #11
Segmentation fault

now the logfile is interesting in that it says:
TA3D 0.4.1 initializing started:

build info : Nov 29 2007 , 19:53:05

Allegro: 4.2.2 (2007)
AllegroGL version: 0.4.2
OS : Linux :-)
CPU: ??? GenuineIntel -cpuid-x87 FPU-MMX-MMX+-SSE-SSE2-SSE3-cmov
FMOD version: 4.8.9
opening playlist
Reading gamedata\allsound.tdf
Loading sounds from gamedata\allsound.tdf
loading sound file button2
loading sound file butnsid1
loading sound file butnmbl1
loading sound file butmain4
loading sound file butscro2
loading sound file butscro2
loading sound file range1
loading sound file butnmbl1
loading sound file cantdo
loading sound file victory2
loading sound file button13
loading sound file butmain2
loading sound file explode.wav
loading sound file beep6
loading sound file burn02
loading sound file butnagr2
loading sound file energyn2
loading sound file butscro1
loading sound file beep1
loading sound file beep4
loading sound file butnsid3
loading sound file butnskir
loading sound file explode.wav
loading sound file button9
loading sound file button7
loading sound file button1
loading sound file butnmbl2
loading sound file beep4
loading sound file button5
loading sound file butnagr1
loading sound file butmain1
loading sound file drone2
loading sound file servsml6
loading sound file button12
loading sound file beep6
loading sound file butscro1
loading sound file butoptn
loading sound file button5
loading sound file metalno1
loading sound file button3
loading sound file button10
OpenGL informations:
vendor: NVIDIA Corporation
renderer: GeForce 7800 GT/PCI/SSE2
version: 2.1.1 NVIDIA 100.14.19

ta3d basically just segfaults and wont run. Yes i put the *.hpi files
in the ta3d directory thanks . Any help would be appreciated thanks

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 01, 2007 1:37 pm

Hi,

could you build TA3D with debug information and run it through gdb :

#make clean
#./configure CXXFLAGS="-g -O0"
#make
#gdb ta3d
>run

When it'll crash it'll display information about where it crashed in the code, could you report that please ?

Did you install TA3D 0.4.1 over a previous TA3D install ?
=>;-D Penguin Powered

mr_kyle
Posts: 15
Joined: Sun Aug 26, 2007 9:04 pm

here is the debug you asked for

Post by mr_kyle » Sun Dec 02, 2007 3:21 am

no i did not install over another ta3d install. I also found that it helped to use these flags: export LIBS="-lGL -lglut" or you will have problems. Anyway here is what you asked for:

GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /opt/ta3d/bin/ta3d
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1227077936 (LWP 7655)]
[New Thread -1229341776 (LWP 7658)]
[New Thread -1237734480 (LWP 7659)]
Allegro: 4.2.2 (2007)
AllegroGL version: 0.4.2
OS : Linux :-)
CPU: ??? GenuineIntel -cpuid-x87 FPU-MMX-MMX+-SSE-SSE2-SSE3-cmov
FMOD version: 4.8.9
[New Thread -1246643280 (LWP 7660)]
[New Thread -1255035984 (LWP 7661)]
OpenGL informations:
vendor: NVIDIA Corporation
renderer: GeForce 7800 GT/PCI/SSE2
version: 2.1.1 NVIDIA 100.14.19
[New Thread -1271592016 (LWP 7662)]
[Thread -1271592016 (LWP 7662) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227077936 (LWP 7655)]
0xb79ddcc4 in fgets () from /lib/libc.so.6
(gdb)

i don't know if it means anything to you but my glibc is 2.3.6 .
well its been interesting (and it might be even more so if i could
get this program to run) and i hope this helps you figure this out
as i can see this program has promise as opposed to running t.a.
in a buggy wine api . thanks for your help.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun Dec 02, 2007 10:03 am

hm, it looks like an IO error, could you run TA3D through gdb again and type:
>bt
when it crash ? It'll display the stack and all the function calls from the source files. Thanks
=>;-D Penguin Powered

mr_kyle
Posts: 15
Joined: Sun Aug 26, 2007 9:04 pm

gbd ta3d and backtrace

Post by mr_kyle » Mon Dec 03, 2007 3:18 am

hope this helps:
dave@davesbox : /opt/ta3d/bindave@davesbox:/opt/ta3d/bin$ gdb ta3d
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /opt/ta3d/bin/ta3d
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1227688240 (LWP 14269)]
[New Thread -1229956176 (LWP 14272)]
[New Thread -1238348880 (LWP 14273)]
Allegro: 4.2.2 (2007)
AllegroGL version: 0.4.2
OS : Linux :-)
CPU: ??? GenuineIntel -cpuid-x87 FPU-MMX-MMX+-SSE-SSE2-SSE3-cmov
FMOD version: 4.8.9
[New Thread -1247257680 (LWP 14274)]
[New Thread -1255650384 (LWP 14275)]
OpenGL informations:
vendor: NVIDIA Corporation
renderer: GeForce 7800 GT/PCI/SSE2
version: 2.1.1 NVIDIA 100.14.19
[New Thread -1272206416 (LWP 14276)]
[Thread -1272206416 (LWP 14276) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227688240 (LWP 14269)]
0xb7948cc4 in fgets () from /lib/libc.so.6
(gdb) bt
#0 0xb7948cc4 in fgets () from /lib/libc.so.6
#1 0x0818fc27 in play_intro (txt_file=0x8204c00 "intro.txt") at intro.cpp:85
#2 0x080da569 in main (argc=1, argv=0xbf8faf44) at main.cpp:308
(gdb)

anyway there you go, :roll: hope this will help resolve the case

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Mon Dec 03, 2007 7:53 am

Ok, I see why it's crashing:
you run TA3D from /opt/ta3d/bin ... but it seems it cannot find the intro.txt file. In order to run TA3D properly, you have to run it from the directory where its data files are located, otherwise it won't find those files and won't work.

The usual way of running TA3D is:
_extract the archive
_type
# cd ta3d
# ./configure
# make
# ./ta3d
=>;-D Penguin Powered

mr_kyle
Posts: 15
Joined: Sun Aug 26, 2007 9:04 pm

got it running

Post by mr_kyle » Tue Dec 04, 2007 5:15 am

yes it looks like that did it, it runs now. i see that the dependencies of the program have to be met (like the data files
and the various directories and files that do not get copied over
with a "make install"). so i suggest that all of the needed files
be copied over to the target destination set up with configure
before compilation and the installer should be prompted for
the needed data files like the *.hpi files. looks pretty good so
far keep up the good work guys. :)
I also would like to know how to set up the music. is it simple enough to rip the cd, encode it to *.mp3 and place it in the music directory. and also i have a suggestion for a few possible features
which i liked in the old ta game: ctrl+c locates and pans over to commander. ctrl-1 to 9 puts a group of units into its designated
group for selection by alt-1 to 9 later for orders.
and i believe the ai and its' pathfinding has been discussed already. thanks for the help

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Tue Dec 04, 2007 2:34 pm

current SVN version does "install" TA3D in the usr directory, instead it ask for the TA CD (if you don't have it just click ok, it'll fail, and you can put your own *.hpi files). It'll leave the binaries in the ta3d directory, for now it's better not to install it because of some files that might change.

Thanks for reporting :D
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests