Bug 145485

Summary: Memory leak on saving as PNG file
Product: [Applications] krita Reporter: Andrey Cherepanov <sibskull>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alexeyn3d, halla, ldv, sven.langkamp
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test image
massif log

Description Andrey Cherepanov 2007-05-16 09:56:51 UTC
Version:           1.6.2 (using KDE 3.5.6, ALT Linux i586)
Compiler:          Target: i586-alt-linux
OS:                Linux (i686) release 2.6.18-wks-smp-alt2

I try to save small .kra file as PNG file. Krita hangs up and eat all available memory. Saving in GIF is ok.
Comment 1 Andrey Cherepanov 2007-05-16 09:57:48 UTC
Created attachment 20582 [details]
Test image

Try to save in PNG file with transparency.
Comment 2 Halla Rempt 2007-05-16 10:11:54 UTC
Hm, I'm afraid I cannot reproduce this bug.
Comment 3 Cyrille Berger 2007-05-16 10:41:36 UTC
You need to upgrade your version of libpng.
Comment 4 Dmitry V. Levin 2007-05-16 14:53:49 UTC
What libpng version is required?
Comment 5 Cyrille Berger 2007-05-16 15:12:33 UTC
Either from 1.2.0 to 1.2.9 or from 1.2.15 and higher (but no libpng between 1.2.10 and 1.2.14)

Note that, I haven't test 1.2.16 to 1.2.18, but the bug was fixed in 1.2.15.
Comment 6 ALeXeY 2012-07-10 08:57:54 UTC
libpng 1.2.46-3ubuntu4
this bug (or similar) is present, at least when saving 16-bit png
Comment 7 Halla Rempt 2012-07-10 12:38:20 UTC
Ok, let;s investigate again.
Comment 8 ALeXeY 2012-07-10 13:06:46 UTC
May be I was wrong and it is export bug. The bug appears when export (may be not just png...)app
Comment 9 Sven Langkamp 2012-07-10 21:34:30 UTC
I also have 1.2.46 and I don't see any big increase of memory usage. Only a small temporary bump while saving.
Comment 10 Halla Rempt 2012-10-09 14:10:38 UTC
I have 1.2.49-2.1.2 and 1.4.11-2.5.1 on opensuse 12.2. I do see an increase in memory after exporting with png.
Comment 11 Halla Rempt 2012-11-09 11:20:02 UTC
Created attachment 75127 [details]
massif log
Comment 12 Halla Rempt 2012-11-09 11:21:01 UTC
I've saved a few dozen png's when running under massif, and no leak anymore.