Results 1 to 2 of 2

Thread: [Memory Leak] Scripts remain active indefinitely

  1. #1

    Exclamation [Memory Leak] Scripts remain active indefinitely

    I've been running into an issue with my Blackjack server where memory usage slowly creeps up over time, impacting performance until around 10 GB where the game shuts itself down. This was an issue both when I ran the table on Windows and now, on a Linux server.

    I believe this is due to scripted objects' scripts remaining in memory when the object is destroyed. Scripts appear to continue running until returning to the main menu, but even then there doesn't seem to be a significant amount of memory freed up.
    I threw together a test object here to (relatively) quickly create scripted objects with random junk data, this should make it easier to reproduce.

    Steps to reproduce:
    1. Launch the game
    2. Take a note of memory usage on menu.
    3. Start a game and take note of the new memory usage.
    4. Load scripted objects and take note of memory usage.
    5. Delete objects (Or click the Reload button on the reloadable scripted objects) and take note of memory again.
    6. Return to menu.


    Single player launched:

    10MB Scripted (reloadable) object spawned:

    Objected reloaded 20 times:

    Objected deleted:

    Returned to main menu:

  2. #2

Similar Threads

  1. All Saves Vanished, subfolders remain but empty
    By burkenhare in forum Bug Reports
    Replies: 0
    Last Post: 09-28-2017, 09:57 PM
  2. [SUPPORT] Network/Hosting causing memory leak?
    By Chammy in forum Technical Support
    Replies: 9
    Last Post: 08-16-2017, 08:41 PM
  3. Replies: 0
    Last Post: 04-28-2017, 10:14 PM
  4. Replies: 2
    Last Post: 05-04-2016, 07:07 PM
  5. Possible memory leak
    By nyro in forum Bug Reports
    Replies: 3
    Last Post: 03-23-2016, 05:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts