Bug 179460 - rename files on folder view produce crash
Summary: rename files on folder view produce crash
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-folderview (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: triaged
: 188086 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-03 11:04 UTC by Hosein-mec
Modified: 2009-06-23 10:14 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hosein-mec 2009-01-03 11:04:34 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

my Distro : Kubuntu 8.10 + KDE 4.2 Beta2

Way of producing this bug:

1- rename a file ( jpg , pdf , text or ... ) on Desktop folder view
2- right click on highlighted name of file

3-1: wait some seconds & move mouse

or

3-2: click on copy
Comment 1 Marco Martin 2009-01-03 11:17:59 UTC
can't reproduce here, can you do a backtrace?

http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 Hosein-mec 2009-01-03 20:46:13 UTC
sorry , I can't :(
Comment 3 Mehrdad Momeny 2009-01-16 10:46:29 UTC
This happens to me, too.
But there isn't any Backtrace. I mean, the crash reporter don't start to make a backbrace :-(

And this happens to me When the Desktop is on Folder view state!

(on Folder view plasmoid the rename doesn't work for me :-( I mean doesn't do anything!)
Comment 4 Alessandro 2009-01-31 15:22:49 UTC
i can confirm this bug :/
Comment 5 Alessandro 2009-01-31 15:31:11 UTC
sorry, didn't specify, no bt available for me too...
Comment 6 Hosein-mec 2009-02-06 12:49:25 UTC
i still have this bug in KDE 4.2 Final ...
Comment 7 Jörg Bäuerle 2009-02-17 15:08:49 UTC
Same problem here with Arch Linux and KDE 4.2.

I rightclick on a file in the folder view and choose "rename". Nothing happens at all.
Comment 8 Dario Andres 2009-02-21 02:07:09 UTC
Are the crash still valid with 4.2? If it's I can tell you some steps in order to produce a backtrace.
Thanks
Comment 9 Jörg Bäuerle 2009-02-21 11:36:39 UTC
I haven't experienced any crashes with the folder view so far. Renaming is working at the moment, but every now and then it just doesn't work. Neither via F2 nor via right-click menu.
Comment 10 George Kiagiadakis 2009-03-07 12:45:23 UTC
I can confirm this bug using KDE 4.2.1, Qt 4.4.3.
Steps to reproduce:
1) Add a folderview on your desktop
2) Right click on a file, click rename
3) Right click on the selected text
4) click *anywhere* on the deskop or on the popup menu -> crash!

What is really strange here is that drkonqi doesn't show up... I don't understand why this happens...

Backtrace from gdb:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb453f710 (LWP 13593)]        
0xb7e076cd in memmove () from /lib/i686/cmov/libc.so.6
(gdb) bt                                              
#0  0xb7e076cd in memmove () from /lib/i686/cmov/libc.so.6
#1  0xb68ffc16 in QListData::remove (this=0x80f4e5c, i=0) at tools/qlistdata.cpp:210
#2  0xb68ffc9a in QListData::erase (this=0x80f4e5c, xi=0x8c6f72c) at tools/qlistdata.cpp:279
#3  0xb71fcffe in QList<QGraphicsWidget*>::erase (this=0x80f4e5c, it={i = 0xbfa49a4c}) at ../../include/QtCore/../../src/corelib/tools/qlist.h:384
#4  0xb71f30be in QGraphicsScenePrivate::removePopup (this=0x80f4d18, widget=0x87ebfc0, itemIsDying=false)                                        
    at ../../include/QtCore/../../src/corelib/tools/qlist.h:251                                                                                   
#5  0xb71f2f20 in QGraphicsScenePrivate::ungrabMouse (this=0x80f4d18, item=0x87ebfc8, itemIsDying=<value optimized out>) at graphicsview/qgraphicsscene.cpp:804
#6  0xb71cfe46 in QGraphicsItem::ungrabMouse (this=0x8c6f718) at graphicsview/qgraphicsitem.cpp:2025                                                           
#7  0xb71d45f6 in QGraphicsItemPrivate::setVisibleHelper (this=0x87a9e20, newVisible=false, explicitly=true, update=true) at graphicsview/qgraphicsitem.cpp:1444
#8  0xb71d47cc in QGraphicsItem::setVisible (this=0x87ebfc8, visible=<value optimized out>) at graphicsview/qgraphicsitem.cpp:1520                              
#9  0xb72245b2 in QGraphicsProxyWidget::eventFilter (this=0x87ebfc0, object=0x882b470, event=0xbfa49f80) at graphicsview/qgraphicsproxywidget.cpp:821           
#10 0xb69cb2ca in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x80886a0, receiver=0x882b470, event=0xbfa49f80)                                 
    at kernel/qcoreapplication.cpp:694                                                                                                                          
