Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. Develop
  3. Apps
  4. Publishing an element (segmentation fault while packing)

Publishing an element (segmentation fault while packing)

Scheduled Pinned Locked Moved Apps
publishing
7 Posts 2 Posters 6.2k Views
  • 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
    A
    Andrii
    wrote on last edited by
    #1

    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
    0
    • OneAngstromO
      OneAngstromO
      OneAngstrom
      wrote on last edited by OneAngstrom
      #2

      Dear sir,

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

      Jocelyn,

      A 1 Reply Last reply
      0
      • OneAngstromO OneAngstrom

        Dear sir,

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

        Jocelyn,

        A
        A
        Andrii
        wrote on last edited by
        #3

        @OneAngstrom,

        Thanks a lot!

        Andrii

        1 Reply Last reply
        0
        • OneAngstromO
          OneAngstromO
          OneAngstrom
          wrote on last edited by OneAngstrom
          #4

          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
          0
          • OneAngstromO 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
            A
            Andrii
            wrote on last edited by
            #5

            @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
            0
            • OneAngstromO
              OneAngstromO
              OneAngstrom
              wrote on last edited by
              #6

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

              A 1 Reply Last reply
              0
              • OneAngstromO OneAngstrom

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

                A
                A
                Andrii
                wrote on last edited by
                #7

                @oneangstrom

                Yes. Firstly Debug, then Release.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post