Hi Dan, Jean-Baptiste and Kingsley, Am 19.02.2018 um 22:09 schrieb Kingsley G. Morse Jr.: > Package: kdenlive > Version: 17.12.2-1 > Severity: normal > > Hi Patrick, > > kdenlive is fun! > > I have news: > > A small project that seems to elicit a memory leak. > > * What led up to the situation? > > I was getting > > "[mlt_pool] out of memory" > > on big projects. > > I wondered if I really was out of memory. > > So I cut one down. > > It still got the error! > > It only has one image. > > And it's only 11 seconds long. > > Here's how I replicate it: > > copy the attached tar file to /tmp > > $ cd /tmp > > $ tar -xvf bug.2.tar > > $ kdenlive bug.2.kdenlive > > Select the transition under track "Video 3" > by left clicking on it with your mouse. > > Click on "Go to next keyframe" with your > mouse's left button. > > Wait a moment, and > > watch the console window for ... > > "[mlt_pool] out of memory" > > An over-the-top video of it, with super cheesy > sound effects, is humbly attached. > > Sorry! > > I re-ran kdenlive with valgrind's "massif" tool. > > $ valgrind --verbose --log-file=tmp/bug.2.valgrind-out.with_massif.txt > --tool=massif kdenlive > > I visualized its memory usage with > "massif-visualizer" > > $ visualizer massif.out.22757 > > Its 2 main screens are attached. > > I like the memory chart. > > It shows mlt_pool_alloc eating memory. > > Those files are attached too. > > I re-ran kdenlive under valgrind to > specifically track origins and check for > leaks. > > $ valgrind --track-origins=yes --leak-check=full --freelist-vol=100000000 > --log-file=/tmp/valgrindlog -v kdenlive tmp/bug.2.kdenlive > > The biggest leaks are reported around line > 25500 of the long. > > One says > > 67,108,864 bytes in 1 blocks are possibly lost in loss record 51,206 > of 51,208 > at 0x48317F4: memalign (vg_replace_malloc.c:858) > by 0x4B8FD11: pool_fetch (mlt_pool.c:137) > by 0x4B8FD11: mlt_pool_alloc (mlt_pool.c:292) > by 0x19926D38: convert_image (filter_avcolour_space.c:188) > by 0x4B7685B: mlt_frame_get_image (mlt_frame.c:642) > by 0x18F91CF0: refresh_image (producer_pixbuf.c:642) > by 0x18F91CF0: producer_get_image (producer_pixbuf.c:705) > by 0x4B76707: mlt_frame_get_image (mlt_frame.c:620) > by 0x27A3DDE4: filter_get_image (filter_deinterlace.c:307) > by 0x4B76707: mlt_frame_get_image (mlt_frame.c:620) > by 0x1825D934: get_image (filter_fieldorder.c:33) > by 0x4B76707: mlt_frame_get_image (mlt_frame.c:620) > by 0x1825C1A5: filter_get_image (filter_crop.c:76) > by 0x4B76707: mlt_frame_get_image (mlt_frame.c:620) > > valgrind's log file is attached too. > > > * What exactly did you do (or not do) that was effective (or > ineffective)? > > Upgrading 100 packages and installing a new > one related to kdenlive temporarily worked > around the bug. > > But, at least for me, the small attached > project still elicits it. > > Maybe an uninitialised value makes the bug > intermittent. > > valgrind's log reports 60. > > > * What outcome did you expect instead? > > kdenlive to > > a.) move its time line pointer to the end > of the clip and > > b.) keep working. > > > * Bonus > > As you can see, the error message > > "[mlt_pool] out of memory" > > originates in melt. > > The code is on line 142 of > > > https://github.com/mltframework/mlt/blob/master/src/framework/mlt_pool.c > > I mentioned this to melt's upstream > maintainer, Dan Dennedy. > > Dan politely explained he was > > a.) in the middle of something big > he'd been putting off for years and > > b.) too busy to build and debug in > kdenlive. > > He wrote that it would be nice if a kdenlive > maintainer looked at it. > > kdenlive's upstream maintainer, Jean-Baptiste > Mardelle, wrote he'd > > a.) take some time on Friday, February 16, > > b.) try to replicate and > > c.) check if this is a pixbuf producer issue. > > That was 3 days ago. > > I have not heard back. > > Maybe because an unitialized value makes the > bug intermittent. > > I dunno. > > If you happen to know how to elicit the bug > with just melt, please enlighten me. > > Maybe that would be convenient enough for Dan. > > So, > Kingsley > > -- System Information: > Debian Release: stretch/sid > APT prefers unstable-debug > APT policy: (500, 'unstable-debug'), (500, 'unstable') > Architecture: i386 (i686) > > Kernel: Linux 4.4.0-1-686-pae (SMP w/2 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > Init: systemd (via /run/systemd/system) > > Versions of packages kdenlive depends on: > ii ffmpeg 7:3.4.2-1 > ii kded5 5.42.0-2 > ii kdenlive-data 17.12.2-1 > ii kinit 5.42.0-4 > ii kio 5.42.0-3 > ii libc6 2.26-6 > ii libgcc1 1:8-20180207-2 > ii libgl1 1.0.0-2 > ii libglu1-mesa [libglu1] 9.0.0-2.1 > ii libkf5archive5 5.42.0-2 > ii libkf5attica5 5.42.0-2 > ii libkf5auth5 5.42.0-2 > ii libkf5bookmarks5 5.42.0-2 > ii libkf5codecs5 5.42.0-2 > ii libkf5completion5 5.42.0-4 > ii libkf5configcore5 5.42.0-2 > ii libkf5configgui5 5.42.0-2 > ii libkf5configwidgets5 5.42.0-2 > ii libkf5coreaddons5 5.42.0-2 > ii libkf5crash5 5.42.0-2 > ii libkf5dbusaddons5 5.42.0-2 > ii libkf5filemetadata3 5.42.0-2 > ii libkf5guiaddons5 5.42.0-2 > ii libkf5i18n5 5.42.0-2 > ii libkf5iconthemes5 5.42.0-2 > ii libkf5itemviews5 5.42.0-2 > ii libkf5jobwidgets5 5.42.0-2 > ii libkf5kiocore5 5.42.0-3 > ii libkf5kiofilewidgets5 5.42.0-3 > ii libkf5kiowidgets5 5.42.0-3 > ii libkf5newstuff5 5.42.0-2 > ii libkf5newstuffcore5 5.42.0-2 > ii libkf5notifications5 5.42.0-2 > ii libkf5notifyconfig5 5.42.0-2 > ii libkf5service-bin 5.42.0-2 > ii libkf5service5 5.42.0-2 > ii libkf5solid5 5.42.0-2 > ii libkf5sonnetui5 5.42.0-2 > ii libkf5textwidgets5 5.42.0-2 > ii libkf5widgetsaddons5 5.42.1-2 > ii libkf5xmlgui5 5.42.0-2 > ii libmlt++3 6.6.0-1+b1 > ii libmlt6 6.6.0-1+b1 > ii libqt5concurrent5 5.9.2+dfsg-12 > ii libqt5core5a 5.9.2+dfsg-12 > ii libqt5dbus5 5.9.2+dfsg-12 > ii libqt5gui5 5.9.2+dfsg-12 > ii libqt5network5 5.9.2+dfsg-12 > ii libqt5qml5 5.9.2-3 > ii libqt5quick5 5.9.2-3 > ii libqt5script5 5.9.2+dfsg-2 > ii libqt5svg5 5.9.2-3 > ii libqt5webkit5 5.212.0~alpha2-7 > ii libqt5widgets5 5.9.2+dfsg-12 > ii libqt5xml5 5.9.2+dfsg-12 > ii libstdc++6 8-20180207-2 > ii libv4l-0 1.14.2-1 > ii melt 6.6.0-1+b1 > ii qml-module-qtquick-controls 5.9.2-2 > ii qml-module-qtquick2 5.9.2-3 > > Versions of packages kdenlive recommends: > ii breeze-icon-theme 4:5.25.0-2 > ii dvdauthor 0.7.0-1.3 > ii dvgrab 3.5-2+b3 > ii frei0r-plugins 1.6.1-2 > ii genisoimage 9:1.1.11-3 > ii oxygen-icon-theme 5:5.25.0-1 > ii recordmydesktop 0.3.8.1+svn602-1+b1 > ii swh-plugins 0.4.17-2 > > Versions of packages kdenlive suggests: > ii khelpcenter 4:17.08.3-1 > > -- no debconf information
This looks problematic. Is there an update on this issue? All related attachments could be downloaded from here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890848 -- /* Mit freundlichem Gruß / With kind regards, Patrick Matthäi GNU/Linux Debian Developer Blog: http://www.linux-dev.org/ E-Mail: pmatth...@debian.org patr...@linux-dev.org */ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel