Bug 216932

Summary: File Properties dialog reads the whole file causing the application to hang (and heavy disk usage) [KFileMetaInfo using Strigi]
Product: [Unmaintained] kfile Reporter: simon
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra, jos, kokoko3k, kurada88, mitykov, shafff
Priority: NOR Keywords: investigated
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.4.3
Sentry Crash Report:

Description simon 2009-12-01 14:00:57 UTC
Version:           1.3.80 (using 4.3.80 (KDE 4.3.80 (KDE 4.4 Beta1)), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.31-zen7

hi,

when trying to view the properties of a 10Gig mkv file dolphin hangs :(



dolphin(1294)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("file:///home/user/downloads")                                                                                                             
dolphin(1294)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/user/downloads")                                                                                                            
[New Thread 0x7fffe66a4950 (LWP 1323)]                                                                                                                      
[Thread 0x7fffe66a4950 (LWP 1323) exited]                                                                                                                   
[New Thread 0x7fffe66a4950 (LWP 1325)]                                                                                                                      
[Thread 0x7fffe66a4950 (LWP 1325) exited]                                                                                                                   
dolphin(1294)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "video/x-matroska" ,  "Application"  : returning  5  offers                      
[New Thread 0x7fffe66a4950 (LWP 1329)]                                                                                                                      
[Thread 0x7fffe66a4950 (LWP 1329) exited]                                                                                                                   
dolphin(1294)/kio (Slave) KIO::Slave::createSlave: createSlave "thumbnail" for KUrl("thumbnail:/home/user/downloads/test.mkv")                                                      
dolphin(1294)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-user/dolphinAX1294.slave-socket"                
dolphin(1294) KFileMetaPropsPlugin::supports:                                                                                                               
dolphin(1294) KFileMetaPropsPlugin::supports: metaDataEnabled= true                                                                                         
dolphin(1294)/KFileMetaInfo KFileMetaInfoPrivate::init: KUrl("file:///home/user/downloads/test.mkv")                                                                                

--- HANG here ---

^C                                                                                                                                                          
Program received signal SIGINT, Interrupt.                                                                                                                  
0x00007ffff2bdd91b in read () from /lib64/libc.so.6                                                                                                         
(gdb) thread apply all bt

Thread 4 (Thread 0x7fffe6ea5950 (LWP 1302)):
#0  0x00007ffff2be3a32 in select () from /lib64/libc.so.6
#1  0x00007ffff4cefc91 in QProcessManager::run (this=0x7ffff5093f80) at io/qprocess_unix.cpp:245
#2  0x00007ffff4bf00fa in QThreadPrivate::start (arg=0x7ffff5093f80) at thread/qthread_unix.cpp:244
#3  0x00007ffff4950fc7 in start_thread () from /lib64/libpthread.so.0                              
#4  0x00007ffff2bea1fd in clone () from /lib64/libc.so.6                                           

Thread 1 (Thread 0x7ffff7fa7740 (LWP 1294)):
#0  0x00007ffff2bdd91b in read () from /lib64/libc.so.6
#1  0x00007ffff2b8a120 in _IO_file_xsgetn_internal () from /lib64/libc.so.6
#2  0x00007ffff2b7f8d3 in fread () from /lib64/libc.so.6                   
#3  0x00007ffff4ce0a7a in QFSFileEnginePrivate::readFdFh (this=0x1884e60,  
    data=0x19789c8 "\344\024-l\207\267R\254\a\330\351S\210N\177Ԁ\002j.\020[:\020\255Hm\353\031\021[Qz7\025Lw?\207\003/\251\244vB\025\247\265\203\064\352\246*p\220\226\326.\356\252B\303\347\066\275m\202\t\003\230\372;\r\200\270\367&\200\b\261\260\353;\b-i\356[\232\262b\004\310A\252j\020\206\275\060\371\303Po\212\301\275\277\232\371bN\216\275\361\251\065\001\251;\372D\216KQ\301\245\276\220\066\266\345E\242 \t\177:\342\234w\020Uo\212\264\333T\347Q\034\016\303\036\272\267\346iR\365\353w|\243\272\266y[D\234\332\025\242/\030\360\205\321A]\225o]\200[\240\217dN\220\254\213\b\360A", <incomplete sequence \375>...,             
    len=16384) at io/qfsfileengine.cpp:639                                                                                                                  
#4  0x00007ffff4ceb6a1 in QFSFileEnginePrivate::nativeRead (this=0x1884e60,                                                                                 
    data=0x19789c8 "\344\024-l\207\267R\254\a\330\351S\210N\177Ԁ\002j.\020[:\020\255Hm\353\031\021[Qz7\025Lw?\207\003/\251\244vB\025\247\265\203\064\352\246*p\220\226\326.\356\252B\303\347\066\275m\202\t\003\230\372;\r\200\270\367&\200\b\261\260\353;\b-i\356[\232\262b\004\310A\252j\020\206\275\060\371\303Po\212\301\275\277\232\371bN\216\275\361\251\065\001\251;\372D\216KQ\301\245\276\220\066\266\345E\242 \t\177:\342\234w\020Uo\212\264\333T\347Q\034\016\303\036\272\267\346iR\365\353w|\243\272\266y[D\234\332\025\242/\030\360\205\321A]\225o]\200[\240\217dN\220\254\213\b\360A", <incomplete sequence \375>...,             
    len=16384) at io/qfsfileengine_unix.cpp:340                                                                                                             
