Cubxity / typstudio

A W.I.P desktop application for a new typesetting language, typst.
GNU General Public License v3.0
552 stars 18 forks source link

Excessive memory usage? #41

Open minhducsun2002 opened 2 months ago

minhducsun2002 commented 2 months ago

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 commented 2 months ago

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

Cubxity commented 2 months ago

Do you have a sample project/document?

minhducsun2002 commented 2 months ago

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.