Version: 2.3 (using KDE 4.7.2) OS: Linux While opening RGB JPEG images, converting them to CMYK using a specified ICC profile, and then saving them as TIFFs, Krita leaks memory until it completely bogs down the system. Reproducible: Always Steps to Reproduce: 1. Open a RGB JPEG image (haven't tried with other file types/color modes) 2. Go to Image / Properties, and assign mode=CMYK, depth=8bit, profile="ISO Coated v2 (ECI)" 3. Go to File and select Save as 4. Save the image as a TIF image 5. Close the image with Ctrl+W, without exiting the program (no image files are open at this time) Repeat the above steps, and watch memory consumption increase for every open/convert/save cycle, until the computer becomes unusable. For me, with 2GB of RAM and no other applications open, this happens after about 15 cycles. Actual Results: My guess: Krita does not free memory after an image is closed. Expected Results: Krita should free memory after closing an image.
Possibly related to bug 287347?
Created attachment 65970 [details] Screenshot w/ system monitor window open: ninth opened image (no other files open)
Created attachment 65971 [details] Screenshot w/ system monitor window open: first opened image
Thanks for the report -- I'll investigate with massif and memcheck and so on.
Ack, krita's own leak checker shows we've got leaks. This is a fairly new regression! CRITICAL: According to statistics of the KisTileDataStore some tiles have leaked from the Krita control! CRITICAL: Tiles in memory: 144 Total tiles: 144 krita(5139)/krita (general): **************************************** krita(5139)/krita (general): 13 leaks have been detected krita(5139)/krita (general): Object 0x0 ( "PK12KisGenerator" ) is still referenced by 2 objects: krita(5139)/krita (general): Referenced by 0x39227d38 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x892d8) [0x5e432d8] krita(5139)/krita (general): /usr/lib64/libQtCore.so.4(+0x6f3c8) [0x50e03c8] krita(5139)/krita (general): /usr/lib64/libQtCore.so.4(+0x7a4d5) [0x50eb4d5] krita(5139)/krita (general): /lib64/libpthread.so.0(+0x6a3f) [0x550fa3f] krita(5139)/krita (general): /lib64/libc.so.6(clone+0x6d) [0xd98b66d] krita(5139)/krita (general): Referenced by 0x33030d48 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x892d8) [0x5e432d8] krita(5139)/krita (general): /usr/lib64/libQtCore.so.4(+0x6f3c8) [0x50e03c8] krita(5139)/krita (general): /usr/lib64/libQtCore.so.4(+0x7a4d5) [0x50eb4d5] krita(5139)/krita (general): /lib64/libpthread.so.0(+0x6a3f) [0x550fa3f] krita(5139)/krita (general): /lib64/libc.so.6(clone+0x6d) [0xd98b66d] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x360fc920 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x31e09840 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDevice4initE12KisSharedPtrI14KisDataManagerEPK12KoColorSpace16KisDefaultBounds16KisWeakSharedPtrI7KisNodeERK7QString+0x2ac) [0x6001eec] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC2E16KisWeakSharedPtrI7KisNodeEPK12KoColorSpace16KisDefaultBoundsRK7QString+0x110) [0x6002780] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x26d) [0x5f996ad] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x45c7dc1d] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x392bacf0 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x3c47f2f0 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC1ERKS_+0x11a) [0x6002fea] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ed89) [0x45c7dd89] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x33465770 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x33e8b7a0 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x28a) [0x5f996ca] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x45c7dc1d] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x3433a390 ( "PK13KisGroupLayer" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x333290f8 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage12setRootLayerE12KisSharedPtrI13KisGroupLayerE+0x6f) [0x5fa59ef] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x195) [0x5fa5d95] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x45c7dc1d] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x169cdfb0 ( "PK13KisGroupLayer" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x34578288 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage12setRootLayerE12KisSharedPtrI13KisGroupLayerE+0x6f) [0x5fa59ef] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x195) [0x5fa5d95] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x45c7dc1d] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x3321ea00 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x33465790 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDevice4initE12KisSharedPtrI14KisDataManagerEPK12KoColorSpace16KisDefaultBounds16KisWeakSharedPtrI7KisNodeERK7QString+0x2ac) [0x6001eec] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC2E16KisWeakSharedPtrI7KisNodeEPK12KoColorSpace16KisDefaultBoundsRK7QString+0x110) [0x6002780] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x26d) [0x5f996ad] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x45c7dc1d] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x33476a60 ( "PK7KisNode" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x30daea10 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x2338fd) [0x5fed8fd] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN7KisNode3addE12KisSharedPtrIS_ES1_+0xcfd) [0x5feaddd] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisNodeFacade7addNodeE12KisSharedPtrI7KisNodeES2_+0xbd) [0x5ff286d] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1f000) [0x45c7e000] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x34585330 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x333d2cc0 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisPaintLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh12KisSharedPtrI14KisPaintDeviceE+0xc9) [0x6010d69] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1eebc) [0x45c7debc] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x3c47f2d0 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x3c57d9f0 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisPaintLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh12KisSharedPtrI14KisPaintDeviceE+0xc9) [0x6010d69] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1eebc) [0x45c7debc] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x31e09820 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x34577fe0 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x28a) [0x5f996ca] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x45c7dc1d] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x3c844e30 ( "PK7KisNode" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x3c84a0b0 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x2338fd) [0x5fed8fd] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN7KisNode3addE12KisSharedPtrIS_ES1_+0xcfd) [0x5feaddd] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisNodeFacade7addNodeE12KisSharedPtrI7KisNodeES2_+0xbd) [0x5ff286d] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1f000) [0x45c7e000] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): ===== krita(5139)/krita (general): Object 0x334737f0 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(5139)/krita (general): Referenced by 0x34585350 at: krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC1ERKS_+0x11a) [0x6002fea] krita(5139)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ed89) [0x45c7dd89] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(5139)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(5139)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(5139)/krita (general): ===== krita(5139)/krita (general): **************************************** Leaks have been detected... fix krita. ==5139== Killed
However, massif doesn't seem to show a serious leak of image data -- it's more that some data doesn't get cleaned on exit. Let's try with a bigger image.
Created attachment 66001 [details] massif log 1
Btw, I only noticed just now, but you are using a rather old version of Krita, 2.3. We're working on the 2.4 release, a beta of which is already available in Ubuntu. See http://www.davidrevoy.com/index.php?article98/krita-2-4-beta-screenshots-features-and-ppa for more info.
Created attachment 66003 [details] mass if log 2 This log is cleared. The big drop in the middle is when we close the image; not all tile data by a long chalk is freed then, though it should. Krita's memory leak tracker says: CRITICAL: According to statistics of the KisTileDataStore some tiles have leaked from the Krita control! CRITICAL: Tiles in memory: 5088 Total tiles: 5088 krita(6826)/krita (general): **************************************** krita(6826)/krita (general): 13 leaks have been detected krita(6826)/krita (general): Object 0x0 ( "PK12KisGenerator" ) is still referenced by 2 objects: krita(6826)/krita (general): Referenced by 0x2e818f28 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x892d8) [0x5e432d8] krita(6826)/krita (general): /usr/lib64/libQtCore.so.4(+0x6f3c8) [0x50e03c8] krita(6826)/krita (general): /usr/lib64/libQtCore.so.4(+0x7a4d5) [0x50eb4d5] krita(6826)/krita (general): /lib64/libpthread.so.0(+0x6a3f) [0x550fa3f] krita(6826)/krita (general): /lib64/libc.so.6(clone+0x6d) [0xd98b66d] krita(6826)/krita (general): Referenced by 0x40b6a7b8 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x892d8) [0x5e432d8] krita(6826)/krita (general): /usr/lib64/libQtCore.so.4(+0x6f3c8) [0x50e03c8] krita(6826)/krita (general): /usr/lib64/libQtCore.so.4(+0x7a4d5) [0x50eb4d5] krita(6826)/krita (general): /lib64/libpthread.so.0(+0x6a3f) [0x550fa3f] krita(6826)/krita (general): /lib64/libc.so.6(clone+0x6d) [0xd98b66d] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x342a1e30 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x3456e2e0 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC1ERKS_+0x11a) [0x6002fea] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ed89) [0x52693d89] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x344e4d10 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x2e7423a0 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x28a) [0x5f996ca] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x52693c1d] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x3b9efe10 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x37ecc6c0 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisPaintLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh12KisSharedPtrI14KisPaintDeviceE+0xc9) [0x6010d69] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1eebc) [0x52693ebc] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x4ed39320 ( "PK7KisNode" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x465c25b0 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x2338fd) [0x5fed8fd] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN7KisNode3addE12KisSharedPtrIS_ES1_+0xcfd) [0x5feaddd] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisNodeFacade7addNodeE12KisSharedPtrI7KisNodeES2_+0xbd) [0x5ff286d] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1f000) [0x52694000] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x3c529c20 ( "PK13KisGroupLayer" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x31be4da8 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage12setRootLayerE12KisSharedPtrI13KisGroupLayerE+0x6f) [0x5fa59ef] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x195) [0x5fa5d95] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x52693c1d] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x465eccc0 ( "PK7KisNode" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x3323b220 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(+0x2338fd) [0x5fed8fd] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN7KisNode3addE12KisSharedPtrIS_ES1_+0xcfd) [0x5feaddd] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisNodeFacade7addNodeE12KisSharedPtrI7KisNodeES2_+0xbd) [0x5ff286d] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1f000) [0x52694000] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x333b6840 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x344e4d30 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDevice4initE12KisSharedPtrI14KisDataManagerEPK12KoColorSpace16KisDefaultBounds16KisWeakSharedPtrI7KisNodeERK7QString+0x2ac) [0x6001eec] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC2E16KisWeakSharedPtrI7KisNodeEPK12KoColorSpace16KisDefaultBoundsRK7QString+0x110) [0x6002780] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x26d) [0x5f996ad] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x52693c1d] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x3c4aa440 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x3f3c12d0 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x28a) [0x5f996ca] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x52693c1d] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x334910f0 ( "PK13KisGroupLayer" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x32129768 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage12setRootLayerE12KisSharedPtrI13KisGroupLayerE+0x6f) [0x5fa59ef] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x195) [0x5fa5d95] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x52693c1d] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x3456e2c0 ( "PK14KisPaintDevice" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x331a4100 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisPaintLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh12KisSharedPtrI14KisPaintDeviceE+0xc9) [0x6010d69] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1eebc) [0x52693ebc] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x3330b5c0 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x3c4aa460 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDevice4initE12KisSharedPtrI14KisDataManagerEPK12KoColorSpace16KisDefaultBounds16KisWeakSharedPtrI7KisNodeERK7QString+0x2ac) [0x6001eec] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC2E16KisWeakSharedPtrI7KisNodeEPK12KoColorSpace16KisDefaultBoundsRK7QString+0x110) [0x6002780] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN13KisGroupLayerC2E16KisWeakSharedPtrI8KisImageERK7QStringh+0x26d) [0x5f996ad] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImage4initEP12KisUndoStoreiiPK12KoColorSpace+0x161) [0x5fa5d61] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN8KisImageC1EP12KisUndoStoreiiPK12KoColorSpaceRK7QStringb+0x1a2) [0x5fa6192] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ec1d) [0x52693c1d] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): ===== krita(6826)/krita (general): Object 0x362edec0 ( "PK14KisDataManager" ) is still referenced by 1 objects: krita(6826)/krita (general): Referenced by 0x3b9efe30 at: krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN20KisMemoryLeakTracker9referenceEPKvS1_PKc+0x12c) [0x5fe224c] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkritaimage.so.9(_ZN14KisPaintDeviceC1ERKS_+0x11a) [0x6002fea] krita(6826)/krita (general): /home/boud/kde/master/lib64/kde4/kritatiffexport.so(+0x1ed89) [0x52693d89] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(+0xdfa48) [0x645da48] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN13KoFilterChain11invokeChainEv+0xd9) [0x6454a09] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN15KoFilterManager14exportDocumentERK7QStringR10QByteArray+0x239) [0x6451909] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN10KoDocument8saveFileEv+0x169) [0x6400aa9] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart4saveEv+0x2e) [0x672e6de] krita(6826)/krita (general): /usr/lib64/libkparts.so.4(_ZN6KParts13ReadWritePart6saveAsERK4KUrl+0x91) [0x672d9e1] krita(6826)/krita (general): /home/boud/kde/inst/lib/libkomain.so.9(_ZN12KoMainWindow12saveDocumentEbb+0x1338) [0x642d808] krita(6826)/krita (general): ===== krita(6826)/krita (general): **************************************** Leaks have been detected... fix krita. Stack dump: ==6826== Stack overflow in thread 1: can't grow stack to 0x7fe801ff8 ==6826== Can't extend stack to 0x7fe801430 during signal delivery for thread 1: ==6826== no stack segment ==6826== ==6826== Process terminating with default action of signal 11 (SIGSEGV) ==6826== Access not within mapped region at address 0x7FE801430 ==6826== at 0x22E62870: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== by 0x22E628A1: PrintStack(llvm::PrettyStackTraceEntry const*, llvm::raw_ostream&) (in /usr/local/lib/libGTLCore.so.0.9.16) ==6826== If you believe this happened as a result of a stack ==6826== overflow in your program's main thread (unlikely but ==6826== possible), you can try to increase the size of the ==6826== main thread stack using the --main-stacksize= flag. ==6826== The main thread stack size used in this run was 8388608. ==6826==
(In reply to comment #8) > Btw, I only noticed just now, but you are using a rather old version of Krita, > 2.3. We're working on the 2.4 release, a beta of which is already available in > Ubuntu. See > http://www.davidrevoy.com/index.php?article98/krita-2-4-beta-screenshots-features-and-ppa > for more info. Thanks for the tip, I'll enable this repo and use the beta instead. (Also thanks for a great piece of software. I appreciate it's great CMYK capabilities while preparing images for offset printing.)
Git commit ca21dacabcf2c634f7a6f9d6a3f6e83afdf136a3 by Sven Langkamp. Committed on 28/12/2011 at 16:34. Pushed by langkamp into branch 'master'. fix memory leak M +1 -1 krita/plugins/formats/tiff/kis_tiff_export.cc http://commits.kde.org/calligra/ca21dacabcf2c634f7a6f9d6a3f6e83afdf136a3
No leaks are shown anymore.