Bug 91828 - Digikam crash with non-writable "album library path"
Summary: Digikam crash with non-writable "album library path"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 0.7.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 15:58 UTC by Diederik van der Boor
Modified: 2022-01-12 03:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik van der Boor 2004-10-21 15:58:30 UTC
Version:           0.7-beta1 (using KDE 3.3.1, Gentoo)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.8-gentoo-r7

Digikam crashed when I selected my folder path, which was not writable by digikam. The following errors were printed in the console:

digikam: WARNING: [void AlbumFolderView::loadAlbumState()] Failed to open albumtreestate.bin
digikam: WARNING: [void AlbumDB::setDBPath(const QString&)] Cannot open database: unable to open database: /mnt/data-dump/fotos/digikam.db
digikam: WARNING: [bool AlbumDB::execSql(const QString&, QStringList*, bool)] SQLite pointer == NULL
digikam: WARNING: [bool AlbumDB::execSql(const QString&, QStringList*, bool)] SQLite pointer == NULL
digikam: WARNING: [bool AlbumDB::execSql(const QString&, QStringList*, bool)] SQLite pointer == NULL
digikam: WARNING: [bool AlbumDB::execSql(const QString&, QStringList*, bool)] SQLite pointer == NULL
Comment 1 caulier.gilles 2004-10-21 16:20:04 UTC
Yes, i confirm this bug. I can reproduce it on my computer...

Gilles Caulier
Comment 2 Renchi Raju 2004-10-21 21:02:35 UTC
CVS commit by pahlibar: 


fixed crash when the album library path is unwritable. Note to users, at least
make the album library path writable, otherwise none of the digikam tags or comments 
features will work. the actual photo directories don't have to be writable
BUG: 91828


  M +3 -0      albumdb.cpp   1.11


--- kdeextragear-3/digikam/digikam/albumdb.cpp  #1.10:1.11
@@ -237,4 +237,7 @@ void AlbumDB::deleteAlbum(Album *a)
 void AlbumDB::readPAlbum(PAlbum *album)
 {
+    if (!m_db)
+        return;
+    
     QStringList values;
 


Comment 3 Renchi Raju 2004-11-03 10:34:01 UTC
*** Bug 92624 has been marked as a duplicate of this bug. ***