#5  0x00007ffff4ce0ca5 in QFSFileEngine::read (this=0x153c150,                                                                                              
    data=0x19789c8 "\344\024-l\207\267R\254\a\330\351S\210N\177Ԁ\002j.\020[:\020\255Hm\353\031\021[Qz7\025Lw?\207\003/\251\244vB\025\247\265\203\064\352\246*p\220\226\326.\356\252B\303\347\066\275m\202\t\003\230\372;\r\200\270\367&\200\b\261\260\353;\b-i\356[\232\262b\004\310A\252j\020\206\275\060\371\303Po\212\301\275\277\232\371bN\216\275\361\251\065\001\251;\372D\216KQ\301\245\276\220\066\266\345E\242 \t\177:\342\234w\020Uo\212\264\333T\347Q\034\016\303\036\272\267\346iR\365\353w|\243\272\266y[D\234\332\025\242/\030\360\205\321A]\225o]\200[\240\217dN\220\254\213\b\360A", <incomplete sequence \375>...,             
    maxlen=16384) at io/qfsfileengine.cpp:615                                                                                                               
#6  0x00007ffff4c95fc5 in QFile::readData (this=0x7fffffff82a0,                                                                                             
    data=0x19789c8 "\344\024-l\207\267R\254\a\330\351S\210N\177Ԁ\002j.\020[:\020\255Hm\353\031\021[Qz7\025Lw?\207\003/\251\244vB\025\247\265\203\064\352\246*p\220\226\326.\356\252B\303\347\066\275m\202\t\003\230\372;\r\200\270\367&\200\b\261\260\353;\b-i\356[\232\262b\004\310A\252j\020\206\275\060\371\303Po\212\301\275\277\232\371bN\216\275\361\251\065\001\251;\372D\216KQ\301\245\276\220\066\266\345E\242 \t\177:\342\234w\020Uo\212\264\333T\347Q\034\016\303\036\272\267\346iR\365\353w|\243\272\266y[D\234\332\025\242/\030\360\205\321A]\225o]\200[\240\217dN\220\254\213\b\360A", <incomplete sequence \375>...,             
    len=16384) at io/qfile.cpp:1513                                                                                                                         
#7  0x00007ffff4c9f317 in QIODevice::read (this=0x7fffffff82a0,                                                                                             
    data=0x19785a0 "\257\257\225\n \324;\223FwZ{Y\f\220جF7\366\252V&\375)+\246s\323\bT\335ވV\017\371\022\236\213$\003\320,un\275\250\261$\362\274[!ci\362\---Type <return> to continue, or q <return> to quit---                                                                                                        
241ny\233K/\356\227\t\356\355{b&1\271\025\245\300ba1Qq\370\347\360\373\061\265\225\274\246\f\270I`\257\t\034\230x\270\207p\212\347\240\364`\037\061X\264\271\301e6\002\034j\v\245\247\272N\223\002t\003c\245\370\242\n\337\070\304(\240\362\323\365F\211\357\067\274\216K\370D\321\fD\274\246\241<\265\266U\320^Ie\220u\345\067\232\236\246\374\327\276\343?Ͳ\035)x\365\353\273\314^\342\322\020\276\005\036\321\372\332/\365\205\216\206", <incomplete sequence \317>...,          
    maxSize=1024) at io/qiodevice.cpp:801                                                                                                                   
#8  0x00007ffff61a0904 in QIODeviceInputStream::fillBuffer (this=0x7fffffff8130,                                                                            
    start=0x19785a0 "\257\257\225\n \324;\223FwZ{Y\f\220جF7\366\252V&\375)+\246s\323\bT\335ވV\017\371\022\236\213$\003\320,un\275\250\261$\362\274[!ci\362\241ny\233K/\356\227\t\356\355{b&1\271\025\245\300ba1Qq\370\347\360\373\061\265\225\274\246\f\270I`\257\t\034\230x\270\207p\212\347\240\364`\037\061X\264\271\301e6\002\034j\v\245\247\272N\223\002t\003c\245\370\242\n\337\070\304(\240\362\323\365F\211\357\067\274\216K\370D\321\fD\274\246\241<\265\266U\320^Ie\220u\345\067\232\236\246\374\327\276\343?Ͳ\035)x\365\353\273\314^\342\322\020\276\005\036\321\372\332/\365\205\216\206", <incomplete sequence \317>...,           
    space=16384) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kio/kfilemetainfo.cpp:68                                                   
#9  0x00007ffff61a1281 in Strigi::BufferedStream<char>::writeToBuffer (this=0x7fffffff8130, ntoread=1, maxread=1024)                                        
    at /usr/include/strigi/bufferedstream.h:116                                                                                                             
#10 0x00007ffff61a1330 in Strigi::BufferedStream<char>::read (this=0x15, start=@0x7fffffff7ff0, min=26708424, max=1024)                                     
    at /usr/include/strigi/bufferedstream.h:137                                                                                                             
#11 0x00007ffff61a0ff7 in Strigi::BufferedStream<char>::skip (this=0x7fffffff8130, ntoskip=249856) at /usr/include/strigi/bufferedstream.h:186              
#12 0x00007ffff28f9432 in Strigi::DataEventInputStream::skip(long) () from /usr/lib64/libstreams.so.0                                                       
#13 0x00007ffff269a45d in Strigi::StreamAnalyzerPrivate::analyze(Strigi::AnalysisResult&, Strigi::StreamBase<char>*) ()                                     
   from /usr/lib64/libstreamanalyzer.so.0                                                                                                                   
#14 0x00007ffff61a0168 in KFileMetaInfoPrivate::init (this=0x1884340, stream=<value optimized out>, url=<value optimized out>, mtime=1257891115,            
    w=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kio/kfilemetainfo.cpp:210                                      
#15 0x00007ffff61a037e in KFileMetaInfo::KFileMetaInfo (this=0x7fffffff8360, url=...)                                                                       
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kio/kfilemetainfo.cpp:249                                                               
#16 0x00007ffff618dac2 in KFileItem::metaInfo (this=0x18478d0, autoget=<value optimized out>)                                                               
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kio/kfileitem.cpp:1226                                                                  
#17 0x00007ffff622ab80 in KFileMetaPropsPlugin::KFileMetaPropsPlugin (this=0x17ccfc0, props=<value optimized out>)                                          
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kfile/kmetaprops.cpp:63                                                                 
#18 0x00007ffff6247c39 in KPropertiesDialog::KPropertiesDialogPrivate::insertPages (this=0x1824360)                                                         
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kfile/kpropertiesdialog.cpp:521                                                         
#19 0x00007ffff6248587 in KPropertiesDialog::KPropertiesDialogPrivate::init (this=0x1824360)                                                                
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kfile/kpropertiesdialog.cpp:351                                                         
#20 0x00007ffff6248701 in KPropertiesDialog::KPropertiesDialog (this=0x17f4c60, _items=..., parent=0x7fffffff86b0)                                          
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kio/kfile/kpropertiesdialog.cpp:250                                                         
#21 0x00007ffff742f0f5 in DolphinViewActionHandler::slotProperties (this=0x9196d0)                                                                          
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphinviewactionhandler.cpp:539                                                
#22 0x00007ffff7413efa in DolphinViewActionHandler::qt_metacall (this=0x9196d0, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffff8980)          
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999_build/dolphin/src/moc_dolphinviewactionhandler.cpp:148                                      
#23 0x00007ffff4d233af in QMetaObject::metacall (object=0x9196d0, cl=InvokeMetaMethod, idx=30, argv=0x7fffffff8980) at kernel/qmetaobject.cpp:237           
#24 0x00007ffff4d387ed in QMetaObject::activate (sender=0x847780, m=0x7ffff4346c80, local_signal_index=1, argv=0x7fffffff8980) at kernel/qobject.cpp:3286   
---Type <return> to continue, or q <return> to quit---                                                                                                      
#25 0x00007ffff37e315b in QAction::triggered (this=0x847780, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263                                            
#26 0x00007ffff37e4916 in QAction::activate (this=0x847780, event=Trigger) at kernel/qaction.cpp:1251                                                       
#27 0x00007ffff3c7a075 in QMenuPrivate::activateCausedStack (this=0x1737780, causedStack=..., action=0x847780, action_e=Trigger, self=true)                 
    at widgets/qmenu.cpp:1014                                                                                                                               
