Hello all -

I'm creating/applying a texture under the HUD in order to
project the HUD onto live video.  Works fine until I get
smacked with a Segmentation fault (trace attached) that seems
to be appearing over in plib. ???

I can faithfully recreate the seg fault with the following steps:
1.  fgfs --fov=70 --timeofday=noon --enable-fullscreen
--enable-textures  --airport=KVPS  --aircraft=c172p-2dpanel
2.  Enable the HUD ("h").  Video comes up behind the HUD happily.
3.  Switch the minipanel mode ("s").
4.  BOOM (@#$%!!!)

If I swap 2 and 3, I can fly around in the immediate area with
the video active... but 4 will follow when I fly for a while.

Is there something that forbids creation/use of textures
outside of the plib domain?
Is plib sloppy with the way it allocates/destroys textures?
Does plib allocate its memory up front?

Thanks for any insight you folks can provide.

D Wysong

--------------- DDD TRACE ----------------
(gdb) frame 21
#21 0x08051890 in main (argc=5, argv=0xfefdb624) at
(gdb) frame 20
#20 0x08054ca8 in fgMainInit (argc=5, argv=0xfefdb624) at
(gdb) frame 19
#19 0x004f5455 in glutMainLoop () from /usr/lib/libglut.so.3
(gdb) frame 18
#18 0x004f4d65 in glutMainLoopEvent () from /usr/lib/libglut.so.3
(gdb) frame 17
#17 0x08080c74 in GLUTkey (k=115 's', x=507, y=327) at
(gdb) frame 16
#16 0x08080b4a in callKeyHandler (k=115, mods=0, x=507, y=327)
at fg_os.cxx:74
(gdb) frame 15
#15 0x082c8895 in keyHandler (key=115, keymod=0, mousex=507,
mousey=327) at input.cxx:983
(gdb) frame 14
#14 0x082c3f51 in FGInput::doKey (this=0x99157b0, k=2,
modifiers=0, x=507, y=327) at stl_vector.h:515
(gdb) frame 13
#13 0x082c32e2 in FGBinding::fire (this=0x9fd33d0) at
(gdb) frame 12
#12 0x08059059 in do_panel_load (arg=0xa407580) at
(gdb) frame 11
#11 0x080f2498 in fgReadPanel ([EMAIL PROTECTED]) at
(gdb) frame 10
#10 0x080f09fd in readPanel (root=0xfefdacf0) at
(gdb) frame 9
#9  0x080e762e in FGTextureManager::createTexture
([EMAIL PROTECTED]) at sg_path.hxx:127
(gdb) frame 8
#8  0x0846fc71 in ssgTexture (this=0xbf5ccb0, fname=0xbf5ccb0
"HN\b", _wrapu=1, _wrapv=1, _mipmap=1) at ssgTexture.cxx:139
        in ssgTexture.cxx
(gdb) frame 7
#7  0x08472b18 in ssgLoadTexture (filename=0xbe32cb8
info=0xfefda9b0) at ssgLoadTexture.cxx:310
        in ssgLoadTexture.cxx
(gdb) frame 6
#6  0x08474173 in ssgLoadSGI (fname=0xbe32cb8
info=0xfefda9b0) at ssgLoadSGI.cxx:497
        in ssgLoadSGI.cxx
(gdb) frame 5
#5  0x08473b88 in ssgSGIHeader (this=0xbf22058,
info=0xfefda9b0) at ssgLoadSGI.cxx:358
(gdb) frame 4
#4  0x08472726 in ssgMakeMipMaps (image=0x1 <Address 0x1 out
of bounds>, xsize=256, ysize=256, zsize=4) at
        in ssgLoadTexture.cxx
(gdb) frame 3
#3  0x001700b7 in __indirect_glTexImage2D () from
(gdb) frame 2
#2  0x0016f71c in __indirect_glSamplePatternSGIS () from
(gdb) frame 1
#1  0x0016d91c in __glFillImage () from /usr/X11R6/lib/libGL.so.1
(gdb) frame 0
#0  0x00819ffc in memcpy () from /lib/tls/libc.so.6

Flightgear-devel mailing list

Reply via email to