[freespace2] Crash with latest version
Cavalaria Christophe
chris.cavalaria at free.fr
Sat Sep 18 17:35:41 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 18 September 2004 23:22, Taylor Richards wrote:
> On Sat, 2004-09-18 at 05:42, christophe.cavalaria at enst-bretagne.fr
>
> wrote:
> > That's interesting. I first get an error while initialising OpenAL :
> >
> > General: soundcard = <nothing>
> > Sound: SOUND ==> Initializing OpenAL...
>
> Hmm, are you using the same version of OpenAL that worked the last time
> you could successfully run the game? You could try using the same
> OpenAL that came with UT2K4, copy it into the freespace2 directory and
> use "LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./freespace2 -g -w". Just
> remember to rename the OpenAL lib to the same name that the freespace2
> binary is trying to use.
That one I don't know since it doesn't cause any message or crash without gdb.
I didn't try to run the previous version in a debugger so I don't know if it
did the same thing. Well, in fact I know since I kept the old binary around.
It does the same thing and I just need to type c in gdb to ignore it.
> > And that was one of the most interresting gdb run I've ever done. The
> > game crashes as soon as I run the line 2856 of gropengl.cpp
> > mprintf(( "Extensions : %s\n", glGetString(GL_EXTENSIONS) ));
> >
> > and if I just comment that line, it works perfectly ! If I step into, I
> > arrive in the function outwnd_printf2 with a tmp of size MAX_LINE_WIDTH*4
> > with MAX_LINE_WIDTH=128 ! It seems the extensions available on the latest
> > OpenGL driver takes too much place even for that. I'll just increase it
> > to 256 I guess.
>
> Yeah, that needs to be chopped up and formated in a per-line way. I'll
> add that to my list. mprintf() should only do something when using a
> debug build. If you don't use a debug build and it still happens then
> let me know.
Actually, 256 wasn't enouth either so I had to use 1024. I guess I simply
forgot to add the -DNDEBUG flag to the make script anyway. I should probably
add that and be done with it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFBTKoymqNN7QaJ/qgRAiJUAJoC1wnV9kAbBdj9bqsFjbjSkYOm2gCgxzVI
b3NkZ0zRk19uDi/4v6on4Mo=
=UKu6
-----END PGP SIGNATURE-----
More information about the freespace2
mailing list