#11 0xb6c5a77a in QApplicationPrivate::notify_helper (this=0x80886a0, receiver=0x882b470, e=0xbfa49f80) at kernel/qapplication.cpp:3799                         
#12 0xb6c626ea in QApplication::notify (this=0x8067f08, receiver=0x882b470, e=0xbfa49f80) at kernel/qapplication.cpp:3768                                       
#13 0xb781694d in KApplication::notify (this=0x8067f08, receiver=0x882b470, event=0xbfa49f80) at ../../kdeui/kernel/kapplication.cpp:307                        
#14 0xb69cc0e1 in QCoreApplication::notifyInternal (this=0x8067f08, receiver=0x882b470, event=0xbfa49f80) at kernel/qcoreapplication.cpp:587                    
#15 0xb6cacbe5 in QWidgetPrivate::hide_helper (this=0x8774cc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209                          
#16 0xb6cb5f00 in QWidget::setVisible (this=0x882b470, visible=false) at kernel/qwidget.cpp:6615                                                                
#17 0xb702d814 in QMenuPrivate::hideMenu (this=0x8774cc0, menu=0x882b470) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:468                             
#18 0xb702de02 in QMenuPrivate::hideUpToMenuBar (this=0x8774cc0) at widgets/qmenu.cpp:399                                                                       
#19 0xb702f102 in QMenu::mousePressEvent (this=0x882b470, e=0x8c48858) at widgets/qmenu.cpp:2123                                                                
#20 0xb6cb27a9 in QWidget::event (this=0x882b470, event=0x8c48858) at kernel/qwidget.cpp:7159                                                                   
#21 0xb7031019 in QMenu::event (this=0x882b470, e=0x8c48858) at widgets/qmenu.cpp:2265                                                                          
#22 0xb6c5a79c in QApplicationPrivate::notify_helper (this=0x80886a0, receiver=0x882b470, e=0x8c48858) at kernel/qapplication.cpp:3803                          
#23 0xb6c62fd1 in QApplication::notify (this=0x8067f08, receiver=0x882b470, e=0x8c48858) at kernel/qapplication.cpp:3528                                        
#24 0xb781694d in KApplication::notify (this=0x8067f08, receiver=0x882b470, event=0x8c48858) at ../../kdeui/kernel/kapplication.cpp:307                         
#25 0xb69cc0e1 in QCoreApplication::notifyInternal (this=0x8067f08, receiver=0x882b470, event=0x8c48858) at kernel/qcoreapplication.cpp:587                     
#26 0xb6c6225e in QApplicationPrivate::sendMouseEvent (receiver=0x882b470, event=0x8c48858, alienWidget=0x0, nativeWidget=0x882b470, buttonDown=0xbfa4a68c,     
    lastMouseReceiver=@0x87a9f4c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212                                                       
#27 0xb7226807 in QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent (this=0x87a9e20, event=0xbfa4ad64) at graphicsview/qgraphicsproxywidget.cpp:265             
#28 0xb71d2f29 in QGraphicsItem::sceneEvent (this=0x87ebfc8, event=0xbfa4ad64) at graphicsview/qgraphicsitem.cpp:3998                                           
---Type <return> to continue, or q <return> to quit---                                                                                                          
#29 0xb721660f in QGraphicsWidget::sceneEvent (this=0x87ebfc0, event=0xbfa4ad64) at graphicsview/qgraphicswidget.cpp:1011                                       
#30 0xb71f13bc in QGraphicsScenePrivate::sendEvent (this=0x80f4d18, item=0x87ebfc8, event=0xbfa4ad64) at graphicsview/qgraphicsscene.cpp:1030                   
#31 0xb71f25b2 in QGraphicsScenePrivate::sendMouseEvent (this=0x80f4d18, mouseEvent=0xbfa4ad64) at graphicsview/qgraphicsscene.cpp:1101                         
#32 0xb71fbad7 in QGraphicsScenePrivate::mousePressEventHandler (this=0x80f4d18, mouseEvent=0xbfa4ad64) at graphicsview/qgraphicsscene.cpp:1118                 
#33 0xb71fa617 in QGraphicsScene::event (this=0x811ada0, event=0xbfa4ad64) at graphicsview/qgraphicsscene.cpp:2963                                              
#34 0xb6c5a79c in QApplicationPrivate::notify_helper (this=0x80886a0, receiver=0x811ada0, e=0xbfa4ad64) at kernel/qapplication.cpp:3803                         
#35 0xb6c6261e in QApplication::notify (this=0x8067f08, receiver=0x811ada0, e=0xbfa4ad64) at kernel/qapplication.cpp:3393                                       
#36 0xb781694d in KApplication::notify (this=0x8067f08, receiver=0x811ada0, event=0xbfa4ad64) at ../../kdeui/kernel/kapplication.cpp:307                        
#37 0xb69cc0e1 in QCoreApplication::notifyInternal (this=0x8067f08, receiver=0x811ada0, event=0xbfa4ad64) at kernel/qcoreapplication.cpp:587                    
#38 0xb720771b in QGraphicsView::mousePressEvent (this=0x84585d0, event=0xbfa4b43c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209     
#39 0xb6cb27a9 in QWidget::event (this=0x84585d0, event=0xbfa4b43c) at kernel/qwidget.cpp:7159                                                                  
#40 0xb6fe5d43 in QFrame::event (this=0x84585d0, e=0xbfa4b43c) at widgets/qframe.cpp:651                                                                        
#41 0xb707c46f in QAbstractScrollArea::viewportEvent (this=0x84585d0, e=0x8c6f718) at widgets/qabstractscrollarea.cpp:943                                       
#42 0xb7209b6f in QGraphicsView::viewportEvent (this=0x84585d0, event=0xbfa4b43c) at graphicsview/qgraphicsview.cpp:2337                                        
#43 0xb707ea15 in QAbstractScrollAreaFilter::eventFilter (this=0x8459d00, o=0x84594c8, e=0xbfa4b43c) at widgets/qabstractscrollarea_p.h:96                      
#44 0xb69cb2ca in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x80886a0, receiver=0x84594c8, event=0xbfa4b43c)                                 
    at kernel/qcoreapplication.cpp:694                                                                                                                          
