NikolaiVChr / f16

General Dynamics F-16 for Flightgear flight simulator
GNU General Public License v2.0
115 stars 36 forks source link

Cancel DTC load from clicking in cockpit crashes FG #519

Open NikolaiVChr opened 1 year ago

NikolaiVChr commented 1 year ago

Clicking on the DTC panel in cockpit and selecting cancel will crash FG 2020.3.xx in Linux.

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fce5f7ed66c in osgDB::SharedStateManager::share (this=0x227c040, node=0x0, mt=mt@entry=0x0) at /media/reglnx/FG/SourceCodes/OpenSceneGraph/src/osgDB/SharedStateManager.cpp:75
75        node->accept(*this);
[Current thread is 1 (Thread 0x7fce5bb09bc0 (LWP 101489))]

Backtrace:

#0  0x00007fce5f7ed66c in osgDB::SharedStateManager::share(osg::Node*, OpenThreads::Mutex*) (this=0x227c040, node=0x0, mt=mt@entry=0x0) at /media/reglnx/FG/SourceCodes/OpenSceneGraph/src/osgDB/SharedStateManager.cpp:75
#1  0x00007fce5f7999c3 in osgDB::DatabasePager::addLoadedDataToSceneGraph(osg::FrameStamp const&) (this=0x2399a90, frameStamp=<optimized out>) at /media/reglnx/FG/SourceCodes/OpenSceneGraph/include/osg/ref_ptr:131
        plod = <optimized out>
        timeToMerge = <optimized out>
        databaseRequest = 0x7fcdf417b220
        group = {_ptr = 0x7fcd3cf7dfd0}
        itr = {_ptr = 0x7fcdf417b220}
        timeStamp = 1143.8447759999999
        frameNumber = 38684
        before = 18042786179
        mid = 18042786180
        last = <optimized out>
        localFileLoadedList = std::__cxx11::list = {[0] = {_ptr = 0x7fcdf417b220}, [1] = {_ptr = 0x7fcdf417b220}}
#2  0x00007fce5f5775da in osgViewer::Scene::updateSceneGraph(osg::NodeVisitor&) (this=0x28757a0, updateVisitor=...) at /media/reglnx/FG/SourceCodes/OpenSceneGraph/src/osgViewer/Scene.cpp:137
#3  0x00007fce5f5ab50d in osgViewer::Viewer::updateTraversal() (this=0x2682920) at /media/reglnx/FG/SourceCodes/OpenSceneGraph/include/osg/ref_ptr:120
        beginUpdateTraversal = 1143.844799
#4  0x00007fce5f5ad658 in osgViewer::ViewerBase::frame(double) (this=0x2682920, simulationTime=<optimized out>) at /media/reglnx/FG/SourceCodes/OpenSceneGraph/src/osgViewer/ViewerBase.cpp:747
#5  0x0000000000fe4a4e in fgOSMainLoop() () at /media/reglnx/FG/SourceCodes/FlightGear/src/Main/globals.hxx:199
        idleFunc = <optimized out>
#6  0x0000000001088ff7 in fgMainInit(int, char**) (argc=<optimized out>, argv=0x7ffcb823e5c8) at /media/reglnx/FG/SourceCodes/FlightGear/src/Main/main.cxx:766
        initHomeResult = <optimized out>
        showLauncher = <optimized out>
        readOnlyFGHome = <optimized out>
        version = "2020.3.18"
        col = <optimized out>
        configResult = <optimized out>
        errorManager = <optimized out>
        resMgr = <optimized out>
        locale = "en_IE"
        result = <optimized out>
        requestLauncherRestart = <optimized out>
#7  0x00000000009251ca in main(int, char**) (argc=12, argv=0x7ffcb823e5c8) at /media/reglnx/FG/SourceCodes/FlightGear/src/Main/bootstrap.cxx:370
        headless = <optimized out>
        _hostname = "blaster", '\000' <repeats 21 times>, "~\204.A\000\000\000\000\000\000\360?\001\000\000\000\377\377\377\377\263\202{\001\000\000\000\000\263\202{\001\000\000\000\000\000\364'\002\000\000\000\000\000\000K\\\316\177\000\000\000\000\000\000\000@Z@\000\000\000\000\000\200a@\232\231\231\231\231\231\231?\003\000\000\000\000\000\000\000\277p|\001\000\000\000\000\277p|\001\000\000\000\000\060\364'\002\000\000\000\000\000\000\305\001\000\000\000\000\000\000\000\000\000\000i@\000\276\200\000\000\000\000\000\350O\305\001\000\000\000\000\000\276\200\000\000\000\000\000\350O\305\001\000\000\000\000\002iF\\\316\177\000\000\251\002\000\000\000\000\000\000"...
        fgviewer = false
        exitStatus = 1

Reported by Megaf