0.84: Memory leak when displaying GIF(s)

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
vertigo
Posts: 131
Joined: Wed Feb 15, 2017 3:49 pm

0.84: Memory leak when displaying GIF(s)

Post by vertigo »

XnView: MP 0.84 x64
OS: Windows 7 - 64 bit

Effect: Leaving XnView MP open with one or more animated GIFs results in a memory leak.

To reproduce:
1. Open one or more animated GIFs.
2. Check the memory usage via Task Manager or whatever means you prefer and note it for later.
3. Leave XnView running.
4. Recheck the memory usage later (hours, 1 day, 2 days, etc) and note it continues to creep up.
Actual behaviour (bug): XnView's memory usage continually increases without stopping. This appears to only happen with animated GIFs (or possibly all GIFs, but I only tested it with animated ones). I tried opening multiple JPG files and the memory usage remained constant.

Expected behaviour: XnView's memory usage should remain constant.
vertigo
Posts: 131
Joined: Wed Feb 15, 2017 3:49 pm

Re: 0.84: Memory leak when displaying GIF(s)

Post by vertigo »

Just found out it also returns a little of the memory when closing the viewer tab, but most remains locked. This doesn't get freed even when selecting another folder in the browser or closing the browser. The only way to free it appears to be closing XnView.
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Memory leak when displaying GIF(s)

Post by helmut »

Thank you for reporting this one, vertigo. I've tried and saw the memory usage of process "xnviewmp-exe" increasing slowly. This is definitetely something Pierre should check.

:arrow: Reproduced
User avatar
xnview
Author of XnView
Posts: 43369
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Memory leak when displaying GIF(s)

Post by xnview »

i can't reproduce, memory doesn't grow, i've checked with a large gif
Pierre.
Post Reply