29 January 2019 at 8 h 16 min #12921
Appriciate if anyone can help on the problem. I’ve already successfully compiled SOFA with SoftRobots and STLIB. Now I’m trying to run the tutorial cases. No matter which one I use, there is always similar error and showing the messages as:
[ERROR] [PythonScript] RuntimeError: Unable to create ‘OglSceneFrame’ of type ‘OglSceneFrame’ in node ‘root’. Object type OglSceneFrame<> was not created
The object is not in the factory.
File “cablegripper.pyscn”, line 8, in createScene
MainHeader(rootNode, gravity=[0.0, -981.0, 0.0], plugins=[“SoftRobots”])
File “/opt/sofa/v18.12/lib/python2.7/site-packages/stlib/scene/mainheader.py”, line 55, in MainHeader
node.createObject(‘OglSceneFrame’, style=”Arrows”, alignment=”TopRight”)
Thank you very mcuh.29 January 2019 at 9 h 02 min #12922
Could you tell us more about your build setting?
– Which OS are you on?
– Did you manually activate / deactivate any option in cmake besides PLUGIN_SOFAPYTHON, SOFA_BUILD_METIS?
– Could you dump the whole output of runSofa on the problematic scene?29 January 2019 at 9 h 22 min #12923
That issue is unrelated to the OS because the component OglSceneFrame has been removed from Sofa since v18.12. To avoid this issue, a simple way is to comment out the line
#node.createObject('OglSceneFrame', style="Arrows", alignment="TopRight")
at mainheader.py in Plugin STLIB. But that is not a fundamental solution.
Moreover, I have another problem that the component SparseLDLSolver always outputs the message “Failed to factorize, D(k,k) is zero”. I do not know why.
Wong29 January 2019 at 9 h 48 min #12924
29 January 2019 at 10 h 15 min #12925
- CNRS/Defrost Team
You are totally right, thank you for opening an issue on this topic.
We will discuss the removal of the deprecated component in this PR https://github.com/sofa-framework/sofa/pull/905
The change proposed by Wong is also one option (Wong could you make a PR for that ? Otherwise I will do it).
Feel free to join.29 January 2019 at 12 h 23 min #12927
No, I can’t. But I want to ask a question. I do not know why the component SparseLDLSolver does not work on Windows.
Wong29 January 2019 at 13 h 06 min #12929
- CNRS/Defrost Team
I suggest we pursue the investigation about the SparseLDLSolver problem in the corresponding thread: https://www.sofa-framework.org/community/forum/topic/how-to-use-the-component-sparseldlsolver/
You must be logged in to reply to this topic.