Bug 152115 - Ksnapshot crashes when trying to rename a taken snapshot
Summary: Ksnapshot crashes when trying to rename a taken snapshot
Status: RESOLVED FIXED
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-10 17:10 UTC by Ben Kevan
Modified: 2007-12-27 20:51 UTC (History)
0 users

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 Ben Kevan 2007-11-10 17:10:31 UTC
Version:           4.0 Beta 4 (3.95) (using KDE KDE 3.95.0)
Installed from:    SuSE RPMs
OS:                Linux

Try to reproduce. Start KSnapshot (I am doing window under cursor no delay).
Take a shot, when you go to rename the first key stroke in the new name kills
ksnapshot. 

Here is a trace from a Konsole: 

bkevan@ben-susetest:~> ksnapshot
ksnapshot(10494)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Tr
ying to open ksycoca from  "/home/bkevan/.kde4/cache-ben-susetest/k
sycoca4"
ksnapshot(10494)/kdecore (trader) KServiceTypeTrader::defaultOffers
: query for serviceType  "QImageIOPlugins"  : returning  21  offers
ksnapshot(10494)/kdecore (KLibLoader) findLibraryInternal: plugins
should not have a 'lib' prefix: "libkfilemodule.so"
ksnapshot(10494)/kdecore (KLibLoader) KPluginLoader::load: The plug
in "libkfilemodule" doesn't contain a kde_plugin_verification_data
structure
ksnapshot(10494)/kdecore (KLibLoader) KDEPrivate::ConcreteFactory<P
roduct, ParentType>::create: className= KAbstractFileModule  metaOb
ject->className()= KFileModule
ksnapshot(10494)/kdecore (KLibLoader) KDEPrivate::ConcreteFactory<P
roduct, ParentType>::create: className= KAbstractFileModule  metaOb
ject->className()= KAbstractFileModule
ksnapshot(10494)/kdecore (KLibLoader) KDEPrivate::ConcreteFactory<P
roduct, ParentType>::create: create - 3
ksnapshot(10494) KFileItem::isDir:  KFileItem::isDir can't say -> f
alse
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::KDirWatchPrivate
: Available methods:  ("Stat", "INotify")
ksnapshot(10494)/kio (KDirLister) KDirLister::stop:
Unknown property spacing-top
Unknown property spacing-top
Unknown property spacing-top
Unknown property spacing-top
Unknown property spacing-top
Unknown property spacing-top
Unknown property spacing-top
ksnapshot(10494) KFileItem::isDir:  KFileItem::isDir can't say -> f
alse
ksnapshot(10494) KFileItem::isDir:  KFileItem::isDir can't say -> f
alse
ksnapshot(10494)/kdecore (trader) KServiceTypeTrader::defaultOffers
: query for serviceType  "ThumbCreator"  : returning  9  offers
ksnapshot(10494)/kdecore (trader) KServiceTypeTrader::defaultOffers
: query for serviceType  "ThumbCreator"  : returning  9  offers
ksnapshot(10494)/kdecore (trader) KServiceTypeTrader::defaultOffers
: query for serviceType  "ThumbCreator"  : returning  9  offers
ksnapshot(10494)/kio (KDirListerCache) KDirListerCache::listDir: KD
irLister(0x9685718) url= KUrl("file:///home/bkevan") keep= false re
load= false
ksnapshot(10494)/kio (KDirListerCache) KDirListerCache::listDir: En
try not in cache or reloaded: KUrl("file:///home/bkevan")
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added
Dir "/home/bkevan" for "" ["KDirWatch-1"]
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::useINotify: tryi
ng to use inotify for monitoring
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::useINotify: inot
ify successfully used for monitoring
Unknown property spacing-top
ksnapshot(10494)/kio (Slave) KIO::Slave::createSlave: createSlave '
 "file" ' for  "file:///home/bkevan"
