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 bootstrap.cxx:192 /root/aerocross/fgfs/FlightGear-0.9.8/src/Main/bootstrap.cxx:192:4788:beg:0x8051890 (gdb) frame 20 #20 0x08054ca8 in fgMainInit (argc=5, argv=0xfefdb624) at main.cxx:958 /root/aerocross/fgfs/FlightGear-0.9.8/src/Main/main.cxx:958:33765:beg:0x8054ca8 (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 fg_os.cxx:108 /root/aerocross/fgfs/FlightGear-0.9.8/src/Main/fg_os.cxx:108:2408:beg:0x8080c74 (gdb) frame 16 #16 0x08080b4a in callKeyHandler (k=115, mods=0, x=507, y=327) at fg_os.cxx:74 /root/aerocross/fgfs/FlightGear-0.9.8/src/Main/fg_os.cxx:74:1553:beg:0x8080b4a (gdb) frame 15 #15 0x082c8895 in keyHandler (key=115, keymod=0, mousex=507, mousey=327) at input.cxx:983 /root/aerocross/fgfs/FlightGear-0.9.8/src/Input/input.cxx:983:28731:beg:0x82c8895 (gdb) frame 14 #14 0x082c3f51 in FGInput::doKey (this=0x99157b0, k=2, modifiers=0, x=507, y=327) at stl_vector.h:515 /usr/include/c++/3.3.3/bits/stl_vector.h:515:19040:beg:0x82c3f51 (gdb) frame 13 #13 0x082c32e2 in FGBinding::fire (this=0x9fd33d0) at input.cxx:122 /root/aerocross/fgfs/FlightGear-0.9.8/src/Input/input.cxx:122:3195:beg:0x82c32e2 (gdb) frame 12 #12 0x08059059 in do_panel_load (arg=0xa407580) at fg_commands.cxx:347 /root/aerocross/fgfs/FlightGear-0.9.8/src/Main/fg_commands.cxx:347:9576:beg:0x8059059 (gdb) frame 11 #11 0x080f2498 in fgReadPanel ([EMAIL PROTECTED]) at panel_io.cxx:800 /root/aerocross/fgfs/FlightGear-0.9.8/src/Cockpit/panel_io.cxx:800:24942:beg:0x80f2498 (gdb) frame 10 #10 0x080f09fd in readPanel (root=0xfefdacf0) at basic_string.h:717 /usr/include/c++/3.3.3/bits/basic_string.h:717:22443:beg:0x80f09fd (gdb) frame 9 #9 0x080e762e in FGTextureManager::createTexture ([EMAIL PROTECTED]) at sg_path.hxx:127 /usr/local/include/simgear/misc/sg_path.hxx:127:3303:beg:0x80e762e (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 "/usr/local/share/FlightGear/Aircraft/c172/Panels/Textures/panel-trans-mini-bg.rgb", info=0xfefda9b0) at ssgLoadTexture.cxx:310 in ssgLoadTexture.cxx (gdb) frame 6 #6 0x08474173 in ssgLoadSGI (fname=0xbe32cb8 "/usr/local/share/FlightGear/Aircraft/c172/Panels/Textures/panel-trans-mini-bg.rgb", info=0xfefda9b0) at ssgLoadSGI.cxx:497 in ssgLoadSGI.cxx (gdb) frame 5 #5 0x08473b88 in ssgSGIHeader (this=0xbf22058, fname=0xbe32cb8 "/usr/local/share/FlightGear/Aircraft/c172/Panels/Textures/panel-trans-mini-bg.rgb", 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 ssgLoadTexture.cxx:163 in ssgLoadTexture.cxx (gdb) frame 3 #3 0x001700b7 in __indirect_glTexImage2D () from /usr/X11R6/lib/libGL.so.1 (gdb) frame 2 #2 0x0016f71c in __indirect_glSamplePatternSGIS () from /usr/X11R6/lib/libGL.so.1 (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 (gdb) _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d