Home › Forum › SOFA › Using SOFA › Problem while opening the sensable example- SOFA crashes while opening example
Tagged: 64 bits, Linux Ubuntu
- This topic has 9 replies, 5 voices, and was last updated 7 years ago by
Hugo.
-
AuthorPosts
-
23 September 2016 at 08:16 #7532
malli
BlockedHere is the problem occured while opening sensable example for haptic interface and sofa gui crashes when example is opened
[INFO] [PluginManager] Loaded plugin: /home/mallikarjuna/sofa/v16.08/build/ <blockquote>lib/libSensable.so [WARNING] [DAGNode] ERROR parsing Link "": empty path. [WARNING] [InteractiveCamera] Too many missing parameters ; taking default ... ########## SIG 11 ########## -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaHelper.so.16.08.0(sofa::helper::BackTrace::dump()+0x23) [0x7f3b4ee1ef93] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaHelper.so.16.08.0(sofa::helper::BackTrace::sig(int)+0x27) [0x7f3b4ee1f167] -> /lib/x86_64-linux-gnu/libc.so.6(+0x354a0) [0x7f3b4e2454a0] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::init()+0x300) [0x7f3b2c3bd750] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::InitVisitor::processNodeTopDown(sofa::simulation::Node*)+0xe8) [0x7f3b50cf7438] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationGraph.so.16.08.0(sofa::simulation::graph::DAGNode::executeVisitorTopDown(sofa::simulation::Visitor*, sofa::helper::list<sofa::simulation::graph::DAGNode*, std::allocator<sofa::simulation::graph::DAGNode*> >&, std::map<sofa::simulation::graph::DAGNode*, sofa::simulation::graph::DAGNode::StatusStruct, std::less<sofa::simulation::graph::DAGNode*>, std::allocator<std::pair<sofa::simulation::graph::DAGNode* const, sofa::simulation::graph::DAGNode::StatusStruct> > >&, sofa::simulation::graph::DAGNode*)+0x2d9) [0x7f3b52b1e0f9] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationGraph.so.16.08.0(sofa::simulation::graph::DAGNode::doExecuteVisitor(sofa::simulation::Visitor*, bool)+0xae) [0x7f3b52b1e6ae] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::Node::executeVisitor(sofa::simulation::Visitor*, bool)+0x144) [0x7f3b50d15544] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::Simulation::init(sofa::simulation::Node*)+0xeb) [0x7f3b50d6a85b] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::fileOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)+0x2ae) [0x7f3b4ddd5f2e] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::fileOpen()+0x687) [0x7f3b4ddd5747] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(+0x300d9d) [0x7f3b4dd76d9d] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QMetaObject::activate(QObject*, int, int, void**)+0x7ea) [0x7f3b3aa8cfca] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAction::triggered(bool)+0x42) [0x7f3b3b347412] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAction::activate(QAction::ActionEvent)+0xf8) [0x7f3b3b349898] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d5e22) [0x7f3b3b4cbe22] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2dc0bc) [0x7f3b3b4d20bc] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QMenu::mouseReleaseEvent(QMouseEvent*)+0x1d0) [0x7f3b3b4d6030] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QWidget::event(QEvent*)+0x668) [0x7f3b3b393f88] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QMenu::event(QEvent*)+0x113) [0x7f3b3b4d6a83] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c) [0x7f3b3b35105c] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x959) [0x7f3b3b356c19] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::notifyInternal(QObject*, QEvent*)+0xdb) [0x7f3b3aa5e62b] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x3c2) [0x7f3b3b355b32] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1b88dd) [0x7f3b3b3ae8dd] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1bab3b) [0x7f3b3b3b0b3b] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c) [0x7f3b3b35105c] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x256) [0x7f3b3b356516] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::notifyInternal(QObject*, QEvent*)+0xdb) [0x7f3b3aa5e62b] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)+0x281) [0x7f3b3ada0521] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)+0x135) [0x7f3b3ada21e5] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x28) [0x7f3b3ad85f38] -> /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x6b070) [0x7f3b32d70070] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f3b36fe91a7] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a400) [0x7f3b36fe9400] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f3b36fe94ac] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x5f) [0x7f3b3aab4a7f] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x10a) [0x7f3b3aa5bdea] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::exec()+0x9c) [0x7f3b3aa63e8c] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::mainLoop()+0x93) [0x7f3b4ddcebf3] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiCommon.so.16.08.0(sofa::gui::GUIManager::MainLoop(boost::intrusive_ptr<sofa::simulation::Node>, char const*)+0x23) [0x7f3b526e60f3] -> bin/runSofa(main+0xc5a) [0x40666a] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f3b4e230830] -> bin/runSofa(_start+0x29) [0x406fc9] Segmentation fault (core dumped)
can some one help me over this….
23 September 2016 at 12:12 #7544jnbrunet
ModeratorHi Malli,
Can you give us a little more details on this please:
1. Which scene did you try?
2. Did you use my commit from your previous post to fix the compilation of the plugin? If not, could you paste your NewOmniDriver::init method?
3. Could you compile in debug mode and launch sofa with GDB in order to get the line number that cause the seg fault?Thank you,
J-N26 September 2016 at 07:30 #7545malli
BlockedHi J-N
I was trying to open simplebox-distancegrid.scn example scene of Sensable.
I have used your commit to fix the error… please check NewOmniDriver::init method
void NewOmniDriver::init() { sofa::simulation::Node::SPtr rootContext = static_cast<simulation::Node*>(this->getContext()->getRootContext()); if(firstDevice) { //simulation::Node *context = dynamic_cast<simulation::Node*>(this->getContext()->getRootContext()); //context->getTreeObjects<NewOmniDriver>(&autreOmniDriver); rootContext->getTreeObjects<NewOmniDriver>(&autreOmniDriver); sout<<"Detected NewOmniDriver:"<<sendl; for(unsigned int i=0; i<autreOmniDriver.size(); i++) { sout<<" device "<<i<<" = "<<autreOmniDriver[i]->getName()<<autreOmniDriver[i]->deviceName.getValue()<<sendl; autreOmniDriver[i]->deviceIndex.setValue(i); hHDVector.push_back(HD_INVALID_HANDLE); autreOmniDriver[i]->firstDevice=false; autreOmniDriver[i]->data.currentForce[0]=0; autreOmniDriver[i]->data.currentForce[1]=0; autreOmniDriver[i]->data.currentForce[2]=0; } firstDevice=true; } sout << deviceName.getValue()+" init" << sendl; if(alignOmniWithCamera.getValue()) { camera = this->getContext()->get<component::visualmodel::InteractiveCamera>(this->getTags(), sofa::core::objectmodel::BaseContext::SearchRoot); if(!camera) { camera = this->getContext()->get<component::visualmodel::InteractiveCamera>(); } if (!camera) { sofa::simulation::Node::SPtr groot = dynamic_cast<simulation::Node*>(this->getContext()); camera = sofa::core::objectmodel::New<component::visualmodel::InteractiveCamera>(); camera->setName(core::objectmodel::Base::shortName(camera.get())); groot->addObject(camera); camera->bwdInit(); } if(!camera) { serr << "Cannot find or create Camera." << sendl; } } modX=false; modY=false; modZ=false; modS=false; axesActif=false; initDeviceBool=false; VecCoord& posD =(*posDevice.beginEdit()); posD.resize(NVISUALNODE+1); posDevice.endEdit(); initVisu=false; changeScale=false; visuActif=false; isInitialized = false; frame=false; visuCreation=false; for(int i=0; i<NVISUALNODE; i++) { visualNode[i].visu = NULL; visualNode[i].mapping = NULL; } // parent = dynamic_cast<simulation::Node*>(this->getContext()); //sofa::simulation::tree::GNode *parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(this->getContext()); // if (parentRoot->parent()) // parentRoot = parentRoot->parent(); //nodePrincipal= parentRoot->createChild("omniVisu "+deviceName.getValue()); nodePrincipal = rootContext->createChild("omniVisu "+deviceName.getValue()); nodePrincipal->updateContext(); DOFs=NULL; firstInit=false; if(!initVisu) { rigidDOF=NULL; if(rigidDOF==NULL) { rigidDOF = sofa::core::objectmodel::New<MMechanicalObject>(); nodePrincipal->addObject(rigidDOF); rigidDOF->name.setValue("rigidDOF"); VecCoord& posDOF =*(rigidDOF->x.beginEdit()); posDOF.resize(NVISUALNODE+1); rigidDOF->x.endEdit(); rigidDOF->init(); nodePrincipal->updateContext(); } for(int i=0; i<NVISUALNODE; i++) { visualNode[i].node = nodePrincipal->createChild(visualNodeNames[i]); if(visualNode[i].visu == NULL && visualNode[i].mapping == NULL) { // create the visual model and add it to the graph // visualNode[i].visu = sofa::core::objectmodel::New<sofa::component::visualmodel::OglModel>(); visualNode[i].node->addObject(visualNode[i].visu); visualNode[i].visu->name.setValue("VisualParticles"); visualNode[i].visu->fileMesh.setValue(visualNodeFiles[i]); visualNode[i].visu->init(); visualNode[i].visu->initVisual(); visualNode[i].visu->updateVisual(); // create the visual mapping and at it to the graph // visualNode[i].mapping = sofa::core::objectmodel::New< sofa::component::mapping::RigidMapping< Rigid3dTypes, ExtVec3fTypes > > (); visualNode[i].node->addObject(visualNode[i].mapping); visualNode[i].mapping->setModels(rigidDOF.get(), visualNode[i].visu.get()); visualNode[i].mapping->name.setValue("RigidMapping"); visualNode[i].mapping->f_mapConstraints.setValue(false); visualNode[i].mapping->f_mapForces.setValue(false); visualNode[i].mapping->f_mapMasses.setValue(false); //visualNode[i].mapping->m_inputObject.setValue("@../RigidDOF"); //visualNode[i].mapping->m_outputObject.setValue("@VisualParticles"); visualNode[i].mapping->index.setValue(i+1); visualNode[i].mapping->init(); } if(i<VN_X) nodePrincipal->removeChild(visualNode[i].node); } visualNode[VN_X].visu->setColor(1.0,0.0,0.0,0); visualNode[VN_Y].visu->setColor(0.0,1.0,0.0,0); visualNode[VN_Z].visu->setColor(0.0,0.0,1.0,0); nodePrincipal->updateContext(); for(int i=0; i<NVISUALNODE; i++) { visualNode[i].node->updateContext(); } for(int j=0; j<=VN_X; j++) { sofa::defaulttype::ResizableExtVector< sofa::defaulttype::Vec<3,float> > &scaleMapping = *(visualNode[j].mapping->points.beginEdit()); for(unsigned int i=0; i<scaleMapping.size(); i++) scaleMapping[i] *= (float)(1.0*scale.getValue()/100.0); visualNode[j].mapping->points.endEdit(); } oldScale=(float)scale.getValue(); changeScale=false; initVisu=true; visuActif=false; } Vec1d& openT = (*openTool.beginEdit()); openT[0]=maxTool.getValue(); openTool.endEdit(); }
I will try to find out the line number which causes seg fault
Sorry for the late reply
Thank you
malli26 September 2016 at 13:25 #7548jnbrunet
ModeratorHey malli,
I still can’t see why your application crashes on the init method. I just tried your init method with the v16.08 branch that you seems to be using and the init method executed without any issue.
You will however encounter an error in the onAnimateBeginEvent() later during the simulation if you use the scene simplebox-distancegrid.scn. I’ve just pushed a new commit in the pull request to fix this issue.
Also, check if your device’s name is “Default PHANToM”. If it isn’t, you will need to set the name of your device in the NewOmniDriver element of your scene, for example :
<NewOmniDriver (...) deviceName="Default Device" (...) />
Keep me updated.
J-N26 September 2016 at 17:35 #7549malli
BlockedHi J-N
I have used the second commit could not able open the scene and follwing error occurred… please check
[INFO] [PluginManager] Loaded plugin: /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so [WARNING] [DAGNode] ERROR parsing Link "": empty path. [WARNING] [InteractiveCamera] Too many missing parameters ; taking default ... FMM: Init. FMM: Initialize distance of edges crossing triangles. FMM: DONE. 121536 points inside ( 46 % ) [WARNING] [InteractiveCamera] Too many missing parameters ; taking default ... init Device is called Config directory not set correctly.: No such file or directory Configuration Error: Check the base address and port/adapter number. Consult the appropriate device drivers documentation. HHD: 4294967295 Error Code: 4294967295 Internal Error Code: -22 Message: [NewOmni] Failed to initialize the device Default PHANToM [WARNING] [NewOmniDriver] NO DEVICE NewOmniDriver::reset() is called NewOmniDriver::reinit() is called NewOmniDriver::cleanup() init Device is called Config directory not set correctly.: No such file or directory Default PHANToM[NewOmni] Found device Default PHANToM
########## SIG 11 ########## -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaHelper.so.16.08.0(sofa::helper::BackTrace::dump()+0x23) [0x7f22ead99f93] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaHelper.so.16.08.0(sofa::helper::BackTrace::sig(int)+0x27) [0x7f22ead9a167] -> /lib/x86_64-linux-gnu/libc.so.6(+0x354a0) [0x7f22ea1c04a0] -> /usr/lib/libHD.so.3.4(hd_enable_force_output(unsigned int, void*, void const*, HDDeviceState::StateEnum_)+0x9) [0x7f22c3de5d59] -> /usr/lib/libHD.so.3.4(hdEnable+0x3b) [0x7f22c3ddfd6b] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::initDevice()+0x2af) [0x7f22c814565f] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::bwdInit()+0x348) [0x7f22c8148648] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::reinit()+0x7b) [0x7f22c8144edb] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::ResetVisitor::processNodeTopDown(sofa::simulation::Node*)+0x3c) [0x7f22ecce3b5c] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationGraph.so.16.08.0(sofa::simulation::graph::DAGNode::executeVisitorTopDown(sofa::simulation::Visitor*, sofa::helper::list<sofa::simulation::graph::DAGNode*, std::allocator<sofa::simulation::graph::DAGNode*> >&, std::map<sofa::simulation::graph::DAGNode*, sofa::simulation::graph::DAGNode::StatusStruct, std::less<sofa::simulation::graph::DAGNode*>, std::allocator<std::pair<sofa::simulation::graph::DAGNode* const, sofa::simulation::graph::DAGNode::StatusStruct> > >&, sofa::simulation::graph::DAGNode*)+0x2d9) [0x7f22eea990f9] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationGraph.so.16.08.0(sofa::simulation::graph::DAGNode::doExecuteVisitor(sofa::simulation::Visitor*, bool)+0xae) [0x7f22eea996ae] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::Node::executeVisitor(sofa::simulation::Visitor*, bool)+0x144) [0x7f22ecc90544] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::Simulation::reset(sofa::simulation::Node*)+0xe3) [0x7f22ecce6f13] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::resetScene()+0x79) [0x7f22e9d4e159] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::setScene(boost::intrusive_ptr<sofa::simulation::Node>, char const*, bool)+0x21d) [0x7f22e9d53a1d] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::fileOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)+0x2fd) [0x7f22e9d50f7d] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::fileOpen()+0x687) [0x7f22e9d50747] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(+0x300d9d) [0x7f22e9cf1d9d] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QMetaObject::activate(QObject*, int, int, void**)+0x7ea) [0x7f22d6a07fca] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAction::triggered(bool)+0x42) [0x7f22d72c2412] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAction::activate(QAction::ActionEvent)+0xf8) [0x7f22d72c4898] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d5e22) [0x7f22d7446e22] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2dc0bc) [0x7f22d744d0bc] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QMenu::mouseReleaseEvent(QMouseEvent*)+0x1d0) [0x7f22d7451030] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QWidget::event(QEvent*)+0x668) [0x7f22d730ef88] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QMenu::event(QEvent*)+0x113) [0x7f22d7451a83] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c) [0x7f22d72cc05c] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x959) [0x7f22d72d1c19] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::notifyInternal(QObject*, QEvent*)+0xdb) [0x7f22d69d962b] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x3c2) [0x7f22d72d0b32] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1b88dd) [0x7f22d73298dd] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1bab3b) [0x7f22d732bb3b] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c) [0x7f22d72cc05c] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x256) [0x7f22d72d1516] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::notifyInternal(QObject*, QEvent*)+0xdb) [0x7f22d69d962b] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)+0x281) [0x7f22d6d1b521] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)+0x135) [0x7f22d6d1d1e5] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x28) [0x7f22d6d00f38] -> /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x6b070) [0x7f22ceceb070] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f22d2f641a7] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a400) [0x7f22d2f64400] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f22d2f644ac] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x5f) [0x7f22d6a2fa7f] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x10a) [0x7f22d69d6dea] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::exec()+0x9c) [0x7f22d69dee8c] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::mainLoop()+0x93) [0x7f22e9d49bf3] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiCommon.so.16.08.0(sofa::gui::GUIManager::MainLoop(boost::intrusive_ptr<sofa::simulation::Node>, char const*)+0x23) [0x7f22ee6610f3] -> bin/runSofa(main+0xc5a) [0x40666a] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f22ea1ab830] -> bin/runSofa(_start+0x29) [0x406fc9] Segmentation fault (core dumped)
please check the error
26 September 2016 at 18:01 #7550jnbrunet
ModeratorHi malli,
As I said in the previous comment, you need to set the correct device name in the scene file (attribute deviceName of the NewOmniDriver element).
You can see that the driver did not find your device with the output message:
Configuration Error: Check the base address and port/adapter number. Consult the appropriate device drivers documentation.
Please make sure that your haptic device is working properly with the Geomagic/Sensable diagnostic tools. You should also be able to get the device’s name with those tools.
J-N
7 November 2016 at 17:40 #7747Hugo
KeymasterDear Malli,
As announced previously, we just released a Geomagic plugin dedicated to latest haptic devices Geomagic:
- pull this new plugin by updating your SOFA
- find the plugin on GitHub: sofa/applications/plugins/Geomagic/
- refer to the associated commits (747d720 and b945d51)
This plugin is compatible for both Linux and Windows.
Please, give us feedback about it!
Hope this will help you in your work,Cheers,
Hugo
7 February 2018 at 19:26 #10468Anonymous
InactiveI have the same problem, but I installed all drivers (geomagic_touch_device_driver_2016.1-1-amd64 and I installed OpenHaptics SDK), but when I try to execute the sample that Geomagic have (Geomagic-Demo.scn) this return the follow error:
[INFO] [PluginManager] Loaded plugin: /workspace/sofa/build/v17.06/lib/libGeomagic.so Config directory not set correctly.: No such file or directory Config directory not set correctly.: No such file or directory [NewOmni] Failed to initialize the device called Default Device
It’s the same problem when I try to use the examples of the Sensable plugin
I set the device name in the scene file (attribute deviceName of the NewOmniDriver element).
<NewOmniDriver name="Omni Driver" deviceName="phantom" listening="1" tags="Omni" forceScale="0.5" scale="50" positionBase="0 1 -0.5" permanent="1" />
How can I fix it? I really would appreciate if someone can help me.
Thank you
1 March 2018 at 14:06 #10581Wendy María Arango
BlockedHey there,
Carlos and I are trying to configure Phantom.
It was a long way until we could finally made PHANToMTest work.It’s not completely calibrated but it doesn’t fail the test itself. When we load it in the scene, it just doesn’t work.
[INFO] [PluginManager] Loaded plugin: /home/labrv/Documents/SimDesign_SOFA/build/v17.06/lib/libGeomagic.so [NewOmni] Failed to initialize the device called Default PHANToM
We’d be thankful if you tell us any hint or so.
Thanks a lot.
1 March 2018 at 15:03 #10582Hugo
KeymasterHi Wendy!
Good to hear from you and Carlos again.
Thanks for your work and investigation, that’s a code I never used it myself.However, your console output clearly shows that the plugin is successfully loaded but the component fails to create. It therefore might miss an information (or an information is incorrect) for the NewOmniDriver to create.
Are you sure of the deviceName?
No additional warning/error is given?Best,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.