Homesource Forums

Homeworld Source Editing Talk
It is currently Wed Jun 28, 2017 12:31 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Nov 11, 2010 7:38 pm 
Offline

Joined: Sun Feb 06, 2005 6:42 pm
Posts: 7
Hi all,

After I have compiled homeworld on my PC it will not run. It looks like I have two problems the first problem is that OpenGL is not initializing and the second problem is that I have a segfault.

first&second problem:
Code:
 [rstreeks@obelix src]$ ./homeworld
memClearSetting=0x4897e35a, memFreeSetting=0x3c6ef361
     930 files found in HomeworldSDL.big
      42 files found in Update.big
   13851 files found in Homeworld.big
True
Cannot initialize OpenGL
Homeworld CRCs:
  HomeworldSDL.big TOC = 0xbaac761
        Update.big TOC = 0x52f110b0
     Homeworld.big TOC = 0x0
            (not used) = 0x0
rndInit: GL couldn't setupPixelFormat
-- load rGL device sw --
Segmentation fault (core dumped)


when I run it under the gdb I get the following back trace.
Code:
[rstreeks@obelix src]$ gdb ./homeworld
GNU gdb (GDB) Fedora (7.1-34.fc13)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rstreeks/homeworld/svn/homeworld/Linux/src/homeworld...done.
(gdb) run /window
Starting program: /home/rstreeks/homeworld/svn/homeworld/Linux/src/homeworld /window
[Thread debugging using libthread_db enabled]
memClearSetting=0x4897e35a, memFreeSetting=0x3c6ef361
     930 files found in HomeworldSDL.big
      42 files found in Update.big
   13851 files found in Homeworld.big
True
Cannot initialize OpenGL
Homeworld CRCs:
  HomeworldSDL.big TOC = 0xbaac761
        Update.big TOC = 0x52f110b0
     Homeworld.big TOC = 0x0
            (not used) = 0x0
[New Thread 0x7fffed796710 (LWP 23235)]
[New Thread 0x7fffe8d94710 (LWP 23236)]
[Thread 0x7fffe8d94710 (LWP 23236) exited]
[New Thread 0x7fffe8d94710 (LWP 23237)]
[New Thread 0x7fffe3fff710 (LWP 23238)]
rndInit: GL couldn't setupPixelFormat
-- load rGL device sw --

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install SDL-1.2.14-8.fc13.x86_64 dbus-libs-1.2.24-1.fc13.x86_64 expat-2.0.1-10.fc13.x86_64 flac-1.2.1-6.fc12.x86_64 glibc-2.12.1-4.x86_64 libICE-1.0.6-2.fc13.x86_64 libSM-1.1.0-7.fc12.x86_64 libX11-1.3.1-3.fc13.x86_64 libXau-1.0.5-1.fc12.x86_64 libXcursor-1.1.10-4.fc13.x86_64 libXdamage-1.1.2-2.fc13.x86_64 libXext-1.1.2-2.fc13.x86_64 libXfixes-4.0.4-2.fc13.x86_64 libXi-1.3.2-1.fc13.x86_64 libXrandr-1.3.0-5.fc13.x86_64 libXrender-0.9.5-1.fc13.x86_64 libXtst-1.0.99.2-3.fc12.x86_64 libXxf86vm-1.1.0-1.fc13.x86_64 libasyncns-0.8-1.fc13.x86_64 libdrm-2.4.21-2.fc13.x86_64 libogg-1.2.0-1.fc13.x86_64 libselinux-2.0.94-2.fc13.x86_64 libsndfile-1.0.20-5.fc13.x86_64 libuuid-2.17.2-8.fc13.x86_64 libvorbis-1.3.1-1.fc13.x86_64 libxcb-1.5-1.fc13.x86_64 mesa-dri-drivers-7.8.1-9.fc13.x86_64 mesa-libGL-devel-7.8.1-9.fc13.x86_64 pulseaudio-libs-0.9.21-6.fc13.x86_64 tcp_wrappers-libs-7.6-59.fc13.x86_64
(gdb) bt full
#0  0x0000000000000000 in ?? ()
No symbol table info available.
#1  0x0000000000403a04 in mainContinueRGL (data=0x64bad5 "") at ../../../src/SDL/main.c:1389
No locals.
#2  0x0000000000403f6e in mainStartupParticularRGL (device=0x634484 "sw", data=0x64bad5 "") at ../../../src/SDL/main.c:1455
        renderData = {width = 0, height = 32767, hWnd = 0x0}
#3  0x00000000004040b2 in mainLoadParticularRGL (device=0x634484 "sw", data=0x64bad5 "") at ../../../src/SDL/main.c:1830
No locals.
#4  0x0000000000404167 in mainRestoreSoftware () at ../../../src/SDL/main.c:1689
No locals.
#5  0x0000000000425ec5 in utyGameSystemsInit () at ../../../src/SDL/utility.c:4080
        renderData = {width = 640, height = 480, hWnd = 0x0}
        sdlSubsystemFlags = <value optimized out>