#45 0xb6c5a77a in QApplicationPrivate::notify_helper (this=0x80886a0, receiver=0x84594c8, e=0xbfa4b43c) at kernel/qapplication.cpp:3799                         
#46 0xb6c62fd1 in QApplication::notify (this=0x8067f08, receiver=0x84594c8, e=0xbfa4b43c) at kernel/qapplication.cpp:3528                                       
#47 0xb781694d in KApplication::notify (this=0x8067f08, receiver=0x84594c8, event=0xbfa4b43c) at ../../kdeui/kernel/kapplication.cpp:307                        
#48 0xb69cc0e1 in QCoreApplication::notifyInternal (this=0x8067f08, receiver=0x84594c8, event=0xbfa4b43c) at kernel/qcoreapplication.cpp:587                    
#49 0xb6c6225e in QApplicationPrivate::sendMouseEvent (receiver=0x84594c8, event=0xbfa4b43c, alienWidget=0x84594c8, nativeWidget=0x84585d0,                     
    buttonDown=0xb741d670, lastMouseReceiver=@0xb741d674) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212                               
#50 0xb6ccbe2d in QETWidget::translateMouseEvent (this=0x84585d0, event=0xbfa4b92c) at kernel/qapplication_x11.cpp:4044                                         
#51 0xb6ccac11 in QApplication::x11ProcessEvent (this=0x8067f08, event=0xbfa4b92c) at kernel/qapplication_x11.cpp:3162                                          
#52 0xb6cf463a in x11EventSourceDispatch (s=0x808fa98, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142                                    
#53 0xb57dc368 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0                                                                                     
#54 0xb57dfa03 in ?? () from /usr/lib/libglib-2.0.so.0                                                                                                          
#55 0x0808f0b0 in ?? ()                                                                                                                                         
#56 0x00000000 in ?? ()
Comment 11 Dario Andres 2009-03-25 19:49:39 UTC
*** Bug 188086 has been marked as a duplicate of this bug. ***
Comment 12 Dario Andres 2009-03-25 23:56:05 UTC
I can reproduce the crash here using:

Qt: 4.5.0 + qt-copy-patches-936035
KDE: 4.2.67 (KDE 4.2.67 (KDE 4.3 >= 20090318))
kdelibs svn rev. 944348 / kdebase svn rev. 944348
on ArchLinux i686 - Kernel 2.6.28.7

However I'm getting a different backtrace (but also Qt related)
Comment 13 FiNeX 2009-04-26 01:08:50 UTC
Crash confirmed on current trunk too.
KDE SVN r959285
Qt 4.5
X.Org 1.6.1
Comment 14 Dario Andres 2009-05-19 15:47:38 UTC
Analysis on bug 189468 could be related to this.
Also, when right clicking the KTextEdit delegate of the folderview item, it gets a FocusOut event:

kdelibs/kio/kfileitemdelegate.cpp:~1519
    case QEvent::FocusOut:
    {
        emit commitData(editor);
        emit closeEditor(editor, NoHint);
        return true;
    }

Commenting out the closeEditor signal, and returning false... will ""stop"" from crashing.. Of course.. the editor now doesn't close when you manually focus out it... (or click another icon). But that may be a place to start looking... I was thinking about installing another eventFilter in the FolderView abstractitemview class, to check at FocusOut event if the current "editor" is showing the menu and to avoid this (or something like that)
Comment 15 Shawn Starr 2009-06-22 06:45:13 UTC
Does not occur in KDE 4.3 beta2+
Comment 16 FiNeX 2009-06-22 09:48:19 UTC
It still crashes using trunk compiled yesterday evening (I'm just re-compiling, so I don't exactly know the revision number).
Comment 17 FiNeX 2009-06-22 09:48:47 UTC
It still crashes using trunk compiled yesterday evening (I'm just re-compiling, so I don't exactly know the revision number).
Comment 18 Aaron J. Seigo 2009-06-23 02:12:01 UTC
this is obviously yet another QGrahpicsView bug (look at the backtrace in comment #10), similar to other ones we've seen. i'll let the Trolls look into it, though this one may already be fixed in upstream. Alexis should know :)
Comment 19 FiNeX 2009-06-23 10:14:21 UTC
Ok, thanks Aaron :-)