Bug 133665 - Kdesktop crashes when copying things to the kde clipboard under special configuration
Summary: Kdesktop crashes when copying things to the kde clipboard under special confi...
Status: CLOSED FIXED
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 19:07 UTC by Michael Hartmann
Modified: 2009-01-02 20:33 UTC (History)
2 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 Michael Hartmann 2006-09-06 19:07:41 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I'm using KDE 3.5 on my Debian testing system (latest packages) in Kiosk mode.
When copying text or files to the kde clipboard kdesktop crashes. In fact
kdesktop receives signal 11 (konsole: *** kdesktop (3860) got signal 11).

I guessed it could be something about the configuration. After some time of try
'n error, I figured out that this is a problem about the
"editable_desktop_icons=false" setting in kdeglobals. When deleted or set to
true, kdesktop doesn't crash.
I've also sucessfully reproduced crashes on my ordinary desktop machine (also
Debian testing with latest updates) and on FreeBSD:
Just add "editable_desktop_icons=false" to the [KDE Action Restrictions]-section
in kdeglobals, restart kdesktop (so it reads the updated kdeglobals), start
kedit, mark a text and copy it by using either the right-mouse-menu or the
copy-button to the kde clipboard and kdesktop crashes.
Same happens when trying to copy files in konqueror. Starting or stopping klipper doesn't have any influence.

On the kiosk box I use kernel 2.6.16-2-686, on my desktop box 2.6.8-2-k7. FreeBSD version unknown.

Thank you,
Michael

---
~/.kde/share/config/kdeglobals:
...
[KDE Action Restrictions]
editable_desktop_icons=false
...
Comment 1 Lubos Lunak 2006-09-06 19:28:23 UTC
Please provide the backtrace from the crash.
Comment 2 David Faure 2006-09-06 20:25:02 UTC
I see, some actions aren't created and yet they are used later on. I'll fix it.
Comment 3 David Faure 2006-09-06 20:55:43 UTC
SVN commit 581571 by dfaure:

Fix crash in kiosk mode (editable_desktop_icons=false)
BUG: 133665


 M  +5 -2      kdiconview.cc  


--- branches/KDE/3.5/kdebase/kdesktop/kdiconview.cc #581570:581571
@@ -1222,8 +1222,11 @@
 
     QString actionText = KIO::pasteActionText();
     bool paste = !actionText.isEmpty();
-    if ( paste )
-        m_actionCollection.action( "paste" )->setText( actionText );
+    if ( paste ) {
+        KAction* pasteAction = m_actionCollection.action( "paste" );
+        if ( pasteAction )
+            pasteAction->setText( actionText );
+    }
     slotEnableAction( "paste", paste );
 }
 
Comment 4 FiNeX 2009-01-02 20:33:15 UTC
Bug closed. Kdesktop is no more mantained.