#28 0x00007ffff3c800f5 in QMenuPrivate::activateAction (this=0x1737780, action=0x847780, action_e=Trigger, self=true) at widgets/qmenu.cpp:1106             
#29 0x00007ffff3c809fc in QMenu::mouseReleaseEvent (this=0x1726030, e=0x7fffffff9a90) at widgets/qmenu.cpp:2322                                             
#30 0x00007ffff5ce2a65 in KMenu::mouseReleaseEvent (this=0x1726030, e=0x7fffffff9a90)                                                                       
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/widgets/kmenu.cpp:469                                                                 
#31 0x00007ffff3852286 in QWidget::event (this=0x1726030, event=0x7fffffff9a90) at kernel/qwidget.cpp:7976                                                  
#32 0x00007ffff3c82c13 in QMenu::event (this=0x1726030, e=0x7fffffff9a90) at widgets/qmenu.cpp:2424                                                         
#33 0x00007ffff37eb2b3 in QApplicationPrivate::notify_helper (this=0x6cafb0, receiver=0x1726030, e=0x7fffffff9a90) at kernel/qapplication.cpp:4253          
#34 0x00007ffff37ec107 in QApplication::notify (this=0x7fffffffd430, receiver=0x1726030, e=0x7fffffff9a90) at kernel/qapplication.cpp:3824                  
#35 0x00007ffff5c1c401 in KApplication::notify (this=0x7fffffffd430, receiver=0x1726030, event=0x7fffffff9a90)                                              
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302                                                           
#36 0x00007ffff4d1b5d9 in QCoreApplication::notifyInternal (this=0x7fffffffd430, receiver=0x1726030, event=0x7fffffff9a90)                                  
    at kernel/qcoreapplication.cpp:704                                                                                                                      
#37 0x00007ffff37fceeb in QCoreApplication::sendSpontaneousEvent (receiver=0x1726030, event=0x7fffffff9a90)                                                 
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218                                                                                 
#38 0x00007ffff37f168e in QApplicationPrivate::sendMouseEvent (receiver=0x1726030, event=0x7fffffff9a90, alienWidget=0x0, nativeWidget=0x1726030,           
    buttonDown=0x7ffff437deb8, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2956                                                     
#39 0x00007ffff388469e in QETWidget::translateMouseEvent (this=0x1726030, event=0x7fffffffa660) at kernel/qapplication_x11.cpp:4302                         
#40 0x00007ffff388592f in QApplication::x11ProcessEvent (this=0x7fffffffd430, event=0x7fffffffa660) at kernel/qapplication_x11.cpp:3379                     
#41 0x00007ffff38b2772 in x11EventSourceDispatch (s=0x6cfed0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146                         
#42 0x00007fffeec4de51 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0                                                                         
#43 0x00007fffeec513e8 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0                                                                          
#44 0x00007fffeec5159c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0                                                                        
#45 0x00007ffff4d57079 in QEventDispatcherGlib::processEvents (this=0x6c8330, flags=...) at kernel/qeventdispatcher_glib.cpp:407                            
#46 0x00007ffff38b1f97 in QGuiEventDispatcherGlib::processEvents (this=0x6c8330, flags=...) at kernel/qguieventdispatcher_glib.cpp:202                      
#47 0x00007ffff4d17a0f in QEventLoop::processEvents (this=0x7fffffffaa90, flags=...) at kernel/qeventloop.cpp:149                                           
#48 0x00007ffff4d17c33 in QEventLoop::exec (this=0x7fffffffaa90, flags=...) at kernel/qeventloop.cpp:201                                                    
#49 0x00007ffff3c7d472 in QMenu::exec (this=0x1726030, p=..., action=0x0) at widgets/qmenu.cpp:2060                                                         
#50 0x0000000000433fe0 in DolphinContextMenu::openItemContextMenu (this=0x7fffffffac80)                                                                     
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphincontextmenu.cpp:252                                                      
#51 0x0000000000434af5 in DolphinContextMenu::open (this=0x7fffffffac80)                                                                                    
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphincontextmenu.cpp:104                                                      
#52 0x0000000000430b19 in DolphinViewContainer::openContextMenu (this=<value optimized out>, item=<value optimized out>, url=<value optimized out>,         
    customActions=...) at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphinviewcontainer.cpp:384                                 
#53 0x00000000004316a8 in DolphinViewContainer::qt_metacall (this=0x930510, _c=InvokeMetaMethod, _id=16384, _a=0x7fffffffaec0)                              
---Type <return> to continue, or q <return> to quit---                                                                                                      
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999_build/dolphin/src/dolphinviewcontainer.moc:133                                              
#54 0x00007ffff4d233af in QMetaObject::metacall (object=0x930510, cl=InvokeMetaMethod, idx=42, argv=0x7fffffffaec0) at kernel/qmetaobject.cpp:237           
#55 0x00007ffff4d387ed in QMetaObject::activate (sender=0x9515e0, m=0x7ffff7680040, local_signal_index=17, argv=0x7fffffffaec0) at kernel/qobject.cpp:3286  
#56 0x00007ffff742700f in DolphinView::requestContextMenu (this=0x15, _t1=<value optimized out>, _t2=<value optimized out>, _t3=<value optimized out>)      
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999_build/dolphin/src/dolphinview.moc:367                                                       
#57 0x00007ffff7428367 in DolphinView::openContextMenu (this=0x9515e0, pos=..., customActions=...)                                                          
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphinview.cpp:942                                                             
#58 0x00007ffff742bddc in DolphinView::qt_metacall (this=0x9515e0, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffffb160)                       
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999_build/dolphin/src/dolphinview.moc:224                                                       
#59 0x00007ffff4d233af in QMetaObject::metacall (object=0x9515e0, cl=InvokeMetaMethod, idx=69, argv=0x7fffffffb160) at kernel/qmetaobject.cpp:237           
#60 0x00007ffff4d387ed in QMetaObject::activate (sender=0x950690, m=0x7ffff767ed40, local_signal_index=2, argv=0x7fffffffb160) at kernel/qobject.cpp:3286   
#61 0x00007ffff74146ea in DolphinController::requestContextMenu (this=0x15, _t1=<value optimized out>, _t2=<value optimized out>)
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999_build/dolphin/src/dolphincontroller.moc:171
#62 0x00007ffff74147cf in DolphinController::triggerContextMenuRequest (this=0x950690, pos=..., customActions=...)
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphincontroller.cpp:89
#63 0x00007ffff7418d42 in DolphinDetailsView::contextMenuEvent (this=0x95d7d0, event=0x7fffffffc530)
    at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/dolphindetailsview.cpp:200
