Publishing an element (segmentation fault while packing)
-
Dear all,
we are about to publish element but got stacked in process. The element packager successfully find the valid element (pic1 in attachment) but it comes up with segmentation fault error immediately after pressing the Pack button (the error output in the attachment. Sorry for .py format. Can't upload txt here.).
This problem happens both on Mac and on Ubuntu with this particular element. I did not try to release any other element.
Is there any possibility to fix this?
doc.py -
Dear sir,
Sorry for the issue.
I will investigate and come back to you quickly.Jocelyn,
-
-
Dear @Andrii, could you please check that you have categories in the element descriptor (new in 0.7.0)? It should look like:
SB_ELEMENT_CATEGORIES_BEGIN; SB_ELEMENT_CATEGORY(SBClass::Category::General); SB_ELEMENT_CATEGORIES_END;
You'll find more information about descriptors at https://documentation.samson-connect.net/developers/latest/page_introspection.html.
If you have been porting code from 0.6.0 to 0.7.0 (?), it might be useful to generate a new empty element with the generator (https://documentation.samson-connect.net/developers/latest/page_element_generator.html) and compare classes and descriptors.
Best,
Stephane
-
@oneangstrom , that you for the reply!
I have regenerated element and successfully built it. But still have same problem with packaging. Below the part of element descriptor:
SB_ELEMENT_DESCRIPTION("Carbon : Controlled Advancement Rigid-Body Optimization of Nanosystems");
SB_ELEMENT_DOCUMENTATION("Resource/Documentation/doc.html");
SB_ELEMENT_VERSION_NUMBER("0.7.0");SB_ELEMENT_CLASSES_BEGIN;
SB_ELEMENT_CLASS(SECarbonStateUpdater); SB_ELEMENT_CLASS(SECarbonStateUpdaterProperties);
SB_ELEMENT_CLASSES_END;
SB_ELEMENT_CATEGORIES_BEGIN;
SB_ELEMENT_CATEGORY(SBClass::Category::General);
SB_ELEMENT_CATEGORIES_END;
Best,
Andrii -
Ok thanks. Have you compiled with both Debug and Release?
-
Yes. Firstly Debug, then Release.