Q3Map 2.5.14 Segfaults under Linux


(WolfWings) #1

Not sure what could be causing it. The copy of 2.5.11 included with GtkRadiant runs fine, but when I downloaded and installed the newest 2.5.14 for Linux… well, it segfaulted.

LDD was no help, I’m not missing any libraries that it can tell.

Anyways, here’s the exact text I get no matter what command-line options I use:

wolfwings@drakonidae src $ q3map2
2.5.14
threads: 4
Q3Map         - v1.0r (c) 1999 Id Software Inc.
Q3Map (ydnar) - v2.5.14
GtkRadiant    - v1.5.0 Apr  9 2004 09:58:34
The Red Swingline
Segmentation fault

Any ideas? I’m running Gentoo Linux, so normally I’d just try recompiling from the source… but it’s rather opaque just where to GET the accursed source from, as there doesn’t seem to be a tarball or other method of getting it listed on the ShaderLab site.


(WolfWings) #2

Oh, and before anyone else asks… basic system specs.

kernel 2.6.4-gentoo-r1 (2.6.4 stock with some gentoo-specific patches to make it handle a compiler running in the background much of the time without sound or games skipping)
glibc 2.3.2-r9
gcc 3.3.2-r5

It’s a dual Athlon-MP system, with an NVidia GF4MX (hey, I got it for free. Like I’d pay for this video card. :slight_smile: running on a Tyan motherboard, so it’s an AMD CPU running on an AMD motherboard chipset.


(WolfWings) #3

Gah… skip it. Found the problem.

Somehow I’d extracted the new version before the download was complete… but the archiver for some reason. =O.o= Problem self-solved.

I would still like to know if there’s an easy way to download the source code though besides having to page through the SubVersion web interface or installing the SubVersion client itself though.


(ydnar) #4

Installing SVN is the best way to obtain the GtkRadiant source code, as you can check it out directly from zerowing, and get updates as the developers commit them. It’s one big initial download, then minor incremental updates. It’s not the beast that CVS is.

If you want absolute bleeding edge, you can view my active development tree here: http://akiba.shaderlab.com/GtkRadiant/

Please DO NOT download the entire tree from that site. The relevant (i.e. changing) files live in tools/quake3/q3map2/

Note: that server is undergoing revision, so httpd might be up/down all day.

y


(SCDS_reyalP) #5

subversion is simple to install and works great, FWIW. The is a gentoo ebuild for it, I think it needs ACCEPT_KEYWORDS="~x86" to install.


(WolfWings) #6

That’s fine. I just wanted to make sure there wasn’t some hidden cache of, say, a tarball for the most recent release I could just snag to play around with the source code without needing to install SubVersion, before I let my computer churn for half an hour compiling SubVersion itself. :slight_smile:


(ydnar) #7

I condensed some of the many docs you need to successfully build an Apache/mod_perl/mod_dav/mod_dav_svn server into a simple HOWTO here:

http://www.shaderlab.com/mod_perl/server_mod_perl_config.txt

y


(Amos) #8

I’m having a “similar issue”

Running Gentoo Linux, kernel 2.6.5-r1

problem started when trying to compile my first map (empty room) usding GTK Radiant.
console output

=== running BSP command ===
 "/opt/gtkradiant/q3map2" -v  -connect 127.0.0.1:39000  -game et -fs_basepath "/opt/enemy-territory/" -light -fast -external -lightmapsize 256 "/home/puppetmaster/maps/first/first.map"

then a small pause and a pop-up window with

The connection timed out, assuming the BSP process failed
Make sure you are using a networked version of Q3Map?
Otherwise you need to disable BSP Monitoring in prefs.

So I disable BSP monitoring. I have no idea if I am using a networked version of Q3Map. I just installed gtkradiant from portage. OK… so i disable BSP Monitoring and try again and now all I get is

Writing the compile script to '/home/puppetmaster/.radiant/1.4.0/qe3bsp.sh'
The build output will be saved in '/home/puppetmaster/.radiant/1.4.0/junk.txt'

So I explore other options and it seems that people recommend using Q3map2. So I grab the latest linux version from “I forget where”… I untar it and it is the binary with some other files such as change log. No documentation on use or install. So I just put the directory into my path so I can use the binary. So now I build a shell script

q3map2.x86 -game et -fs_basepath "/opt/enemy-territory/" -vis -fast "/opt/enemy-territory/etmain/first.map"

and I get the following output

 line 1: 10072 Segmentation fault      q3map2.x86 -game et -fs_basepath "/opt/enemy-territory/" -vis -fast "/opt/enemy-territory/etmain/first.map"

I experimented with parameters and have searched for “good” documentation (for beginners) and I didn’t find anything that helped.

Which brings me here to find out why I’m getting the seg-fault. I think I’m missing some important ideas here. Does anyone have a cluepon they can spare me?

thank you

p.s. I didn’t extract my archive b4 I finished downloadling…
:smiley:


(ydnar) #9

Try downloading the latest Linux binary from here:

http://akiba.shaderlab.com/GtkRadiant/install/


(Amos) #10

same thing - Seg fault

But I did find out more info… I started radiant from a console and I noticed an error message when trying to compile using the BSP menu.

/opt/gtkradiant/q3map2: line 2: unexpected EOF while looking for matching `''
/opt/gtkradiant/q3map2: line 3: syntax error: unexpected end of file

curious… I would have expected q3map2 to be a binary… so I open the file and it contained

echo If you read this then there was a bug during setup. Report the bug and try running radiant.x86 directly from it's installation directory.

hmmm… anyone else think that may be the cause of my trouble? DOH!!

I also noticed that a couple of the permissions didn’t get set right on at least one file on the install… so I’m thinking the ebuild is broken for radiant…

At this point, I’m going to try and remerge (reinstall) radiant again. If that doesn’t work, then I’ll have to download and install the non-Gentoo way.

Thanks for the help.


(Amos) #11

well… I have decided that the ebuild is definately fuxord… I did it the “hard way” and downloaded 1.4 from the website… I had to manually patch symlinks and a couple file permissions and now my map is compiling…

thanx again for the help.


(ydnar) #12

Download q3map2.x86 from that directory. :slight_smile: