Bug 200586 - Memory usage skyrockets creating preview for exr file
Summary: Memory usage skyrockets creating preview for exr file
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kimgio (show other bugs)
Version: SVN
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 19:49 UTC by Jacopo De Simoi
Modified: 2024-07-20 03:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacopo De Simoi 2009-07-17 19:49:04 UTC
Version:           2.3.0 (using 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2)), compiled sources)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.29-tuxonice-r3

in "browse" mode, opening a folder (even an empty folder) causes gwenview to freeze and to quickly eat memory (up to >2Gb).
Here follows the gdb backtrace during the freeze:

#0  0x00007fc29b77e6a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0                                                           
#1  0x00007fc29b9eb1eb in ?? () from /usr/lib64/qt4/libQtCore.so.4                                                                              
#2  0x00007fc29b9e6c1f in QMutex::lock () from /usr/lib64/qt4/libQtCore.so.4                                                                    
#3  0x00007fc29c2b81c1 in QMutexLocker::relock (this=0x7fffa4a09ae0) at /usr/include/qt4/QtCore/qmutex.h:120                                    
#4  0x00007fc29c2b8231 in QMutexLocker (this=0x7fffa4a09ae0, m=0xc229e8) at /usr/include/qt4/QtCore/qmutex.h:102                                
#5  0x00007fc29c2ef5ad in Gwenview::ThumbnailThread::cancel (this=0xc22988) at /mnt/trunk/kde/kdegraphics/gwenview/lib/thumbnailloadjob.cpp:117 
#6  0x00007fc29c2ef639 in ~ThumbnailLoadJob (this=0xc22920) at /mnt/trunk/kde/kdegraphics/gwenview/lib/thumbnailloadjob.cpp:324                 
#7  0x00007fc29c2ee655 in Gwenview::ThumbnailLoadJob::determineNextIcon (this=0xc22920)                                                         
    at /mnt/trunk/kde/kdegraphics/gwenview/lib/thumbnailloadjob.cpp:392                                                                         
#8  0x00007fc29c2ee9fe in Gwenview::ThumbnailLoadJob::removeItems (this=0xc22920, itemList=@0x7fffa4a09d40)                                     
    at /mnt/trunk/kde/kdegraphics/gwenview/lib/thumbnailloadjob.cpp:378                                                                         
#9  0x00007fc29c2fa09b in Gwenview::ThumbnailView::rowsAboutToBeRemoved (this=0x7ec570, parent=@0x7fffa4a0a0a0, start=0, end=105)               
    at /mnt/trunk/kde/kdegraphics/gwenview/lib/thumbnailview/thumbnailview.cpp:327                                                              
#10 0x00007fc29c2fb1f9 in Gwenview::ThumbnailView::qt_metacall (this=0x7ec570, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fffa4a09fa0)      
    at /mnt/trunk/kde/kdegraphics/build/gwenview/lib/thumbnailview.moc:111                                                                      
#11 0x00007fc29bad8953 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4                                                           
#12 0x00007fc29bb0f8a4 in QAbstractItemModel::rowsAboutToBeRemoved () from /usr/lib64/qt4/libQtCore.so.4                                        
#13 0x00007fc29babc54d in QAbstractItemModel::beginRemoveRows () from /usr/lib64/qt4/libQtCore.so.4                                             
#14 0x00007fc299a0acae in ?? () from /usr/lib64/qt4/libQtGui.so.4                                                                               
#15 0x00007fc299a0d889 in ?? () from /usr/lib64/qt4/libQtGui.so.4                                                                               
#16 0x00007fc299a0e74b in ?? () from /usr/lib64/qt4/libQtGui.so.4                                                                               
#17 0x00007fc299a0eaf2 in QSortFilterProxyModel::qt_metacall () from /usr/lib64/qt4/libQtGui.so.4                                               
#18 0x00007fc29c2de15f in Gwenview::SortedDirModel::qt_metacall (this=0x738c60, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0x7fffa4a0a2e0)    
    at /mnt/trunk/kde/kdegraphics/build/gwenview/lib/sorteddirmodel.moc:63                                                                      
#19 0x00007fc29bad8953 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4                                                           
#20 0x00007fc29bb0f8a4 in QAbstractItemModel::rowsAboutToBeRemoved () from /usr/lib64/qt4/libQtCore.so.4                                        
#21 0x00007fc29babc54d in QAbstractItemModel::beginRemoveRows () from /usr/lib64/qt4/libQtCore.so.4                                             
#22 0x00007fc29bec08e5 in KDirModelPrivate::_k_slotClear (this=0x739610) at /mnt/trunk/kde/kdelibs/kio/kio/kdirmodel.cpp:601                    
#23 0x0, _u=<value optimized out>, _keep=false, _reload=false)
    at /mnt/trunk/kde/kdelibs/kio/kio/kdirlister.cpp:129
#28 0x00007fc29beb43c3 in KDirLister::openUrl (this=0x739680, _url=@0x7fffa4a0a9e0, _flags=@0x7fffa4a0a970)
    at /mnt/trunk/kde/kdelibs/kio/kio/kdirlister.cpp:1896
#29 0x0000000000447a83 in Gwenview::MainWindow::openDirUrl (this=0x737500, url=@0x7fffa4a0a9e0)
    at /mnt/trunk/kde/kdegraphics/gwenview/app/mainwindow.cpp:973
#30 0x0000000000447bbf in Gwenview::MainWindow::slotThumbnailViewIndexActivated (this=0x737500, index=@0xc0cd70)
    at /mnt/trunk/kde/kdegraphics/gwenview/app/mainwindow.cpp:878
#31 0x0000000000449020 in Gwenview::MainWindow::qt_metacall (this=0x737500, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffa4a0ab10)
    at /mnt/trunk/kde/kdegraphics/build/gwenview/app/mainwindow.moc:130
#32 0x00007fc29bad8953 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007fc29c2faf23 in Gwenview::ThumbnailView::indexActivated (this=0x7ec570, _t1=@0xc0cd70)
    at /mnt/trunk/kde/kdegraphics/build/gwenview/lib/thumbnailview.moc:131
#34 0x00007fc29c2fb022 in Gwenview::ThumbnailView::emitIndexActivatedIfNoModifiers (this=0x7ec570, index=@0xc0cd70)
    at /mnt/trunk/kde/kdegraphics/gwenview/lib/thumbnailview/thumbnailview.cpp:362
---Type <return> to continue, or q <return> to quit---
#35 0x00007fc29c2fb29b in Gwenview::ThumbnailView::qt_metacall (this=0x7ec570, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffa4a0ac50)
    at /mnt/trunk/kde/kdegraphics/build/gwenview/lib/thumbnailview.moc:115
#36 0x00007fc29bad8953 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#37 0x00007fc299984dc5 in QAbstractItemView::clicked () from /usr/lib64/qt4/libQtGui.so.4
#38 0x00007fc2999918f9 in QAbstractItemView::mouseReleaseEvent () from /usr/lib64/qt4/libQtGui.so.4
#39 0x00007fc2999a7367 in QListView::mouseReleaseEvent () from /usr/lib64/qt4/libQtGui.so.4
#40 0x00007fc2994f4eab in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
#41 0x00007fc299879a0b in QFrame::event () from /usr/lib64/qt4/libQtGui.so.4
#42 0x00007fc2998fe6ea in QAbstractScrollArea::viewportEvent () from /usr/lib64/qt4/libQtGui.so.4
#43 0x00007fc29999240a in QAbstractItemView::viewportEvent () from /usr/lib64/qt4/libQtGui.so.4
#44 0x00007fc2999000e8 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#45 0x00007fc29bac51fc in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib64/qt4/libQtCore.so.4
#46 0x00007fc2994a839f in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#47 0x00007fc2994af998 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#48 0x00007fc29a984eee in KApplication::notify (this=0x7fffa4a0d6c0, receiver=0x822f50, event=0x7fffa4a0bab0)
    at /mnt/trunk/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#49 0x00007fc29bac4a33 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#50 0x00007fc2994af36b in QApplicationPrivate::sendMouseEvent () from /usr/lib64/qt4/libQtGui.so.4
#51 0x00007fc29950d178 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#52 0x00007fc29950b9c8 in QApplication::x11ProcessEvent () from /usr/lib64/qt4/libQtGui.so.4
#53 0x00007fc299530922 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#54 0x00007fc295372502 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#55 0x00007fc2953757e5 in ?? () from /usr/lib/libglib-2.0.so.0
#56 0x00007fc295375ceb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#57 0x00007fc29baed17e in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#58 0x00007fc29953070f in ?? () from /usr/lib64/qt4/libQtGui.so.4
#59 0x00007fc29bac3cc5 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#60 0x00007fc29bac3e36 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#61 0x00007fc29bac607b in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#62 0x0000000000445d13 in main (argc=2, argv=0x7fffa4a0da48) at /mnt/trunk/kde/kdegraphics/gwenview/app/main.cpp:95

opening the same folder from the cmdline doesn't give any trouble
Comment 1 Jacopo De Simoi 2009-07-29 11:44:28 UTC
It seems that the bug is indeed in the exr thumbnail generator; I'll reassign the bug then.
Comment 2 Christoph Cullmann 2024-06-20 18:59:02 UTC
We would need an example file to fix that.
Comment 3 Bug Janitor Service 2024-07-05 03:47:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-07-20 03:46:31 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!