The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Vovizmus on August 20, 2004, 01:05:10 am



Title: The latest UQM from CVS fail to start under RH8
Post by: Vovizmus on August 20, 2004, 01:05:10 am
I tried both 0.3 and the latest version from CVS - they both poped up the blank screen and died in 2 seconds. The uname -a output is:
Linux mpc5 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686 i686 i386 GNU/Linux
The output for gcc -v is:
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

Here's the UQM console output:
Using SDL version 1.2.6 (compiled with 1.2.6)
Initializing Pure-SDL graphics.
SDL driver used: x11
SDL initialized.
Initializing Screen.
Set the resolution to: 640x480x32
0 joysticks were found.
Initializing SDL audio subsystem.
SDL audio subsystem initialized.
Opening SDL audio device.
   using dsp at 44100 Hz 16 bit stereo, 4096 samples audio buffer
Initializing mixer.
Mixer initialized.
Initializing sound decoders.
Sound decoders initialized.
       'lbm/scclrtab.ct' -- 8722 bytes
We've loaded the Kernel
VideoDecoder_Load: Unknown file type
       'lbm/title.ani' -- 19 bytes
/usr/bin/uqm: line 15: 32698 Illegal instruction     (core dumped) "/usr/lib/games/uqm/uqm" "--contentdir=/usr/share/games/uqm/content" $UQM_OPTS "$@"
[bash@mpc5]~bash>       'arilou.shp' -- 301 bytes
       'arilou/ariicons.ani' -- 50 bytes
       'arilou/arimicon.ani' -- 46 bytes
       'arilou/aritext.txt' -- 407 bytes
       'arilou/arilou.cod' -- 1 bytes
       'chmmr.shp' -- 345 bytes
       'chmmr/chmicons.ani' -- 48 bytes
       'chmmr/chmmicon.ani' -- 48 bytes
       'chmmr/chmtext.txt' -- 353 bytes
       'human/human.cod' -- 1 bytes
       'orz.shp' -- 343 bytes
       'orz/orzicons.ani' -- 52 bytes
       'orz/orzmicon.ani' -- 50 bytes
       'orz/orztext.txt' -- 407 bytes
       'orz/orz.cod' -- 1 bytes
       'pkunk.shp' -- 300 bytes
       'pkunk/pkuicons.ani' -- 52 bytes
       'pkunk/pkumicon.ani' -- 50 bytes
       'pkunk/pkutext.txt' -- 334 bytes
       'pkunk/pkunk.cod' -- 1 bytes
       'shofixti.shp' -- 432 bytes
       'shofixti/shoicons.ani' -- 52 bytes
       'shofixti/shomicon.ani' -- 48 bytes
       'shofixti/shotext.txt' -- 395 bytes
       'shofixti/shofixti.cod' -- 1 bytes
       'spathi.shp' -- 346 bytes
       'spathi/spaicons.ani' -- 51 bytes
       'spathi/spamicon.ani' -- 50 bytes
       'spathi/spatext.txt' -- 382 bytes
       'spathi/spathi.cod' -- 1 bytes
       'supox.shp' -- 300 bytes
       'supox/supicons.ani' -- 51 bytes
       'supox/supmicon.ani' -- 49 bytes
       'supox/suptext.txt' -- 321 bytes
       'supox/supox.cod' -- 1 bytes
       'thradd.shp' -- 346 bytes
       'thradd/thricons.ani' -- 52 bytes
       'thradd/thrmicon.ani' -- 50 bytes
       'thradd/thrtext.txt' -- 339 bytes
       'thradd/thradd.cod' -- 1 bytes
       'utwig.shp' -- 300 bytes
       'utwig/utwicons.ani' -- 52 bytes
       'utwig/utwmicon.ani' -- 50 bytes
       'utwig/utwtext.txt' -- 315 bytes
       'utwig/utwig.cod' -- 1 bytes
       'vux.shp' -- 313 bytes
       'vux/vuxicons.ani' -- 52 bytes
       'vux/vuxmicon.ani' -- 48 bytes
       'vux/vuxtext.txt' -- 249 bytes
       'vux/vux.cod' -- 1 bytes
       'yehat.shp' -- 345 bytes
       'yehat/yehicons.ani' -- 52 bytes
       'yehat/yehmicon.ani' -- 49 bytes
       'yehat/yehtext.txt' -- 425 bytes
       'yehat/yehat.cod' -- 1 bytes
       'melnorme.shp' -- 348 bytes
       'melnorme/melicons.ani' -- 49 bytes
       'melnorme/melmicon.ani' -- 48 bytes
       'melnorme/meltext.txt' -- 369 bytes
       'melnorme/melnorme.cod' -- 1 bytes
       'druuge.shp' -- 301 bytes
       'druuge/druicons.ani' -- 49 bytes
       'druuge/drumicon.ani' -- 48 bytes
       'druuge/drutext.txt' -- 333 bytes
       'druuge/druuge.cod' -- 1 bytes
       'ilwrath.shp' -- 302 bytes
       'ilwrath/ilwicons.ani' -- 48 bytes
       'ilwrath/ilwmicon.ani' -- 48 bytes
       'ilwrath/ilwtext.txt' -- 365 bytes
       'ilwrath/ilwrath.cod' -- 1 bytes
       'mycon.shp' -- 300 bytes
       'mycon/mycicons.ani' -- 52 bytes
       'mycon/mycmicon.ani' -- 50 bytes
       'mycon/myctext.txt' -- 329 bytes
       'mycon/mycon.cod' -- 1 bytes
       'slylandr.shp' -- 258 bytes
       'slylandr/slyicons.ani' -- 50 bytes
       'slylandr/slymicon.ani' -- 50 bytes
       'slylandr/slytext.txt' -- 367 bytes
       'slylandr/slylandr.cod' -- 1 bytes
       'umgah.shp' -- 315 bytes
       'umgah/umgicons.ani' -- 52 bytes
       'umgah/umgmicon.ani' -- 48 bytes
       'umgah/umgtext.txt' -- 367 bytes
       'umgah/umgah.cod' -- 1 bytes
       'urquan.shp' -- 346 bytes
       'urquan/urqicons.ani' -- 51 bytes
       'urquan/urqmicon.ani' -- 50 bytes
       'urquan/urqtext.txt' -- 425 bytes
       'urquan/urquan.cod' -- 1 bytes
       'zoqfot.shp' -- 346 bytes
       'zoqfot/zoqicons.ani' -- 52 bytes
       'zoqfot/zoqmicon.ani' -- 50 bytes
       'zoqfot/zoqtext.txt' -- 367 bytes
       'zoqfot/zoqfot.cod' -- 1 bytes
       'syreen.shp' -- 301 bytes
       'syreen/syricons.ani' -- 52 bytes
       'syreen/syrmicon.ani' -- 49 bytes
       'syreen/syrtext.txt' -- 343 bytes
       'syreen/syreen.cod' -- 1 bytes
       'blackurq.shp' -- 348 bytes
       'blackurq/blaicons.ani' -- 48 bytes
       'blackurq/blamicon.ani' -- 48 bytes
       'blackurq/blatext.txt' -- 429 bytes
       'blackurq/blackurq.cod' -- 1 bytes
       'androsyn.shp' -- 348 bytes
       'androsyn/andicons.ani' -- 50 bytes
       'androsyn/andmicon.ani' -- 47 bytes
       'androsyn/andtext.txt' -- 389 bytes
       'androsyn/androsyn.cod' -- 1 bytes
       'chenjesu.shp' -- 348 bytes
       'chenjesu/cheicons.ani' -- 50 bytes
       'chenjesu/chemicon.ani' -- 50 bytes
       'chenjesu/chetext.txt' -- 369 bytes
       'chenjesu/chenjesu.cod' -- 1 bytes
       'mmrnmhrm.shp' -- 348 bytes
       'mmrnmhrm/mmricons.ani' -- 50 bytes
       'mmrnmhrm/mmrmicon.ani' -- 50 bytes
       'mmrnmhrm/mmrtext.txt' -- 395 bytes
       'mmrnmhrm/mmrnmhrm.cod' -- 1 bytes
       'lbm/status.ani' -- 132 bytes
       'lbm/activity.ani' -- 231 bytes
       'lbm/starcon.fon' -- 1 bytes
       'lbm/tiny.fon' -- 1 bytes
       'lbm/starcon.txt' -- 10715 bytes
       'lbm/micro.fon' -- 1 bytes
       'lbm/menusnd.snd' -- 56 bytes
