rox-filer icon indicating copy to clipboard operation
rox-filer copied to clipboard

ROX + WINE: huge memory leak

Open JakeSFR opened this issue 7 years ago • 5 comments

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).

JakeSFR avatar Feb 05 '19 10:02 JakeSFR

Is it happens even other file managers?

jun7 avatar Feb 05 '19 13:02 jun7

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

jun7 avatar Feb 05 '19 13:02 jun7

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 avatar Feb 05 '19 14:02 JakeSFR

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

Thanks & Cheers!

JakeSFR avatar Feb 06 '19 10:02 JakeSFR

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

jun7 avatar Feb 06 '19 13:02 jun7