Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTDecompiler.csx will take up all of the system's RAM when ran on Linux with Wine. #42

Open
expected-ingot opened this issue Oct 27, 2024 · 3 comments

Comments

@expected-ingot
Copy link

Hi! I am trying to set up OpenTower. I have found that when running UTMT through Wine, the script that exports sprites for use with the decomp will take up more and more RAM until the script either finishes or worst case scenario, UTMT gets killed by the kernel or the PC crashes. I assume this is some sort of memory leak.
image
My specs:

                  -`                     user@desktop
                 .o+`                    ------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: Nitro AN515-55 (V2.06)
              `+oooooo:                  Kernel: Linux 6.11.4-arch1-1
              -+oooooo+:                 Uptime: 1 hour
            `/:-:++oooo+:                Packages: 1727 (pacman), 8 (flatpak-user)
           `/++++/+++++++:               Shell: bash 5.2.37
          `/++++++++++++++:              Display (NCP004D): 1920x1080 @ 144 Hz (as 1536x864) in 16" [Built-in]
         `/+++ooooooooooooo/`            DE: KDE Plasma 6.2.1
        ./ooosssso++osssssso+`           WM: KWin (Wayland)
       .oossssso-````/ossssss+`          WM Theme: Breeze
      -osssssso.      :ssssssso.         Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
     :osssssss/        osssso+++.        Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
    /ossssssss/        +ssssooo/-        Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
  `/ossssso+/:-        -:/+osssso+-      Cursor: Breeze_Light (24px)
 `+sso+:-`                 `.-/+oso:     Terminal: konsole 24.8.2
`++:.                           `-/+/    CPU: Intel(R) Core(TM) i7-10750H (12) @ 5.00 GHz
.`                                 `/    GPU 1: NVIDIA GeForce RTX 2060 Mobile
                                         GPU 2: Intel UHD Graphics @ 1.15 GHz [Integrated]
                                         Memory: 5.07 GiB / 15.45 GiB (33%)
                                         Swap: 1.00 MiB / 4.00 GiB (0%)
                                         Disk (/): 258.06 GiB / 288.08 GiB (90%) - ext4
                                         Disk (/run/media/user/2C60361F6035EFE6): 501.56 GiB / 1.53 TiB (32%) - fuseblk
                                         Disk (/run/media/user/DATA): 684.84 GiB / 931.51 GiB (74%) - fuseblk
                                         Local IP (wlan0): 192.168.1.46/24
                                         Battery (AP18E8M): 100% [AC Connected]
                                         Locale: en_US.UTF-8

Maybe you could free memory when you finish processing a sprite? I can try to fix this myself, when I find time to I'll send a PR. Thanks in advance!

@femloy
Copy link
Owner

femloy commented Dec 16, 2024

I'm not very experienced with C# so a PR would be appreciated!

@femloy
Copy link
Owner

femloy commented Jan 17, 2025

... No takers?

@expected-ingot
Copy link
Author

I tried doing it but doesn't seem like C# has a straightforward way of disposing variables after use. Maybe someone will try in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants