Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-8580

Diagnose upstream pybind11 problem with some vector overloads

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None

      Description

      Pybind11 tries overloads in order.

      In some cases functions taking std::vector<Image<PixelT>::Ptr> as arguments cause bad_alloc errors to be thrown when they are at the top of the overload list and the function is called with a single Image<PixelT> argument. Moving these troublesome overloads to the bottom of the list solves the problem, but the root cause should be diagnosed and bugreported upstream.

      An example can be found in python/lsst/afw/geom/span.cc.

        Attachments

          Issue Links

            Activity

            Hide
            pschella Pim Schellart [X] (Inactive) added a comment -

            Need to check if this persists with upstream v2.1.0.

            Show
            pschella Pim Schellart [X] (Inactive) added a comment - Need to check if this persists with upstream v2.1.0.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pschella Pim Schellart [X] (Inactive)
              Watchers:
              Pim Schellart [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: