trying to load save game it crashes

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
jktz122
Greenhorn
Posts: 13
Joined: 28 Dec 2007, 22:09

trying to load save game it crashes

Post by jktz122 »

trying to load a save game the game crashes .. the error message says something about runtime
beam me up scotty
Misthafalls
Trained
Trained
Posts: 35
Joined: 23 Oct 2007, 23:53

Re: trying to load save game it crashes

Post by Misthafalls »

Oke I have the following questions:
  • What version are u using?
  • What is OS are u using?
  • Are u using a mod (maybe aivolution)
  • etcetc :P
User avatar
jktz122
Greenhorn
Posts: 13
Joined: 28 Dec 2007, 22:09

Re: trying to load save game it crashes

Post by jktz122 »

no mods useing win vista 32 bit and warzone 2100 2.1 beta the one that was released feb 17
it worked fine till yesterday i got a screen shot how do i add a screen shot to here?
Last edited by jktz122 on 06 Mar 2008, 06:21, edited 1 time in total.
beam me up scotty
doom3r
Regular
Regular
Posts: 502
Joined: 29 Aug 2007, 15:04

Re: trying to load save game it crashes

Post by doom3r »

To insert a screenshot in your post, just upload it with the post by attaching it. The "attach" option is over the "post" or "preview" commands while you reply in a thread. Screenshots should ve placed in the config directory of wz.
User avatar
jktz122
Greenhorn
Posts: 13
Joined: 28 Dec 2007, 22:09

Re: trying to load save game it crashes

Post by jktz122 »

ok heres the screen what might have happened is i had overwritten the save with a newer save so it may have gotten corrupted
You do not have the required permissions to view the files attached to this post.
beam me up scotty
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: trying to load save game it crashes

Post by DevUrandom »

Sounds like an abort()... Though can't infer where it might have come from. :(
User avatar
jktz122
Greenhorn
Posts: 13
Joined: 28 Dec 2007, 22:09

Re: trying to load save game it crashes

Post by jktz122 »

i started a new game anyways so far the saves are working fine
beam me up scotty
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: trying to load save game it crashes

Post by qwerty800 »

Same thing with me.
Im using Ubuntu Linux (Debian) V7.10

When doing it in a terminal i have (Starting and loading only)

Code: Select all

user@ubuntu-nico:~$ warzone2100
warzone2100: No such file or directory.
Saved dump file to '/tmp/warzone2100.gdmp'
Erreur de segmentation (core dumped)
As you can see... I use the french version :-[

Here is the report:

Code: Select all

Program command: warzone2100
Version: TRUNK
Type: Release
Compiled on: Aug  4 2007

Operating system: Linux
Node name: ubuntu-nico
Release: 2.6.22-14-generic
Version: #1 SMP Tue Feb 12 07:42:25 UTC 2008
Machine: i686

Pointers: 32bit

Dump caused by signal: SIGSEGV: Invalid memory reference: Address not mapped to object

GLIBC raw backtrace:
warzone2100[0x817ba0f]
[0xffffe440]
warzone2100[0x811701e]
warzone2100[0x8119bc1]
warzone2100[0x80a5599]
warzone2100[0x81114e3]
warzone2100[0x81118b6]
warzone2100[0x80a9673]
warzone2100[0x80aa4cf]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7b57050]
warzone2100[0x804cb81]

