pioneerspacesim/pioneer — Issue #1013: Crash when spawning Police ships (Zordey, reported on forum)
Author: Brianetta
Created: 2012-02-24 11:05:35+00:00
State: open
Labels: Crash or hang

*Zordey writes:*

I can recreate the crash now.

Start on Earth, take off and fire a shot and the game crashes.

The shots from my craft don't crash the game (when you are in space you can fire as much as you want), it seems to be the volume of shots coming from the police craft.

```
(gdb) run
Starting program: /home/alan/Games/Pioneer-git/pioneer/src/pioneer
[Thread debugging using libthread_db enabled]
SDL_GetVideoInfo says 32 bpp
Failed to set video mode. (Couldn't find matching GLX visual). Re-trying without multisampling.
Requested AA mode: 2x, actual: 0x
OpenGL system information saved to /home/alan/.pioneer/opengl.txt
Initialized Legacy renderer
REMEMBER TO PORT ship6model!!!
If you see Error IMG_Load below, delete your ~/.pioneer/model_cache folder.
ShipType: 30 ships with tag 'ship'
ShipType: 2 ships with tag 'static_ship'
ShipType: 4 ships with tag 'missile'
[New Thread 0xb43b1b70 (LWP 1801)]
[New Thread 0xafbafb70 (LWP 1802)]
[Thread 0xafbafb70 (LWP 1802) exited]
[New Thread 0xafbafb70 (LWP 1803)]
Sol:
height fractal: Flat
colour fractal: StarG
seed: 2435619776
Mercury:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 438007901
Venus:
height fractal: HillsDunes
colour fractal: Desert
seed: 1292667169
Earth:
height fractal: Mapped
colour fractal: EarthLike
seed: 485323049
Moon:
height fractal: Mapped2
colour fractal: Rock
seed: 4294967291
Mars:
height fractal: HillsRidged
colour fractal: TFPoor
seed: 4
Phobos:
height fractal: Asteroid
colour fractal: Asteroid
seed: 3115293485
Deimos:
height fractal: Asteroid
colour fractal: Asteroid
seed: 2612980861
Jupiter:
height fractal: Flat
colour fractal: GGUranus
seed: 21
Io:
height fractal: RuggedLava
colour fractal: Volcanic
seed: 7510
Europa:
height fractal: RuggedDesert
colour fractal: Ice
seed: 10
Ganymede:
height fractal: HillsNormal
colour fractal: Rock
seed: 2
Callisto:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 1719931119
Saturn:
height fractal: Flat
colour fractal: GGSaturn
seed: 14
Titan:
height fractal: RuggedLava
colour fractal: Desert
seed: 7
Rhea:
height fractal: HillsCraters2
colour fractal: Rock
seed: 4022616711
Iapetus:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 3684481003
Dione:
height fractal: HillsCraters2
colour fractal: Rock
seed: 3004159593
Uranus:
height fractal: Flat
colour fractal: GGUranus
seed: 28
Titania:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 2337582404
Oberon:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 3609928613
Umbriel:
height fractal: HillsCraters2
colour fractal: Rock
seed: 1145340775
Ariel:
height fractal: HillsCraters2
colour fractal: Rock
seed: 1678750972
Neptune:
height fractal: Flat
colour fractal: GGJupiter
seed: 24
Triton:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 4049758662
Nereid:
height fractal: Asteroid
colour fractal: Asteroid
seed: 3803715981
Proteus:
height fractal: Asteroid
colour fractal: Asteroid
seed: 2057367491
Pluto:
height fractal: MountainsCraters2
colour fractal: Rock
seed: 22255697
Charon:
height fractal: HillsCraters2
colour fractal: Rock
seed: 3533556160
PY-2900 leaves frame Clarke's Station
BF-4620 alert changed to SHIP_NEARBY
BF-4620 alert changed to SHIP_FIRING

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install SDL-1.2.14-12.fc15.i686 SDL_image-1.2.10-2.fc15.i686 dbus-libs-1.4.6-5.fc15.i686 expat-2.0.1-11.fc15.i686 flac-1.2.1-8.fc15.i686 freetype-2.4.4-7.fc15.i686 glibc-2.14.1-5.i686 libGLEW-1.5.8-4.fc15.i686 libICE-1.0.6-3.fc15.i686 libSM-1.2.0-2.fc15.i686 libX11-1.4.3-1.fc15.i686 libXau-1.0.6-2.fc15.i686 libXcursor-1.1.11-3.fc15.i686 libXdamage-1.1.3-2.fc15.i686 libXext-1.2.0-2.fc15.i686 libXfixes-5.0-1.fc15.i686 libXi-1.4.3-3.fc15.i686 libXrandr-1.3.1-2.fc15.i686 libXrender-0.9.6-2.fc15.i686 libXtst-1.2.0-2.fc15.i686 libXxf86vm-1.1.1-2.fc15.i686 libasyncns-0.8-2.fc15.i686 libdrm-2.4.26-2.fc15.i686 libgcc-4.6.1-9.fc15.i686 libjpeg-turbo-1.1.1-3.fc15.i686 libogg-1.2.2-3.fc15.i686 libpciaccess-0.12.1-1.fc15.i686 libpng-1.2.46-1.fc15.i686 libselinux-2.0.99-4.fc15.i686 libsigc++20-2.2.9-1.fc15.i686 libsndfile-1.0.25-1.fc15.i686 libstdc++-4.6.1-9.fc15.i686 libtiff-3.9.5-1.fc15.i686 libuuid-2.19.1-1.4.fc15.i686 libvorbis-1.3.2-1.fc15.i686 libxcb-1.7-2.fc15.i686 mesa-dri-drivers-7.11.2-1.fc15.i686 mesa-libGL-7.11.2-1.fc15.i686 mesa-libGLU-7.11.2-1.fc15.i686 pulseaudio-libs-0.9.22-5.fc15.i686 tcp_wrappers-libs-7.6-60.fc15.i686 xcb-util-0.3.6-2.fc15.i686 zlib-1.2.5-6.fc15.i686
(gdb)
```

Information from 'bt':

```
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x081a70a0 in Graphics::Shader::Unuse (this=0x0) at Shader.cpp:159
#2 0x08127361 in Ship::Render (this=0xbd77ad0, renderer=0x87e46f0, viewCoords=..., viewTransform=...) at Ship.cpp:1082
#3 0x08058603 in Camera::Draw (this=0xafb3258, renderer=0x87e46f0) at Camera.cpp:160
#4 0x0817722f in WorldView::Draw3D (this=0xaf19038) at WorldView.cpp:355
#5 0x080f1e7c in Pi::MainLoop () at Pi.cpp:1271
#6 0x080f368a in Pi::Start () at Pi.cpp:1180
#7 0x080517a5 in main (argc=1) at main.cpp:18
(gdb)
```