#64 0x00007ffff3852a75 in QWidget::event (this=0x95d7d0, event=0x7fffffffc530) at kernel/qwidget.cpp:8143
#65 0x00007ffff3c357a3 in QFrame::event (this=0x95d7d0, e=0x7fffffffc530) at widgets/qframe.cpp:557
#66 0x00007ffff3cc7b7a in QAbstractScrollArea::viewportEvent (this=0x95d7d0, e=0x7fffffffc530) at widgets/qabstractscrollarea.cpp:1032
#67 0x00007ffff3d6a854 in QAbstractItemView::viewportEvent (this=0x95d7d0, event=0x7fffffffc530) at itemviews/qabstractitemview.cpp:1602
#68 0x00007ffff3dab18d in QTreeView::viewportEvent (this=0x95d7d0, event=0x7fffffffc530) at itemviews/qtreeview.cpp:1257
#69 0x00007ffff3cca758 in QAbstractScrollAreaPrivate::viewportEvent (this=0x95d8a0, event=0x7fffffffc530) at widgets/qabstractscrollarea_p.h:100
#70 0x00007ffff3cca794 in QAbstractScrollAreaFilter::eventFilter (this=0x95f990, o=0x95d570, e=0x7fffffffc530) at widgets/qabstractscrollarea_p.h:116
#71 0x00007ffff4d1906f in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x6cafb0, receiver=0x95d570, event=0x7fffffffc530)
    at kernel/qcoreapplication.cpp:819
#72 0x00007ffff37eb291 in QApplicationPrivate::notify_helper (this=0x6cafb0, receiver=0x95d570, e=0x7fffffffc530) at kernel/qapplication.cpp:4249
#73 0x00007ffff37ec806 in QApplication::notify (this=0x7fffffffd430, receiver=0x95d570, e=0x7fffffffc530) at kernel/qapplication.cpp:3903
#74 0x00007ffff5c1c401 in KApplication::notify (this=0x7fffffffd430, receiver=0x95d570, event=0x7fffffffc530)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#75 0x00007ffff4d1b5d9 in QCoreApplication::notifyInternal (this=0x7fffffffd430, receiver=0x95d570, event=0x7fffffffc530)
    at kernel/qcoreapplication.cpp:704
#76 0x00007ffff37fceeb in QCoreApplication::sendSpontaneousEvent (receiver=0x95d570, event=0x7fffffffc530)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#77 0x00007ffff38849b7 in QETWidget::translateMouseEvent (this=0x733000, event=0x7fffffffcf80) at kernel/qapplication_x11.cpp:4373
#78 0x00007ffff388592f in QApplication::x11ProcessEvent (this=0x7fffffffd430, event=0x7fffffffcf80) at kernel/qapplication_x11.cpp:3379
#79 0x00007ffff38b2772 in x11EventSourceDispatch (s=0x6cfed0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#80 0x00007fffeec4de51 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#81 0x00007fffeec513e8 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#82 0x00007fffeec5159c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#83 0x00007ffff4d57079 in QEventDispatcherGlib::processEvents (this=0x6c8330, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#84 0x00007ffff38b1f97 in QGuiEventDispatcherGlib::processEvents (this=0x6c8330, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#85 0x00007ffff4d17a0f in QEventLoop::processEvents (this=0x7fffffffd390, flags=...) at kernel/qeventloop.cpp:149
#86 0x00007ffff4d17c33 in QEventLoop::exec (this=0x7fffffffd390, flags=...) at kernel/qeventloop.cpp:201
#87 0x00007ffff4d1c023 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#88 0x00007ffff37ede10 in QApplication::exec () at kernel/qapplication.cpp:3572
#89 0x00000000004361dd in main (argc=2, argv=0x7fffffffd918) at /var/tmp/portage/kde-base/dolphin-9999/work/dolphin-9999/dolphin/src/main.cpp:94
Comment 1 Peter Penz 2009-12-18 11:11:24 UTC
(internal note: root cause if KFileMetaInfo using Strigi)
Comment 2 Dario Andres 2010-01-27 02:49:31 UTC
I could reproduce the issue here using:

Qt: 4.6.1 (kde-qt master commit 5ccbae0c2d9254efe67599137afec763d4fec0f6
        Date:   Tue Jan 19 20:42:24 2010 +0100)
KDE Development Platform: 4.4.60 (KDE 4.4.60 (KDE 4.5 >= 20100120))
kdelibs svn rev. 1078669 / kdebase svn rev. 1078669
strigi svn rev. 1078666
on ArchLinux i686 - Kernel 2.6.32.3

with a 700Mb AVI file
Comment 3 Dario Andres 2010-01-27 02:49:44 UTC
*** Bug 224419 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2010-01-27 02:58:25 UTC
This commit modified the default setting: 
http://websvn.kde.org/?view=revision&revision=1053062

