Results 1 to 5 of 5

Thread: Trying to fix the showeq server windows memory leak

  1. #1
    Registered User
    Join Date
    Jul 2023
    Posts
    4

    Trying to fix the showeq server windows memory leak

    So i've noticed through the SVN that there hasnt been any contribution on showEQ (windows) since 2022 in fact even finding a decent working knowledge of the windows codebase?

    Specifically what I've been trying to get fixed is a massive memory leak within the server itself that only seems to happen during a zone situation
    Click image for larger version. 

Name:	Screenshot 2024-07-09 195814.png 
Views:	17244 
Size:	1.8 KB 
ID:	897

    Click image for larger version. 

Name:	Screenshot 2024-07-09 195832.png 
Views:	17202 
Size:	11.1 KB 
ID:	898

    Click image for larger version. 

Name:	Screenshot 2024-07-09 195850.png 
Views:	17500 
Size:	8.0 KB 
ID:	899

    I've even tried adding some memory difference checks in to see if theres a way to track memory leaks but no dice so far.

    Any help would be greatly appreciated
    Last edited by ViciousOne618; 07-09-2024 at 08:01 PM. Reason: uploaded pictures & more detail

  2. #2
    Administrator
    Join Date
    Oct 2019
    Posts
    565

    Re: Trying to fix the showeq server windows memory leak

    Moved to the correct forum.

    I think eqDialup was the last one to have any real knowledge of the windows codebase. I know I certainly don't have any.

    That said, I can think of a couple of approaches you might take.

    The first is tooling - I'm not really familiar with what's available on windows these days, but if you can find a decent memory profiler, that could at least help narrow things down. I think AddressSanitzer works on windows, and while it's primarily for detecting memory boundary issues, I think it can do alloc/dealloc matching. Otherwise, you'd want to find something like Valgrind, but for windows. (If you're comfortable with Linux, you can use valgrind in conjunction with wine to analyze windows programs)

    The second is plain old following the code. If you find the allocations and trace the data through to see where it's getting deallocated, you should eventually find something that isn't freed.

    My 2c.

  3. #3
    Registered User
    Join Date
    Jul 2023
    Posts
    4

    Re: Trying to fix the showeq server windows memory leak

    Thank you! appologies i shoulda RTFM on that one!

    I agree with following the code - honestly i have no idea where to start on this thing - time to buckle up and dig in i guess
    Last edited by ViciousOne618; 07-09-2024 at 08:31 PM.

  4. #4
    Registered User
    Join Date
    Jul 2023
    Posts
    4

    Re: Trying to fix the showeq server windows memory leak

    I found a very interesting tool to do this for windows

    Very Sleepy - the site has fallen to shambles but the tool is great for tracking memory frames - thank you for this awesome start cn187

    Narrowed it down to a method and its now time to fix it!

  5. #5
    Administrator
    Join Date
    Oct 2019
    Posts
    565

    Re: Trying to fix the showeq server windows memory leak

    Great!

    Once you get it figured out, please post a patch.

    Thanks.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On