Uploaded image for project: 'OpenTrafficSim'
  1. OpenTrafficSim
  2. OTS-251

Memory leak in simulation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Unresolved
    • Labels:
      None

      Description

      The ots-road simulations have a memory leak. Memory goes up pretty quickly, especially when networks are cloned. The hypothesis is that the GTU animation is responsible. The GTU animation has a pointer to its source, the GTU. When the GTU animation is not properly destroyed, the GTU cannot be destroyed. The GTU points to many other data structures, such as strategical, tactical, and operational plans. These point to the Network. After cloning, the GTUs and network can therefore not be removed from the simulation by the Garbage Collector.

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          2 kB
        2. screenshot-2.png
          screenshot-2.png
          2 kB
        3. screenshot-3.png
          screenshot-3.png
          4 kB
        4. screenshot-4.png
          screenshot-4.png
          18 kB
        5. screenshot-5.png
          screenshot-5.png
          9 kB
        6. screenshot-6.png
          screenshot-6.png
          4 kB
        7. screenshot-7.png
          screenshot-7.png
          6 kB
        8. screenshot-8.png
          screenshot-8.png
          19 kB
        9. screenshot-9.png
          screenshot-9.png
          19 kB
        10. screenshot-10.png
          screenshot-10.png
          17 kB

          Activity

            People

            • Assignee:
              averbraeck Alexander Verbraeck
              Reporter:
              averbraeck Alexander Verbraeck
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h