May be KFileItem::metaInfo() should be modified to only create KFileMetaInfo to only use (ContentInfo|TechnicalInfo). Another alternative could be reverting the defaults and let Lokalize to set its own flags ?
Comment 5 Peter Penz 2010-01-27 09:25:14 UTC
Thanks Dario for the analyses. In my opinion each UI code that invokes KFileMetaInfo synchronously with the KFileMetaInfo::Everything option is broken, as this means having a blocking UI for huge files. So in this case the first step would be to fix KFilePropertiesDialog to use KFileMetaInfo only with ContentInfo|TechnicalInfo as you said...

Still there is the remaining risk that broken Strigi analysers, that don't respect the maximum size, still lead to a blocking UI (the PDF analysers and MPEG analysers are still broken AFAIK - see [1] and [2]).

For KDE 4.5 I've planned to port the KFileMetaInfoWidget to kdelibs, which uses Nepomuk to get the meta data asynchronously in a separate thread. I think it might be a good idea to use this widget in KFilePropertiesDialog...

[1] http://sourceforge.net/tracker/?func=detail&aid=2830904&group_id=171000&atid=856302

[2] http://sourceforge.net/tracker/?func=detail&aid=2830902&group_id=171000&atid=856302
Comment 6 Peter Penz 2010-01-27 09:48:19 UTC
(internal update: the blocking code is in kdelibs/kio/kfile/kmetaprops.cpp in line 66: d->m_info = KFileMetaInfo(properties->kurl().path(KUrl::RemoveTrailingSlash)); - I currently don't have the time to verify whether specifying ContentInfo|TechnicalInfo works, but I'll take care for this "ASAP").
Comment 7 Nick Shaforostoff 2010-01-27 10:43:13 UTC
setting the default value of 'w' argument of KFileMetaInfo c'tor to smth else (not WhatFlags::Everything) will return previous behaviour for most applications (if they are compiled against kdelibs 4.4)
Comment 8 Yura 2010-02-02 14:57:33 UTC
I have this problem to on kde 4.3.98 (RC3)
Comment 9 Antonio Orefice 2010-03-31 09:40:53 UTC
*** Bug 230668 has been marked as a duplicate of this bug. ***
Comment 10 Antonio Orefice 2010-03-31 09:52:29 UTC
Bug still present in 4.4.2.
Apart from the file property dialog specific case, i noticed that dolphin is really slow and tend to hang when dealing with network filesystems like sshfs over slow links (10MBps is still slow).
Even listing a remote home folder is a bad experience (showing hidden files is almost impossible), and i wonder if it could be related to this bug too.
konqueror from 3.5 is far snappier in the same case.
Comment 11 Dario Andres 2010-04-02 14:14:31 UTC
SVN commit 1110210 by darioandres:

- Update KFileItem and KFileMetaPropsPlugin to only request limited metaData
  (avoid reading all the file and blocking the UI)
  This implements http://reviewboard.kde.org/r/3325/ as a temporary fix until KFileMetaInfo+Strigi limits get improved

CCBUG: 216932



 M  +2 -1      kfile/kmetaprops.cpp  
 M  +2 -2      kio/kfileitem.cpp  
 M  +5 -2      kio/kfileitem.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1110210
Comment 12 Dario Andres 2010-04-02 14:23:48 UTC
SVN commit 1110211 by darioandres:

Backport to 4.4 of:
SVN commit 1110210 by darioandres:

- Update KFileItem and KFileMetaPropsPlugin to only request limited metaData
  (avoid reading all the file and blocking the UI)
  This implements http://reviewboard.kde.org/r/3325/ as a temporary fix until
KFileMetaInfo+Strigi limits get improved
  This is a workaround for bug 216932

BUG: 216932


 M  +2 -1      kfile/kmetaprops.cpp  
 M  +2 -2      kio/kfileitem.cpp  
 M  +5 -2      kio/kfileitem.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1110211
Comment 13 Dario Andres 2010-04-03 14:24:52 UTC
@Antonio: the slowness related to network filesystems is unrelated to this issue, and I think it was reported already. Regards
This bug is "fixed" for KDE SC 4.4.3 and later
Regards