Home › Forum › SOFA › Using SOFA › [SOLVED] Boost Assertion Failed
Tagged: 64_bits, SOFA_1512, Windows_10
- This topic has 10 replies, 4 voices, and was last updated 8 years, 2 months ago by
Hugo.
-
AuthorPosts
-
2 March 2016 at 23:11 #6032
sergioteovit
BlockedHi everybody,
I have a problem when trying to execute runSofa after compiling with visual studio 2013 x64, under windows 10, qt5, sofa framework 15.12, and boost 1.59.0.
In the console, I receive the next message:
Assertion failed: px != 0, file C:\local\boost_1_59_0\boost/smart_ptr/intrusive_ptr.hpp, line 174
When debugging, the breakpoint send me to:
// intrusive_ptr.hpp T * operator->() const { BOOST_ASSERT( px != 0 ); return px; }
The visual studio Call stack is:
> SofaGuiQt_d.dll!boost::intrusive_ptr<sofa::simulation::Node>::operator->() Line 174 C++ SofaGuiQt_d.dll!sofa::gui::qt::viewer::qgl::EditorViewer::EditorViewer(QWidget * parent, const char * name, const unsigned int nbMSAASamples) Line 159 C++ SofaGuiQt_d.dll!sofa::gui::qt::viewer::qgl::EditorViewer::create(sofa::gui::qt::viewer::qgl::EditorViewer * __formal, sofa::gui::BaseViewerArgument & arg) Line 130 C++ SofaGuiQt_d.dll!sofa::helper::SofaViewerCreator<sofa::gui::qt::viewer::qgl::EditorViewer>::createInstance(sofa::gui::BaseViewerArgument & arg) Line 154 C++ SofaGuiCommon_d.dll!sofa::helper::Factory<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,sofa::gui::BaseViewer,sofa::gui::BaseViewerArgument & __ptr64,sofa::gui::BaseViewer * __ptr64>::createObject(std::basic_string<char,std::char_traits<char>,std::allocator<char> > key, sofa::gui::BaseViewerArgument & arg) Line 52 C++ SofaGuiCommon_d.dll!sofa::helper::SofaViewerFactory::CreateObject(std::basic_string<char,std::char_traits<char>,std::allocator<char> > key, sofa::gui::BaseViewerArgument & arg) Line 111 C++ SofaGuiQt_d.dll!sofa::gui::qt::RealGUI::createViewer(const char * _viewerName, bool _updateViewerList) Line 1253 C++ SofaGuiQt_d.dll!sofa::gui::qt::RealGUI::RealGUI(const char * viewername, const std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > & options) Line 362 C++ SofaGuiQt_d.dll!sofa::gui::qt::RealGUI::CreateGUI(const char * name, const std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > & options, boost::intrusive_ptr<sofa::simulation::Node> root, const char * filename) Line 170 C++ SofaGuiCommon_d.dll!sofa::gui::GUIManager::createGUI(boost::intrusive_ptr<sofa::simulation::Node> groot, const char * filename) Line 261 C++ runSofa_d.exe!main(int argc, char * * argv) Line 316 C++
Regards,
Sergio2 March 2016 at 23:20 #6033sergioteovit
BlockedThe same problem with runSofa.exe happens compiling in visual studio 2015, with boost 1.59.0 or boost 1.60.0.
Any idea?
Regards,
Sergio3 March 2016 at 09:37 #6038Guillaume
KeymasterHi @sergioteovit,
I edited your post to fix the highlighting problem π
Since I am using the pretty same configuration here and not facing this problem, it may come from your Boost installation. Personnally, I installed Boost 1.59.0 from the prebuilt binaries.
Could you tell us how you installed Boost ?
Did you use a prebuilt binary or compile everything yourself ?Regards,
Guillaume.3 March 2016 at 19:10 #6042sergioteovit
BlockedHi Guillaume, thanks for the highlights corrections :).
I installed boost library from the prebuilt binary package boost_1_59_0-msvc-12.0-64.exe, posted in sourgeforge (for the vs2013 compilation).
I have installed too, in the same computer: boost 1.6.0 for vs2013, boost 1.5.9 and boost 1.6.0 for vs2015.
In resume, I probed the next configurations without success:
– Sofa 15.12, qt5 64 bits for vs2013 (prebuild), win10, boost (prebuilt) 1.5.9 x64 for vs2013.
– Sofa 15.12, qt5 64 bits for vs2013 (prebuild), win10, boost (prebuilt) 1.6.0 x64 for vs2013.
– Sofa 15.12, qt5 64 bits for vs2015 (own compilation), win10, boost (prebuilt) 1.5.9 x64 for vs2015.
– Sofa 15.12, qt5 64 bits for vs2015 (own compilation), win10, boost (prebuilt) 1.6.0 x64 for vs2015.I will try in another computer to discard some incompatibility.
Best Regards,
Sergio6 March 2016 at 21:27 #6048Korcan
BlockedHi Sergio,
I am having same problem in some of demos.
But this is actually not about boost i debugged it and it can about sofa vectors.
7 March 2016 at 09:27 #6049Guillaume
KeymasterOk let’s try to reproduce this.
What are you executing exactly: which scene, which plugins ?
@korcan: which demos ? Do you have any progress in solving this ?Cheers,
Guillaume.8 March 2016 at 04:20 #6100sergioteovit
BlockedHi Guillaume,
I compiled again without some options and sofaRun.exe runs correctly in release mode. In debug mode is unstable.
Here are the comparisons between the significant options:
OPTION----------------------FAIL------CORRECT --------------------------------------------- APPLICATION_GENERATERIGID true false APPLICATION_MODELER true true APPLICATION_RUNSOFA true true PLUGIN_LEAPMOTION true false PLUGIN_SOFACUDA true false PLUGIN_SOFASIMPLEGUI true false SOFAGUI_EDITORVIEWER true false SOFAGUI_GLUT true false SOFAGUI_QGLVIEWER true true SOFAGUI_QT true true SOFAGUI_QTVIEWER true true SOFAGUI_QT_INTERACTION true false SOFA_BUILD_TEST false true SOFA_BUILD_TUTORIALS true false SOFA_ENABLE_QWT true false SOFA_OPENMP true false -------------------------------------------
Regards,
Sergio9 March 2016 at 16:30 #6178Korcan
BlockedHi,
Today i have find a time to check. In few hours i’ll be try to reproduce and contact again.
9 March 2016 at 19:27 #6179sergioteovit
BlockedHi Korcan, Thanks for the help. I’m not sure which option is causing the ‘Boost assertion fail’, but I will test discarding one by one.
Regards,
Sergio6 June 2016 at 15:05 #7036Guillaume
KeymasterHi guys,
Any news about this problem ?
Unfortunately I did not have a lot of time last weeks to test in details πCheers,
Guillaume.20 December 2016 at 00:15 #8219Hugo
KeymasterHi guys ! @sergioteovit @korcan
Any update about this topic?
If no, I’ll have to close it.Best,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.