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

SAL numpy array data corruption

    XMLWordPrintable

    Details

      Description

      While trying to collect data from SAL with python I uncovered an issue with the numpy arrays. If you cache the array directly from the data structure (for example, to get an average of the data) you will get bad numbers. The issue appears to relate to garbage collection and the SAL data structure being collected while something else still holds a reference to the numpy arrays contained by that data structure.

      Attached is an example python file that has 3 ways of caching the data.

      I also tried a change in which I print the min/max of the first data cached while adding more data to the cache. What I found is the min / max of the first set of data cached changes. I have attached an image of it.

        Attachments

          Issue Links

            Activity

            No work has yet been logged on this issue.

              People

              Assignee:
              dmills Dave Mills
              Reporter:
              ccontaxis Christopher Contaxis [X] (Inactive)
              Watchers:
              Christopher Contaxis [X] (Inactive), Dave Mills, Rob Bovill, Russell Owen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Start date:
                End date:

                  Jenkins

                  No builds found.