Version: (using KDE KDE 3.1.1) Installed from: Unspecified Linux Compiler: gcc-3.2 Debian unstable OS: Linux I had ro-folder .thumbnails in my home directory and when I updated kde to 3.1.1 konqi crashed always if it was started in file-browser mode. KTempFile: Error trying to create /home/luser/.thumbnails/normal/kde-tmp-XXXXXX.png: Permission denied -> crash
Subject: Re: New: crash on start if ~/.thumbnail folder is readonly On Monday 24 March 2003 09:05, Tommi Tervo wrote: > Version: (using KDE KDE 3.1.1) > Installed from: Unspecified Linux > Compiler: gcc-3.2 Debian unstable > OS: Linux > > I had ro-folder .thumbnails in my home directory and when I updated kde to > 3.1.1 konqi crashed always if it was started in file-browser mode. > KTempFile: Error trying to create > /home/luser/.thumbnails/normal/kde-tmp-XXXXXX.png: Permission denied > -> crash Please provide a backtrace of the crash.
<URL: http://vodka.tky.hut.fi/~teve/crash.txt> (sorry, no debug build)
Subject: Re: crash on start if ~/.thumbnail folder is readonly On Monday 24 March 2003 09:38, Tommi Tervo wrote: > ------- Additional Comments From teve@vodka.tky.hut.fi 2003-03-24 15:38 > ------- <URL: http://vodka.tky.hut.fi/~teve/crash.txt> (sorry, no debug > build) _______________________________________________ Hm crash in libpng called out to by Qt.
Can reproduce.
Subject: kdelibs/kio/kio CVS commit by orlovich: Don't try to write out thumbnails when temp file creation fails. QImage::save crashes rather badly when we do that (i.e. when passing it QString::null, if the KTempFile docs are right) CCMAIL:56316-done@bugs.kde.org M +5 -2 previewjob.cpp 1.37 --- kdelibs/kio/kio/previewjob.cpp #1.36:1.37 @@ -441,6 +441,9 @@ void PreviewJob::slotThumbData(KIO::Job thumb.setText("Software", 0, "KDE Thumbnail Generator"); KTempFile temp(d->thumbPath + "kde-tmp-", ".png"); + if (temp.status() == 0) //Only try to write out the thumbnail if we + { //actually created the temp file. thumb.save(temp.name(), "PNG"); rename(QFile::encodeName(temp.name()), QFile::encodeName(d->thumbPath + d->thumbName)); + } } emitPreview( thumb );