GDB extended backtrace:
GNU gdb 6.6-debian
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 "i486-linux-gnu"...
Attaching to process 7040
Reading symbols from /usr/games/warzone2100...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Reading symbols from /usr/lib/libphysfs-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libphysfs-1.0.so.0
Reading symbols from /usr/lib/libpng12.so.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libSDL-1.2.so.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /usr/lib/libSDL_net-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSDL_net-1.2.so.0
Reading symbols from /usr/lib/libGL.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /usr/lib/libopenal.so.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libopenal.so.0
Reading symbols from /usr/lib/libvorbisfile.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libvorbis.so.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libogg.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libz.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libasound.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libdirectfb-0.9.so.25...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdirectfb-0.9.so.25
Reading symbols from /usr/lib/libfusion-0.9.so.25...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfusion-0.9.so.25
Reading symbols from /usr/lib/libdirect-0.9.so.25...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdirect-0.9.so.25
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1227753760 (LWP 7040)]
[New Thread -1244054640 (LWP 7044)]
[New Thread -1229628528 (LWP 7043)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libGLcore.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/lib/tls/libnvidia-tls.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/tls/libnvidia-tls.so.1
Reading symbols from /usr/lib/libXext.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXrandr.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/gconv/ISO8859-1.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2

(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()
(gdb) #0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7bd36db in waitpid () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0x0817be8f in ?? ()
No symbol table info available.
#3  0x00001b85 in ?? ()
No symbol table info available.
#4  0x00000000 in ?? ()
No symbol table info available.
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/games/warzone2100, process 7040
EDIT: And for me, a new game don't fix anything
Last edited by qwerty800 on 07 Mar 2008, 21:56, edited 1 time in total.
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: trying to load save game it crashes

Post by Buginator »

qwerty800 wrote: Same thing with me.
Im using Ubuntu Linux (Debian) V7.10

When doing it in a terminal i have (Starting and loading only)

Code: Select all

user@ubuntu-nico:~$ warzone2100
warzone2100: No such file or directory.
Saved dump file to '/tmp/warzone2100.gdmp'
Erreur de segmentation (core dumped)
As you can see... I use the french version :-[

Here is the report:

Code: Select all

Program command: warzone2100
Version: TRUNK
Type: Release
Compiled on: Aug  4 2007
EDIT: And for me, a new game don't fix anything
You need to enable debug symbols, that is a useless dump, since we can't tell what it is doing without the debug symbols.

And just so everyone remembers, you can't mix & match save games from previous versions.
The version of the game in ubuntu's repo is VERY broken.

//Fixed quote tags
Last edited by DevUrandom on 08 Mar 2008, 13:05, edited 1 time in total.
and it ends here.
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: trying to load save game it crashes

Post by qwerty800 »

Forget it...

I reinstalled it and it works now
Last edited by qwerty800 on 09 Mar 2008, 19:23, edited 1 time in total.
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: trying to load save game it crashes

Post by Buginator »

qwerty800 wrote: Forget it...

I reinstalled it and it works now
Just so you know, to get debug symbols, you must not strip the binary of them.
I know you can compile it with ./configure --enable-debug=yes, and that will have the symbols, and I think it is also possible to make a release build that has debug symbols, but I am not sure what command line option that is.

Someone will chime in with the correct info sooner or later. :)
and it ends here.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: trying to load save game it crashes

Post by DevUrandom »

Buginator wrote: Someone will chime in with the correct info sooner or later. :)
Hehe. ;)

So here are my tricks:
- To get really useful output, you *need* -g (debug symbols), because otherwise information like file and linenumber is not stored.
- Make sure not to strip the binary (strip is a command to remove "unnecessary" symbols)
- On x86, do *not* use -fomit-frame-pointer: That will remove the capabilty to get any backtraces, even if you did not strip the binary. (On x86_64 or ppc you can omit the frame pointer, and in fact it is enabled by default on -O1 or higher. They use a different method to build a backtrace (without a frame pointer).)
- Any optimisation level (-O1 or higher and also -Os) will change the structure of the generated code, which thus may contain less useful information (like temporary variables). Sometimes such variables (or small functions, etc) are not required to determine the source of a crash, at other times they are crucial. So you better stay with -O0 when doing debug builds.

FYI: I added http://wiki.wz2100.net/Debugging, feel free to extend it with whatever you find useful. (How do handle GDB, how to create split-debug builds, ...)
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: trying to load save game it crashes

Post by qwerty800 »

I finally found the problem: ;D

Synaptic just have the brand new beta(the one who chashes)
We need to uninstall it and to get the pakage from the WZ website.
Then, we must block the update:

Code: Select all

$sudo aptitude hold warzone2100
Thats it.
Now, start your campaign for the last time.
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID