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

Diagnose upstream pybind11 problem with some vector overloads

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Templates:
    • Story Points:
      2
    • Sprint:
      DRP S17-2
    • Team:
      Data Release Production

      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

              People

              • Assignee:
                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:

                  Summary Panel