typstudio icon indicating copy to clipboard operation
typstudio copied to clipboard

Excessive memory usage?

Open minhducsun2002 opened this issue 2 years ago • 3 comments

I'm seeing excessive memory usage. Memory might be leaking, since I've been running typstudio for hours.

image

$ ps -p 569678 -o pid,cmd,etime,uid,gid
    PID CMD                             ELAPSED   UID   GID
 569678 typstudio                      15:11:37  1000  1000

For your information, I'm using the AUR package:

$ yay -Qi typstudio
Name            : typstudio
Version         : 0.1.0dev.33-1
Description     : desktop application for typst
Architecture    : x86_64

minhducsun2002 avatar Apr 15 '24 10:04 minhducsun2002

I am not sure if it is related, but closing the application seems to take forever....that even Xfce offered to kill it: image

minhducsun2002 avatar Apr 15 '24 10:04 minhducsun2002

Do you have a sample project/document?

Cubxity avatar Apr 15 '24 17:04 Cubxity

Sure. I made a sample document here.

RAM usage doesn't increase if I leave the app open without typing anything, but as soon as I type it went up really fast.

Before: image

After another paragraph of lorem ipsum: (I used xdotool type to simulate typing) image

During typing the memory usage fluctuates, even going down as far as 700MiB.

minhducsun2002 avatar Apr 16 '24 09:04 minhducsun2002