SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Publishing an element (segmentation fault while packing)

    Apps
    publishing
    2
    7
    3933
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Andrii last edited by

      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?
      pic1.png
      doc.py

      1 Reply Last reply Reply Quote 0
      • OneAngstrom
        OneAngstrom last edited by OneAngstrom

        Dear sir,

        Sorry for the issue.
        I will investigate and come back to you quickly.

        Jocelyn,

        A 1 Reply Last reply Reply Quote 0
        • A
          Andrii @OneAngstrom last edited by

          @OneAngstrom,

          Thanks a lot!

          Andrii

          1 Reply Last reply Reply Quote 0
          • OneAngstrom
            OneAngstrom last edited by OneAngstrom

            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

            A 1 Reply Last reply Reply Quote 0
            • A
              Andrii @OneAngstrom last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • OneAngstrom
                OneAngstrom last edited by

                Ok thanks. Have you compiled with both Debug and Release?

                A 1 Reply Last reply Reply Quote 0
                • A
                  Andrii @OneAngstrom last edited by

                  @oneangstrom

                  Yes. Firstly Debug, then Release.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post