_GetSoundBankData(): loading lbm/menusnd01.wav
_GetSoundBankData(): loading lbm/menusnd02.wav
_GetSoundBankData(): loading lbm/menusnd03.wav
_GetSoundBankData(): loading lbm/menusnd04.wav
       'lbm/stars.ani' -- 60 bytes
       'lbm/astbig.ani' -- 512 bytes
       'lbm/astmed.ani' -- 473 bytes
       'lbm/astsml.ani' -- 473 bytes
       'lbm/blabig.ani' -- 176 bytes
       'lbm/blamed.ani' -- 176 bytes
       'lbm/blasml.ani' -- 176 bytes
       'lbm/boobig.ani' -- 198 bytes
       'lbm/boomed.ani' -- 198 bytes
       'lbm/boosml.ani' -- 198 bytes


Title: Re: The latest UQM from CVS fail to start under RH
Post by: 0xDEC0DE on August 20, 2004, 02:53:26 am
Did you build with debugging symbols included?  If so, please provide a backtrace from where it went kaboom.

If you don't know how to do that, it's pretty simple:
  • Install GDB if it's not already installed (RedHat provides an RPM for it)
  • run gdb /usr/lib/games/uqm/uqm
  • At the (gdb) prompt, type "r"
  • After the program crashes, type "bt" at the (gdb) prompt.
