[Digikam-devel] [Bug 201560] New: Crash at start up when scanning images

stefan.asserhall at comhem.se stefan.asserhall at comhem.se
Sun Jul 26 13:39:36 BST 2009


https://bugs.kde.org/show_bug.cgi?id=201560

           Summary: Crash at start up when scanning images
           Product: digikam
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel at kde.org
        ReportedBy: stefan.asserhall at comhem.se


Version:           1.0.0-beta4 (rev.: 1002376M) (using 4.3.61 (KDE 4.3.61 (KDE
4.4 >= 20090717)), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.26.8-57.fc8

digiKam crashes at start up when scanning images. The crash occurs in the file
digikam/libs/database/imagescanner.cpp:378, probably because some image has
incorrect metadata. The following patch fixes the crash:

Index: libs/database/imagescanner.cpp
===================================================================
--- libs/database/imagescanner.cpp    (revision 1002376)
+++ libs/database/imagescanner.cpp    (arbetskopia)
@@ -373,13 +373,13 @@
     }

     // Headline
-    if (!metadataInfos[0].isNull())
+    if (!metadataInfos[0].isNull() &&
metadataInfos[0].canConvert(QVariant::String))
     {
         comments.addHeadline(metadataInfos[0].toString());
     }

     // Title
-    if (!metadataInfos[1].isNull())
+    if (!metadataInfos[1].isNull() &&
metadataInfos[1].canConvert(QVariant::String))
     {
         comments.addTitle(metadataInfos[1].toString());
     }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list