ksnapshot(10494)/kio (KIOConnection) KIO::ConnectionServer::listenF
orRemote: Listening on  "local:/home/bkevan/.kde4/socket-ben-susete
st/ksnapshotd10494.slave-socket"
ksnapshot(10494)/kio (KDirListerCache) KDirListerCache::slotEntries
: new entries for  KUrl("file:///home/bkevan")
ksnapshot(10494)/kio (KDirModel) KDirModelPrivate::_k_slotNewItems:
 6  in  KUrl("file:///home/bkevan")  index= "[invalid index, i.e. r
oot]"  newRowCount= 6
ksnapshot(10494)/kio (KDirListerCache) KDirListerCache::slotResult:
 finished listing KUrl("file:///home/bkevan")
ksnapshot(10494)/kio KSambaShare::KSambaSharePrivate::findSmbConf:
KSambaShare: Could not found smb.conf!
ksnapshot(10494)/kio KNFSShare::KNFSSharePrivate::readExportsFile:
KNFSShare::readExportsFile  "/etc/exports"
ksnapshot(10494)/kio KNFSShare::KNFSSharePrivate::readExportsFile:
KNFSShare: Found path:  ""
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added
File "/etc/exports" for "" ["KDirWatch-1"]
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::useINotify: tryi
ng to use inotify for monitoring
ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::useINotify: inot
ify successfully used for monitoring
ksnapshot(10494)/kdecore (trader) KServiceTypeTrader::defaultOffers: query for
serviceType  "ThumbCreator"  : returning  9  offersksnapshot(10494)/kdecore
(trader) KServiceTypeTrader::defaultOffers: query for serviceType 
"ThumbCreator"  : returning  9  offersksnapshot(10494)
KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"ASSERT:
"node" in file /usr/src/packages/BUILD/kdelibs-3.95.2/kio/kio/kdirmodel.cpp,
line 353ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::removeEntry:
KDirWatchPrivate::removeEntry for "/etc/exports" sub_entry:
0x0ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled
INotify (fd 28, 2) for "/etc/exports"ksnapshot(10494)/kio (KDirWatch)
KDirWatchPrivate::removeEntry: Removed File "/etc/exports" for ""
["KDirWatch-1"]ksnapshot(10494)/kio (KDirListerCache)
KDirListerCache::~KDirListerCache: -KDirListerCacheksnapshot(10494)/kio
(KDirWatch) KDirWatchPrivate::removeEntry: KDirWatchPrivate::removeEntry for
"/home/bkevan" sub_entry: 0x0ksnapshot(10494)/kio (KDirWatch)
KDirWatchPrivate::removeEntry: Cancelled INotify (fd 28, 1) for
"/home/bkevan"ksnapshot(10494)/kio (KDirWatch) KDirWatchPrivate::removeEntry:
Removed Dir "/home/bkevan" for "" ["KDirWatch-1"]
Comment 1 Thomas McGuire 2007-11-10 17:17:45 UTC
Please provide a backtrace,see http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Reassigning to KSnapshot.
Comment 2 Francesco Battaglini 2007-11-11 15:53:08 UTC
I can't reproduce that. (kdegraphics r 734902)
Comment 3 Ben Kevan 2007-11-12 00:43:06 UTC
Strange. 

Let me try to get a backtrace. Could possibly be the SuSE Packages? Maybe I'll wait for RC1 / Beta 5
Comment 4 Ben Kevan 2007-11-21 00:16:11 UTC
Just to add I am still getting this issue in 3.96.00 


But here is more information: 

Here are the last few lines of ksnapshot after the dialog opens:
ksnapshot(12898)/kio (KDirWatch) KDirWatchPrivate::removeEntry: KDirWatchPrivate::removeEntry for "/home/bkevan" sub_entry: 0x0ksnapshot(12898)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled INotify (fd 20, 1) for "/home/bkevan"ksnapshot(12898)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Removed Dir "/home/bkevan" for "" ["KDirWatch-1"]

If I change directories to something like documents it will actually save.. 

So the problem actually seems to be if you try to save it to your home folder. 

Can you try to reproduce? I can reproduce every time trying to save in Home 

Not /home but in what the dialog calls Home (which is actually /home/bkevan) for me as you can see above. 
Comment 5 Urs Wolfer 2007-12-27 20:51:40 UTC
Cannot reproduce anymore with a current subversion checkout.