On Tue, May 25, 2010 at 10:34 AM, Curtis Olson wrote:

> Hi,
>
> I am having a problem running the latest flightgear and simgear from the
> gitorious repository.  Here is a back trace of my crash.  Please note that
> the CVS version of FlightGear runs just fine on my system, and I've just
> reinstalled the latest nvidia graphics drivers so I'm 99.99% confident this
> isn't a system configuration problem.
>
> OS = Fedora 12 (with all the latest system updates installed)
> Graphics drivers = NVIDIA-Linux-x86_64-195.36.15-pkg2.run
> CPU = 64-bit dual core athlon
> kernel = 2.6.32.12-115.fc12.x86_64
> OSG = 2.9.7
>
> Here's a back-trace from gdb:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000a0850d in SGExpression<bool>::getValue (this=0x0,
>     binding=0x7fffffffd830) at
> ../../../simgear/structure/SGExpression.hxx:123
> 123  { T value; eval(value, binding); return value; }
> Missing separate debuginfos, use: debuginfo-install
> alsa-lib-1.0.23-1.fc12.x86_64 dbus-libs-1.2.16-9.fc12.x86_64
> flac-1.2.1-6.fc12.x86_64 freealut-1.1.0-11.fc12.x86_64
> freeglut-2.6.0-1.fc12.x86_64 glibc-2.11.1-6.x86_64
> libICE-1.0.6-1.fc12.x86_64 libSM-1.1.0-7.fc12.x86_64
> libX11-1.3-1.fc12.x86_64 libXau-1.0.5-1.fc12.x86_64
> libXext-1.1-2.fc12.x86_64 libXi-1.3-2.fc12.x86_64 libXmu-1.0.5-1.fc12.x86_64
> libXrandr-1.3.0-5.fc12.x86_64 libXrender-0.9.5-1.fc12.x86_64
> libXt-1.0.7-1.fc12.x86_64 libXtst-1.0.99.2-3.fc12.x86_64
> libXxf86vm-1.1.0-1.fc12.x86_64 libasyncns-0.8-1.fc12.x86_64
> libcap-ng-0.6.2-3.fc12.x86_64 libgcc-4.4.3-4.fc12.x86_64
> libogg-1.1.4-2.fc12.x86_64 libpng-1.2.43-1.fc12.x86_64
> libsndfile-1.0.20-3.fc12.x86_64 libstdc++-4.4.3-4.fc12.x86_64
> libuuid-2.16.2-9.fc12.x86_64 libvorbis-1.2.3-4.fc12.x86_64
> libxcb-1.5-1.fc12.x86_64 mesa-libGLU-7.7-4.fc12.x86_64
> openal-soft-1.12.854-1.fc12.x86_64 pulseaudio-libs-0.9.21-5.fc12.x86_64
> tcp_wrappers-libs-7.6-56.fc12.x86_64 zlib-1.2.3-23.fc12.x86_64
> (gdb) where
> #0  0x0000000000a0850d in SGExpression<bool>::getValue (this=0x0,
>     binding=0x7fffffffd830) at
> ../../../simgear/structure/SGExpression.hxx:123
> #1  0x0000000000a2a180 in simgear::Technique::validateInContext (
>     this=0x7fffe4873a10, gc=0x11707a0) at Technique.cxx:118
> #2  0x0000000000a29a96 in simgear::(anonymous
> namespace)::ValidateOperation::operator() (this=0x12ddb5a0, gc=0x11707a0) at
> Technique.cxx:51
>  #3  0x00007ffff6579429 in osg::GraphicsContext::runOperations() ()
>    from /usr/local/lib64/libosg.so.63
> #4  0x00007ffff7459cdc in osgViewer::ViewerBase::renderingTraversals() ()
>    from /usr/local/lib64/libosgViewer.so.63
> #5  0x0000000000496695 in fgOSMainLoop () at fg_os_osgviewer.cxx:204
> #6  0x000000000043297c in fgMainInit (argc=1, argv=0x7fffffffe218)
>     at main.cxx:945
> #7  0x000000000042ecae in main (argc=1, argv=0x7fffffffe218)
>     at bootstrap.cxx:229
>
> There's no difference between Technique.cxx in the cvs vs. git
> repositories, The CVS version of flightgear runs fine against the fgdata-git
> tree.  The git version of flightgear crashes.  I do observer there are a
> bunch of shader/effect code differences between simgear-cvs and simgear-git.
>  Could something new in that code be breaking FlightGear?  Is anyone else
> having trouble running the git version of FlightGear?  There is always a
> non-zero possibility I'm doing something stupid on my end, but I've tried to
> rule out all the stupid things I normally do before posting.  (I've done a
> complete clean rebuild from scratch, reinstalled my graphics drivers,
> verified the cvs version of flightgear does run fine, made sure I've pulled
> the latest changes for simgear/flightgear/fgdata, rebooted, etc. etc. etc.)
>

Here is a follow up to my own message:

If I change line #118 in simgear/scene/material/Technique.cxx

from:

     if (_validExpression->getValue(&binding))
        newVal = VALID;

to:

     if (_validExpression && _validExpression->getValue(&binding))
        newVal = VALID;

Then flightgear comes up and runs.  However, the urban areas are missing
(pointing to a problem with the urban shader effect ??? and there are other
weird shading/lighting issues.)

Thanks,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
------------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to