Bug 172760 - Preforming CUT on directory with a custom icon with graphic not present, causes crash
Summary: Preforming CUT on directory with a custom icon with graphic not present, caus...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 16.12.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 172867 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-14 01:13 UTC by Charles Phoenix
Modified: 2008-12-14 18:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Phoenix 2008-10-14 01:13:40 UTC
Version:           1.1 (using 4.1.2 (KDE 4.1.2), Kubuntu packages)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.24-19-generic

Related to bug #172759

.directory file contains:
[Desktop Entry]
Icon=./cover.png

-------------------------------
Right clicking and selecting CUT on a given directory causes a reproducible crash. 

If I copied cover.png into the same directory - no crash.

Tried to delete cover.png, but this resulted in bug #172759 therefore unable to confirm the absence of cover.png is the cause.

Tried to right click and select copy - not crash

-------------------- Bug trace
Application: Dolphin (dolphin), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f60765ff780 (LWP 10735)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0x00007f6072e52095 in raise () from /lib/libc.so.6
#6  0x00007f6072e53af0 in abort () from /lib/libc.so.6
#7  0x00007f6074d04055 in qt_message_output () from /usr/lib/libQtCore.so.4
#8  0x00007f6074d0419d in qFatal () from /usr/lib/libQtCore.so.4
#9  0x00007f6075becb65 in KDirModel::setData ()
   from /usr/lib/kde4/lib/libkio.so.5
#10 0x00007f60761ec337 in ?? () from /usr/lib/kde4/lib/libdolphinprivate.so.4
#11 0x00007f60761ec681 in ?? () from /usr/lib/kde4/lib/libdolphinprivate.so.4
#12 0x00007f60761ed23a in ?? () from /usr/lib/kde4/lib/libdolphinprivate.so.4
#13 0x00007f6074e018b6 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#14 0x00007f6073b9ad56 in QClipboard::emitChanged ()
   from /usr/lib/libQtGui.so.4
#15 0x00007f6073bf5d4d in QClipboard::setMimeData ()
   from /usr/lib/libQtGui.so.4
#16 0x00007f60761e7328 in DolphinView::cutSelectedItems ()
   from /usr/lib/kde4/lib/libdolphinprivate.so.4
#17 0x000000000042a890 in _start ()
#0  0x00007f6072ebdb50 in nanosleep () from /lib/libc.so.6
Comment 1 Simon St James 2008-10-15 18:54:11 UTC
*** Bug 172867 has been marked as a duplicate of this bug. ***
Comment 2 Charles Phoenix 2008-10-15 20:24:45 UTC
I do apologize for the bad english

Additional information...

when preforming a cut console output is identical to 172867

EXCEPT it happens in all three views

QPainter::begin: Cannot paint on a null pixmap
ASSERT: "!icon.isNull()" in file /build/buildd/kde4libs-4.1.2/kio/kio/kdirmodel.cpp, line 616

Comment 3 Dario Andres 2008-10-29 01:11:01 UTC
Qt: 4.4.3
KDE: 4.1.2 (KDE 4.1.2)
Dolphin: 1.1
in ArchLinux i686:

I can reproduce this bug. (I created an empty folder , and put on it the testcase 
.directory file; but I needed to do a previous move operation in order to bypass bug 172759 (make Dolphin update the folder icon, in this case, an non existant icon file)
When Dolphin realized that the folder didn't have a valid icon (its icon was void), cutting the folder triggers the crash.

Here is the full backtrace:

Aplicación: Dolphin (dolphin), señal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb5f08700 (LWP 3838)]
[KCrash handler]
#6  0xb7efc424 in __kernel_vsyscall ()
#7  0xb6463720 in raise () from /lib/libc.so.6
#8  0xb6465058 in abort () from /lib/libc.so.6
#9  0xb7d78965 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb7d78a17 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb7d78aa6 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0xb75efd90 in KDirModel::setData (this=0x988ca78, index=@0x3, 
    value=@0xbfa161dc, role=1)
    at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/kdirmodel.cpp:620
#13 0xb7399bcb in IconManager::applyCutItemEffect (this=0x9a1aa70)
    at /home/jan/Dev/packages/kdemod-core/work/kdebase/src/kdebase-4.1.2/apps/dolphin/src/iconmanager.cpp:430
#14 0xb7399fa1 in IconManager::updateCutItems (this=0x9a1aa70)
    at /home/jan/Dev/packages/kdemod-core/work/kdebase/src/kdebase-4.1.2/apps/dolphin/src/iconmanager.cpp:300
#15 0xb739a24b in IconManager::qt_metacall (this=0x9a1aa70, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfa16348)
    at /home/jan/Dev/packages/kdemod-core/work/kdebase/src/kdebase-4.1.2/apps/dolphin/src/iconmanager.moc:78
#16 0xb7e6db03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb7e6e063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb7071f28 in QClipboard::dataChanged () from /usr/lib/libQtGui.so.4
#19 0xb6b1cf2d in QClipboard::emitChanged () from /usr/lib/libQtGui.so.4
#20 0xb6b7b6c5 in QClipboard::setMimeData () from /usr/lib/libQtGui.so.4
#21 0xb7392426 in DolphinView::cutSelectedItems (this=0x98accf8)
    at /home/jan/Dev/packages/kdemod-core/work/kdebase/src/kdebase-4.1.2/apps/dolphin/src/dolphinview.cpp:607
#22 0x08071f9a in DolphinMainWindow::qt_metacall (this=0x98292f8, 
    _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbfa1657c)
    at /home/jan/Dev/packages/kdemod-core/work/kdebase/src/kdebase-4.1.2/apps/dolphin/src/dolphinmainwindow.cpp:449
#23 0xb7e6db03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0xb7e6ddd1 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#25 0xb6b086b2 in QAction::triggered () from /usr/lib/libQtGui.so.4
#26 0xb6b0904b in QAction::activate () from /usr/lib/libQtGui.so.4
#27 0xb6e8c882 in ?? () from /usr/lib/libQtGui.so.4
#28 0x098ce3c8 in ?? ()
#29 0x00000000 in ?? ()
#0  0xb7efc424 in __kernel_vsyscall ()

ASSERT: "!icon.isNull()" in file /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/kdirmodel.cpp, line 620
Comment 4 Dario Andres 2008-12-14 18:18:20 UTC
I can't reproduce this bug using:

KDE4.1.3 or

KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 896844 / kdebase svn rev. 896844
(yesterday build)

with QT 4.4.3 on ArchLinux x86_64

Can anyone else confirm this?
Comment 5 Peter Penz 2008-12-14 18:39:45 UTC
Thanks Darío for testing, I cannot reproduce this issue too and have set it to fixed (David Faure did some improvements in KDirModel).