- Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x0000000000ed9e62 in simgear::canvas::Element::getParentStyle(SGPropertyNode const*) const ()
(gdb)
So, any idea how to fix this?
Program received signal SIGSEGV, Segmentation fault.
0x0000000000ed9e62 in simgear::canvas::Element::getParentStyle(SGPropertyNode const*) const ()
(gdb)
as well as a full back trace
me.menuObjects.removeAllChildren();
canvas.parsesvg(me.menuObjects, me.menus[menu].path, {'font-mapper':font_mapper});
What exactly would that look like?
Segmentation fault:
#0 0x0000000000f898ad in simgear::canvas::Element::getParentStyle(SGPropertyNode const*) const ()
#1 0x0000000000f899ec in simgear::canvas::Element::childRemoved(SGPropertyNode*, SGPropertyNode*) ()
#2 0x00000000011b4731 in SGPropertyNode::fireChildrenRemovedRecursive() ()
#3 0x00000000011aedb7 in simgear::PropertyBasedMgr::childRemoved(SGPropertyNode*, SGPropertyNode*) ()
#4 0x00000000011b5b30 in SGPropertyNode::eraseChild(__gnu_cxx::__normal_iterator<SGSharedPtr<SGPropertyNode>*, std::vector<SGSharedPtr<SGPropertyNode>, std::allocator<SGSharedPtr<SGPropertyNode> > > >) ()
#5 0x00000000011b5fa0 in SGPropertyNode::removeChild(char const*, int) ()
#6 0x0000000000b369c4 in f_removeChild(Context*, naRef, int, naRef*) ()
#7 0x00000000011881bf in setupFuncall ()
#8 0x0000000001189b11 in run ()
#9 0x000000000118bc78 in naCall ()
#10 0x000000000118bd86 in naCallMethodCtx ()
#11 0x0000000000fc4ce7 in boost::disable_if<boost::is_void<naRef>, naRef>::type nasal::detail::callNasalMethod<naRef>(nasal::ObjectHolder<SGReferenced> const*, nasal::Me) ()
#12 0x0000000000fc27fe in simgear::canvas::NasalWidget::onRemove() ()
#13 0x0000000000fbce29 in simgear::canvas::BoxLayout::~BoxLayout() ()
#14 0x0000000000fbde6c in simgear::canvas::VBoxLayout::~VBoxLayout() ()
#15 0x0000000000fd405c in simgear::canvas::Canvas::~Canvas() ()
#16 0x00000000011a0fee in nasal::ghostProcessDestroyList() ()
#17 0x0000000000b261d3 in FGNasalSys::update(double) ()
#18 0x00000000011f717d in SGSubsystemGroup::Member::update(double) ()
#19 0x00000000011f657b in SGSubsystemGroup::update(double) ()
#20 0x00000000011f6258 in SGSubsystemMgr::update(double) ()
#21 0x0000000000754880 in fgMainLoop() ()
#22 0x0000000000cdb56c in fgOSMainLoop() ()
#23 0x00000000007556c5 in fgMainInit(int, char**) ()
#24 0x0000000000728dea in main ()
Program received signal SIGSEGV, Segmentation fault.
0x0000000000ed9e62 in simgear::canvas::Element::getParentStyle(SGPropertyNode const*) const ()
(gdb) backtrace
#0 0x0000000000ed9e62 in simgear::canvas::Element::getParentStyle(SGPropertyNode const*) const ()
#1 0x0000000000edb84a in simgear::canvas::Element::childRemoved(SGPropertyNode*, SGPropertyNode*) ()
#2 0x00000000010e68c3 in SGPropertyNode::fireChildRemoved(SGPropertyNode*, SGPropertyNode*) ()
#3 0x00000000010e6946 in SGPropertyNode::fireChildrenRemovedRecursive() ()
#4 0x00000000010df743 in simgear::PropertyBasedMgr::childRemoved(SGPropertyNode*, SGPropertyNode*) ()
#5 0x00000000010e68c3 in SGPropertyNode::fireChildRemoved(SGPropertyNode*, SGPropertyNode*) ()
#6 0x00000000010e6946 in SGPropertyNode::fireChildrenRemovedRecursive() ()
#7 0x00000000010df743 in simgear::PropertyBasedMgr::childRemoved(SGPropertyNode*, SGPropertyNode*) ()
#8 0x00000000010e68c3 in SGPropertyNode::fireChildRemoved(SGPropertyNode*, SGPropertyNode*) ()
#9 0x00000000010e6fb2 in SGPropertyNode::eraseChild(__gnu_cxx::__normal_iterator<SGSharedPtr<SGPropertyNode>*, std::vector<SGSharedPtr<SGPropertyNode>, std::allocator<SGSharedPtr<SGPropertyNode> > > >) ()
#10 0x00000000010eb41a in SGPropertyNode::removeChildren(char const*) ()
#11 0x0000000000ae25af in f_removeChildren(Context*, naRef, int, naRef*) ()
#12 0x00000000010b82dc in run ()
#13 0x00000000010b915d in naCall ()
#14 0x00000000010b93e4 in naCallMethodCtx ()
#15 0x0000000000ad5d19 in FGNasalSys::handleCommand(char const*, char const*, char const*, SGPropertyNode const*) ()
#16 0x0000000000ad393a in FGNasalSys::handleCommand(SGPropertyNode const*) ()
#17 0x00000000010ffe1b in SGBinding::innerFire() const ()
#18 0x00000000011017c6 in fireBindingList(std::vector<SGSharedPtr<SGBinding>, std::allocator<SGSharedPtr<SGBinding> > > const&, SGPropertyNode*) ()
#19 0x0000000000f785ff in SGPickAnimation::PickCallback::buttonPressed(int, osgGA::GUIEventAdapter const&, SGPickCallback::Info const&) ()
#20 0x0000000000895646 in ActivePickCallbacks::init(int, osgGA::GUIEventAdapter const*) ()
#21 0x0000000000895dcf in FGMouseInput::doMouseClick(int, int, int, int, bool, osgGA::GUIEventAdapter const*) ()
#22 0x00000000008961c9 in mouseClickHandler(int, int, int, int, bool, osgGA::GUIEventAdapter const*) ()
#23 0x0000000000c44c9e in flightgear::FGEventHandler::handle(osgGA::GUIEventAdapter const&, osgGA::GUIActionAdapter&) ()
#24 0x00007ffff691e737 in osgViewer::Viewer::eventTraversal() ()
from /usr/lib/libosgViewer.so.99
#25 0x00007ffff691fed9 in osgViewer::ViewerBase::frame(double) ()
from /usr/lib/libosgViewer.so.99
#26 0x0000000000c4aafa in fgOSMainLoop() ()
#27 0x00000000006f913e in fgMainInit(int, char**) ()
#28 0x00000000006bfd36 in main ()
# http://plausible.org/nasal/lib.html
# call(fn, args=[], me=nil, namespace=nil, error=nil)
var try = func(function, arguments=[], object=nil, namespace=nil, catch=nil ) {
var error = [];
call(function, arguments, object, namespace, error);
if (typeof(catch) == 'func' and size(error))
catch(error);
};
var faulty = func() die("triggers a runtime error!");
try( function: faulty, catch: func(error) {
debug.dump(error);
debug.bt();
} );
Users browsing this forum: No registered users and 6 guests