A backtrace will follow, open a bug in Bugzilla (http://uqm.stack.nl/cgi-bin/bugs/index.cgi) and cut-and-paste the backtrace into it.


Title: Re: The latest UQM from CVS fail to start under RH
Post by: Culture20 on August 20, 2004, 08:14:13 am
I notice that you're using an smp kernel.  Devs:  Has the code been fully de-threaded?  Would multiple processors throw something off kilter?

Is /usr/bin/uqm a binary or a script? (type "file /usr/bin/uqm" if you're leery of accidentally cat'ing a binary)
If it's a text file, what's on line 15?
Quote
/usr/bin/uqm: line 15: 32698 Illegal instruction     (core dumped) "/usr/lib/games/uqm/uqm" "--contentdir=/usr/share/games/uqm/content" $UQM_OPTS "$@"

It stands out to me.

Side note:  RH stopped supporting RH8 this past January, and RH9 in April; unless you're buying 3rd party updates, or are compiling your own updates, you might think about upgrading to Fedora Core 2 or another distro.


Title: Re: The latest UQM from CVS fail to start under RH
Post by: meep-eep on August 20, 2004, 10:15:53 am
Quote
I notice that you're using an smp kernel.  Devs:  Has the code been fully de-threaded?  Would multiple processors throw something off kilter?

The code is not "de-threaded", but it is designed to work with threads. A thread running on another processor should not be a problem, but who knows.

Quote
Is /usr/bin/uqm a binary or a script? (type "file /usr/bin/uqm" if you're leery of accidentally cat'ing a binary)
If it's a text file, what's on line 15?
It stands out to me.

It's likely a wrapper script to supply the correct content dir. If you install from the source, one is generated, but that one doesn't have 15 lines, so I guess the MacOS install script has its own similar script.



Title: Re: The latest UQM from CVS fail to start under RH
Post by: Vovizmus on August 20, 2004, 03:55:28 pm
Quote
Did you build with debugging symbols included?  If so, please provide a backtrace from where it went kaboom.

If you don't know how to do that, it's pretty simple:
  • Install GDB if it's not already installed (RedHat provides an RPM for it)
  • run gdb /usr/lib/games/uqm/uqm
  • At the (gdb) prompt, type "r"
  • After the program crashes, type "bt" at the (gdb) prompt.
A backtrace will follow, open a bug in Bugzilla (http://uqm.stack.nl/cgi-bin/bugs/index.cgi) and cut-and-paste the backtrace into it.

I put it into the base:
http://uqm.stack.nl/cgi-bin/bugs/show_bug.cgi?id=634

It looks like a SDL bug but other SDL games run pretty well and stable. I recompiled SDL from the sources, it didn't help.

Quote
Is /usr/bin/uqm a binary or a script? (type "file /usr/bin/uqm" if you're leery of accidentally cat'ing a binary)
If it's a text file, what's on line 15?

It's a script:
#!/bin/sh

# Wrapper script for starting The Ur-Quan Masters

# Source system default configuration
if [ -e "/etc/uqm.conf" ]; then
 . "/etc/uqm.conf"
fi

# Source per-user configuration
if [ -e "$HOME/.uqm/uqm.conf" ]; then
 . "$HOME/.uqm/uqm.conf"
fi

"/usr/lib/games/uqm/uqm" "--contentdir=/usr/share/games/uqm/content" $UQM_OPTS "$@"

The line number 15 is the last line of the script which launches uqm binary.

Quote
Side note:  RH stopped supporting RH8 this past January, and RH9 in April; unless you're buying 3rd party updates, or are compiling your own updates, you might think about upgrading to Fedora Core 2 or another distro.

I know... I would definitely upgrade but the company I'm developing the software for makes releases of its products only for RH8 on PC platform. I'm forced to use this out-of-date distro.