Problem: BZFlag beta 2.0.5b7 crashes after a short time.

Questions or HOWTOs about the above? Post 'em here...
Post Reply
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Problem: BZFlag beta 2.0.5b7 crashes after a short time.

Post by JPT »

I compiled the new BZFlag Version from CVS (on Debian stable, Kernel 2.6).

After starting it in a console, it always says:

Code: Select all

libpng warning: Extra compressed data.
libpng warning: Extra compression data
And after 2-5 minutes, it crashes, saying:

Code: Select all

Speicherzugriffsfehler
I don't know the english word for it, but it means something like
Error in/ while accessing memory.

Can somebody help me ?
pyr0
Private First Class
Private First Class
Posts: 144
Joined: Wed Jul 13, 2005 5:08 pm

Post by pyr0 »

pretty sure this is related to an extent

Crash Warning
Versions 1.2.7, 1.2.6, 1.0.17, and 1.0.16 have a bug that will cause applications that strip the alpha channel (while reading a PNG) to crash. The bug is fixed in versions 1.2.8 and 1.0.18, which were released on 3 December 2004.

and for a previous version
Broken-Image Warning
Versions 1.2.6 and 1.0.16 can write an invalid zlib header within the PNG datastream. This is not quite as bad as it sounds since the two-byte header can be corrected fairly easily (e.g., use pngcrush to rewrite the images and, perhaps, compress them slightly better), but some applications will display the images incorrectly. Microsoft Word and Internet Explorer are known to be affected. A libpng patch is available, and versions 1.2.7 and 1.0.17 (incorporating the fix) were released on 11 September 2004.

best choice, get to the newest version of libpng... i run the cvs version as well and dont have this problem... but i also have 1.2.8 of libpng so it isnt an issue for me
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

/me fires up Synaptic...

Okay, i'll try it.
inchworm
Private
Private
Posts: 4
Joined: Thu Sep 15, 2005 1:51 am

CVS is also crashing

Post by inchworm »

I'm getting crashes even with libpng v1.2.8

here is the data:
$ bzflag --version
BZFlag client 2.0.5.20060415-DEVEL-linux-gnu-SDL (protocol 0026) http://BZFlag.org/
Copyright (c) 1993 - 2006 Tim Riker

now for the gdb output. This is repeatable by firing a shot into a teleporter on bzflag.norang.ca:5154.

(gdb) run
Starting program: /usr/local/bin/bzflag
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3286)]
[New Thread 32769 (LWP 3287)]
[New Thread 16386 (LWP 3288)]
libpng warning: Extra compressed data.
libpng warning: Extra compression data
libpng warning: Extra compressed data.
libpng warning: Extra compression data
libpng warning: Extra compressed data.
libpng warning: Extra compression data
libpng warning: Extra compressed data.
libpng warning: Extra compression data
libpng warning: Extra compressed data.
libpng warning: Extra compression data
libpng warning: Extra compressed data.
libpng warning: Extra compression data
libpng warning: Extra compressed data.
libpng warning: Extra compression data

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3286)]
BasicEffect::setColor (this=0xf57bc0, rgb=0x0) at effectsRenderer.cxx:458
458 color[0] = rgb[0];
(gdb) back
#0 BasicEffect::setColor (this=0xf57bc0, rgb=0x0) at effectsRenderer.cxx:458
#1 0x00000000004516e2 in EffectsRenderer::addShotTeleportEffect (this=0xcb3e50, rgb=0x0, pos=0x39311e8,
rot=0x7fffffd3a458, vel=0x0) at effectsRenderer.cxx:393
#2 0x00000000004ad4a9 in SegmentedShotStrategy::update (this=0xf4c090, dt=38.3501053) at Singleton.h:83
#3 0x00000000004c06fc in LocalShotPath::update (this=0x38b0cf0, dt=38.3501053) at ShotPath.cxx:187
#4 0x0000000000486326 in LocalPlayer::doUpdate (this=0x363f530, dt=0.0320030004) at LocalPlayer.cxx:142
#5 0x00000000004294bf in BaseLocalPlayer::update (this=0x363f530) at BaseLocalPlayer.cxx:89
#6 0x00000000004fcc10 in playingLoop () at playing.cxx:6018
#7 0x00000000004ff069 in startPlaying (_display=0xf57bc0, renderer=@0xb7a290) at playing.cxx:6715
#8 0x00000000004dce1c in main (argc=7510544, argv=0x7fffffd3b820) at Singleton.h:83
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

use 2.0.6 or later, it has those thigns fixed.
ImageJeffM
Post Reply