Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2014-02-27 22:57
Priority:
3
State:
Open
Submitted by:
Christopher Dembia (chrisdembia)
Assigned to:
Nobody (None)
Summary:
In BushingForce, body_1 and body_2 are optional parameters, can lead to segfault in python wrapping

Detailed description
I tried to do the following in python wrapping.

model.addForce(opensim.BushingForce())

This caused an noninformative segfault. The issue was that I did not set the body_1, body_2 properties of the BushingForce. These are optional properties that are not initialized until they're set:

OpenSim_DECLARE_OPTIONAL_PROPERTY(body_1, ...

So that an informative error message can be generated, perhaps these should not be optional properties, and should instead be initialized to "" or something.

Add A Comment: Notepad

No Comments Have Been Posted

No Changes Have Been Made to This Item

Feedback