#6  0x0000000000405072 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../src/SDL/main.c:2567
        errorString = 0x0
        preInit = 1
        e = {type = 104 'h', active = {type = 104 'h', gain = 251 '\373', state = 192 '\300'}, key = {type = 104 'h', which = 251 '\373',
            state = 192 '\300', keysym = {scancode = 50 '2', sym = 6504784, mod = KMOD_NONE, unicode = 0}}, motion = {type = 104 'h',
            which = 251 '\373', state = 192 '\300', x = 50, y = 0, xrel = 16720, yrel = 99}, button = {type = 104 'h',
            which = 251 '\373', button = 192 '\300', state = 106 'j', x = 50, y = 0}, jaxis = {type = 104 'h', which = 251 '\373',
            axis = 192 '\300', value = 50}, jball = {type = 104 'h', which = 251 '\373', ball = 192 '\300', xrel = 50, yrel = 0}, jhat = {
            type = 104 'h', which = 251 '\373', hat = 192 '\300', value = 106 'j'}, jbutton = {type = 104 'h', which = 251 '\373',
            button = 192 '\300', state = 106 'j'}, resize = {type = 104 'h', w = 50, h = 6504784}, expose = {type = 104 'h'}, quit = {
            type = 104 'h'}, user = {type = 104 'h', code = 50, data1 = 0x634150, data2 = 0x0}, syswm = {type = 104 'h', msg = 0x634150}}
        event_res = 0
(gdb)


My hunch is that some thing is not configured right when I try to compile the code because glxgears is working fine.
Can someone point me in the right direction how I have to solve this.

Thanks roelof.


Top
 Profile  
 
PostPosted: Wed Dec 01, 2010 10:55 pm 
Offline

Joined: Sun Feb 06, 2005 6:42 pm
Posts: 7
I am still stumped.

I put this statement:
Code:
{
fprintf(stderr,"Call made to !SDL_SetVideoMode( %d, %d, %d, 0x%08X) returns error: %s\n",MAIN_WindowWidth, MAIN_WindowHeight, MAIN_WindowDepth, flags, SDL_GetError() );
return false;
}

just after line 871 in render.c
When I run the code it comes back with the following answer
Code:
Call made to !SDL_SetVideoMode( 640, 480, 16, 0x80000003)
returns error: Couldn't find matching GLX visual

where should I look for this problem I have an NVidia GeForce 6100 running fedora13 x86-64. Running in the following resolution 1680*1050*24
Please give pointer where to look for this problem.

Thanks


Top
 Profile  
 
PostPosted: Mon Dec 06, 2010 6:21 pm 
Offline

Joined: Sun Feb 06, 2005 6:42 pm
Posts: 7
is there anyone still reading these forums any more.

PS I did have to make one change to src/Makefile.am else it would not compile on my fedora machine. Also can't connect to the svn repository to pull new changes from.
Thanks roelof.

Code:
@@ -29,5 +29,5 @@ DEP_LIBS = \
 
 homeworld_LIBTOOLFLAGS = --preserve-dup-deps
 homeworld_LDADD = $(HW_LIBS) $(DEP_LIBS) -L/usr/X11R6/lib -lX11 -lXext @SDL_LIBS@ $(MOVIE_LIBS) $(NET_LIBS)
-homeworld_LDFLAGS = -Wl,--as-needed
+homeworld_LDFLAGS = -Wl, -lm --as-needed


Top
 Profile  
 
PostPosted: Tue Dec 07, 2010 5:05 am 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
I still read the forum. Unfortunately I develop on Mac OS X so my ability to help you with the compiling problem here is somewhat limited which is why I haven't replied before. It seems to have decided to render in software mode:
Code:
rndInit: GL couldn't setupPixelFormat
-- load rGL device sw --
Note also the screen size requested is the most basic configuration:
Code:
Call made to !SDL_SetVideoMode( 640, 480, 16, 0x80000003)
returns error: Couldn't find matching GLX visual
So I would look to see why setupPixelFormat failed, which is most likely an inability to detect your graphics card.

Re the Subversion server: the host machine was changed by my provider and the software configuration is slightly different. I've been at a wedding so I haven't had time to look at it until now - I thought I had it working again but it's currently hanging. I'll try and get this fixed tonight.

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
PostPosted: Tue Dec 07, 2010 10:23 pm 
Offline

Joined: Sun Feb 06, 2005 6:42 pm
Posts: 7
Good to see some one around here still :).

I have access to both Mac and Fedora/Ubuntu machines. So i will try too build it on the Mac as well and see if I get it going on that machine. I am not an expert coder by any means but i can trouble shoot and test code at least. My back ground is as a DBA(oracle) so I can find my way around in linux/Solaris etc.
If you want me to I can setup a couple of test machines each with different linux flavours so we can test some more and solve these problems.

PS I hope it was a nice wedding


Top
 Profile  
 
PostPosted: Wed Dec 08, 2010 7:33 am 
Offline

Joined: Thu Dec 21, 2006 6:39 am
Posts: 7
Location: Edinburgh, UK
I don't care for closed Nvidia drivers but the error simply appears that Homeworld cannot get the desired colour depth or pixel format. By default it's asking for 16, as shown in SDL_SetVideoMode( 640, 480, 16, 0x80000003), but your desktop is 32 and X can't switch between 16 and 32 like Windows. So I think you might add the following in the init options in the .homeworld/Homeworld.cfg file.

screenWidth 1280
screenHeight 1024
screenDepth 32
fullScreen 1

_________________
Alan.


Top
 Profile  
 
PostPosted: Wed Dec 08, 2010 6:13 pm 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
The Subversion server should be accessible now; sorry for the inconvenience.

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
PostPosted: Wed Dec 08, 2010 10:24 pm 
Offline

Joined: Sun Feb 06, 2005 6:42 pm
Posts: 7
Thank you both for the info.

I have tried your suggestion about the setting the values *.cfg file so far no luck :( my X screen size 1680x1050x32. So back to the drawing board. And Yes I do not care much about NVidia either but at the time it was the only game around. My next board will be a ati/amd video card.

also the svn service is working again thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group