jun7 / rox-filer

ROX file manager
24 stars 6 forks source link

ROX + WINE: huge memory leak #192

Open JakeSFR opened 5 years ago

JakeSFR commented 5 years ago

I just found a massive memleak (looks like it's related to https://github.com/jun7/rox-filer/issues/71) in ROX that occurs in very specific circumstances. Here's how can I reproduce it:

  1. Install WINE.
  2. Launch an application that provides a file dialog, e.g. 'wine notepad' or 'wine wordpad'.
  3. Open its file dialog: 'File -> Open'.
  4. Open ROX window and browse to a directory with some large file(s) (I tried with a few ISO images, tarball, mp4 video).
  5. Drag and drop that large file from ROX window into the 'File name' entry field in Notepad/Wordpad.
  6. ROX's RAM usage drastically increases and remains on that level.

RAM usage before:

  PID USER      PR  NI    VIRT    RES  %CPU %MEM     TIME+ S COMMAND
30779 root      20   0  218.3m  21.4m   0.0  0.6   0:00.73 S ROX-Filer  

RAM usage right after dropping a 792 MiB ISO image:

  PID USER      PR  NI    VIRT    RES  %CPU %MEM     TIME+ S COMMAND
30779 root      20   0 2168.4m 1.573g   0.7 42.3   0:08.75 S ROX-Filer  

I'm using the latest Fatdog-dev (https://distro.ibiblio.org/fatdog/broken/800tip/) + 32bit-fd64.sfs + Wine-4.0 (https://distro.ibiblio.org/fatdog/sfs/800/wine-4.0-i686-1.sfs).

jun7 commented 5 years ago

Is it happens even other file managers?

jun7 commented 5 years ago

Ah it still happens on chromium and not happes with pcmanfm. Hmm. I will try it again. thank you.

JakeSFR commented 5 years ago

Is it happens even other file managers?

I tried SpaceFM and no, it doesn't happen with it.

Ah it still happens on chromium and not happes with pcmanfm. Hmm. I will try it again. thank you.

Ok, thank you.

JakeSFR commented 5 years ago

The workaround seems to work for me, cannot reproduce the memleak anymore.

Thanks & Cheers!

jun7 commented 5 years ago

Sorry I'm learning about drag and drop. So I keep this open.