<div dir="ltr"><div><div><div>Hi there,<br><br></div>Any clue on how to solve this problem?<br><br></div>Thanks.<br><br><br></div>d.<br><br><br><div><div><div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">daniel bip</b> <span dir="ltr"><<a href="mailto:daniel.mail.public@gmail.com">daniel.mail.public@gmail.com</a>></span><br>Date: 17 June 2017 at 00:05<br>Subject: Migration crash<br>To: digiKam - Home Manage your photographs as a professional with the power of open source <<a href="mailto:digikam-users@kde.org">digikam-users@kde.org</a>><br><br><br><div dir="ltr"><div><div><div>Hi there,<br><br></div>I'm trying to migrate from SQLite to Mysql External Server and after some minutes Digikam crashes, with the following message in the terminal window. Any idea on how to fix that?<br><br><div>DK 5.5.0 from <span class="m_-624195062421426100gmail-st">Philip Johnsson's repository<br></span></div><div>Ubuntu: 16.04 running in a VirtualBox windows-host<br></div><div>DB: mariaDB 10.0.29<br></div><div>driver: libq5sql5-mysql:amd64 5.5.1<br></div><div><br></div></div>Thanks.<br><br><br></div>d.<br><br><br><div><div><pre class="m_-624195062421426100gmail-lang-sql m_-624195062421426100gmail-prettyprint m_-624195062421426100gmail-prettyprinted"><code><span class="m_-624195062421426100gmail-kwd">digikam.coredb: Core database: column: [ "id" ] value [ QVariant(qlonglong, 373273) ]<br>digikam.coredb: Core database: column: [ "album" ] value [ QVariant(qlonglong, 1355) ]<br>digikam.coredb: Core database: column: [ "name" ] value [ QVariant(QString, "DSC09607.JPG") ]<br>digikam.coredb: Core database: column: [ "status" ] value [ QVariant(qlonglong, 1) ]<br>digikam.coredb: Core database: column: [ "category" ] value [ QVariant(qlonglong, 1) ]<br>digikam.coredb: Core database: column: [ "modificationDate" ] value [ QVariant(QString, "2017-06-16T15:39:36") ]<br>digikam.coredb: Core database: column: [ "fileSize" ] value [ QVariant(qlonglong, 14676897) ]<br>digikam.coredb: Core database: column: [ "uniqueHash" ] value [ QVariant(QString, "<wbr>823486c254f9a776a253a8df68d41e<wbr>5e") ]<br>digikam.coredb: Core database: trying to copy contents from DB with ActionName: [ "Migrate_Read_AlbumsExtra" ] to DB with ActionName [ "Migrate_Write_AlbumsExtra" ]<br>digikam.coredb: Core database: driver doesn't support query size. We try to go to the last row and back to the current.<br>digikam.coredb: Core database: result size: [ 0 ]<br>digikam.coredb: Core database: trying to copy contents from DB with ActionName: [ "Migrate_Read_ImageHaarMatrix" ] to DB with ActionName [ "Migrate_Write_<wbr>ImageHaarMatrix" ]<br>digikam.coredb: Core database: driver doesn't support query size. We try to go to the last row and back to the current.<br>digikam.coredb: Core database: result size: [ 84512 ]<br>digikam.coredb: Core database: query isOnValidRow [ true ] isActive [ true ] result size: [ -1 ]<br>digikam.coredb: Core database: column: [ "imageid" ] value [ QVariant(qlonglong, 0) ]<br>digikam.coredb: Core database: column: [ "modificationDate" ] value [ QVariant(QString, "2006-09-03T13:47:52") ]<br>digikam.coredb: Core database: column: [ "uniqueHash" ] value [ QVariant(QString, "<wbr>cda4ebc77881feaf5b6765037b5019<wbr>3f") ]<br>digikam.coredb: Core database: column: [ "matrix" ] value [ QVariant(QByteArray, "\x00\x00\x00\x01?\xDD\xA3""A\<wbr>xEE""Bq\xC3\xBF\x96\xA2\xDE\<wbr>x92""b<\x1E?aGuC{\x93u\x00\<wbr>x00\x02\x04\x00\x00\x03\x8B\<wbr>xFF\xFF\xFE}\xFF\xFF\xFF\xF8\<wbr>xFF\xFF\xFF\xB9\xFF\xFF\xFF\<wbr>xEF\xFF\xFF\xFB|\xFF\xFF\xFF|\<wbr>xFF\xFF\xFD\x7F\xFF\xFF\xFF\<wbr>xDD\x00\x00\x02\x02\x00\x00\<wbr>x00\x8A\xFF\xFF\xFE\xF7\x00\<wbr>x00\x01\x89\x00\x00\x00\x86\<wbr>xFF\xFF\xFA\xFF\x00\x00\x04\<wbr>x81\xFF\xFF\xFCv\xFF\xFF\xFFu\<wbr>xFF\xFF\xFE\xFE\x00\x00\x00%\<wbr>xFF\xFF\xFF\x7F\xFF\xFF\xFEv\<wbr>x00\x00\x03\x81\x00\x00\x00\<wbr>x12\xFF\xFF\xFF\xFD\x00\x00\<wbr>x00\x0B\x00\x00\x04\x80\x00\<wbr>x00\x00\x83\xFF\xFF\xFF\xFF\<wbr>x00\x00\x02\x01\xFF\xFF\xFF\<wbr>xF6\x00\x00\x05\x00\x00\x00\<wbr>x02\x00\x00\x00\x02\x80\xFF\<wbr>xFF\xFF\xFC\x00\x00\x00\t\xFF\<wbr>xFF\xFF\xFE\x00\x00\x00\x80\<wbr>x00\x00\x01\x00\xFF\xFF\xFF\<wbr>xFD\xFF\xFF\xFD\x80\x00\x00\<wbr>x01\xAA\xFF\xFF\xF8\xFE\x00\<wbr>x00\x01\x81\x00\x00\x07\x03\<wbr>x00\x00\x03\x0B\xFF\xFF\xFE\<wbr>x00\x00\x00\x01\x01\xFF\xFF\<wbr>xFB\x00\x00\x00\x02\x07\x00\<wbr>x00\x00\x87\x00\x00\x00\f\x00\<wbr>x00\x00\x81\x00\x00\x00\x8D\<wbr>x00\x00\x00\x07\x00\x00\x00\<wbr>x86\x00\x00\x03\x8D\x00\x00\<wbr>x03\x8B\x00\x00\x00\x8C\xFF\<wbr>xFF\xFF\xF3\xFF\xFF\xFE\xF4\<wbr>xFF\xFF\xFC\xFB\xFF\xFF\xFF\<wbr>xF7\x00\x00\x01\x07\xFF\xFF\<wbr>xFDu\x00\x00\x03\x83\x00\x00\<wbr>x03\x01\x00\x00\x02\x03\xFF\<wbr>xFF\xFF~\x00\x00\x01\x8D\x00\<wbr>x00\x03\x80\xFF\xFF\xFF\xFB\<wbr>xFF\xFF\xFC~\x00\x00\x00\x83\<wbr>x00\x00\x01\x8B\x00\x00\x01\<wbr>x83\xFF\xFF\xFE~\x00\x00\x01\<wbr>x80\xFF\xFF\xFF\x00\xFF\xFF\<wbr>xFCu\xFF\xFF\xF4\xE2\xFF\xFF\<wbr>xFEs\xFF\xFF\xE8\x00\x00\x00\<wbr>x02\x8C\x00\x00\x01\x82\xFF\<wbr>xFF\xFE\x7F\xFF\xFF\xFEu\xFF\<wbr>xFF\xF4\xF9\xFF\xFF\xFFy\x00\<wbr>x00\x00\x8C\xFF\xFF\xFF\xEF\<wbr>xFF\xFF\xFE\xF4\xFF\xFF\xFA}\<wbr>x00\x00\x05\x8C\x00\x00\x02\<wbr>x82\xFF\xFF\xFDi\xFF\xFF\xFA\<wbr>xFA\x00\x00\x03\x82\xFF\xFF\<wbr>xFF\xDD\xFF\xFF\xFDs\xFF\xFF\<wbr>xFF}\x00\x00\x00\x86\xFF\xFF\<wbr>xFF\xFE\xFF\xFF\xFD\x7F\x00\<wbr>x00\x00\x82\xFF\xFF\xFA\xFD\<wbr>xFF\xFF\xFD}\x00\x00\x00\r\<wbr>x00\x00\x00\x01\xFF\xFF\xFAs\<wbr>xFF\xFF\xFA\xFF\x00\x00\x05\<wbr>x00\xFF\xFF\xFE\xFD\x00\x00\<wbr>x00\x06\xFF\xFF\xFF\x80\xFF\<wbr>xFF\xFE\xFA\x00\x00\x00\x03\<wbr>xFF\xFF\xFE\xFF\x00\x00\x01\<wbr>x00") ]<br>digikam.dbengine: Failure executing query:<br> "\n INSERT INTO ImageHaarMatrix (imageid, modificationDate, uniqueHash, matrix) VALUES (?, ?, ?, ?);\n " <br>Error messages: "QMYSQL3: Unable to execute statement" "Cannot add or update a child row: a foreign key constraint fails (`digikam`.`ImageHaarMatrix`, CONSTRAINT `ImageHaarMatrix_Images` FOREIGN KEY (`imageid`) REFERENCES `Images` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)" 1452 2 <br>Bound values: (QVariant(qlonglong, 0), QVariant(QString, "2006-09-03T13:47:52"), QVariant(QString, "<wbr>cda4ebc77881feaf5b6765037b5019<wbr>3f"), QVariant(QByteArray, "\x00\x00\x00\x01?\xDD\xA3""A\<wbr>xEE""Bq\xC3\xBF\x96\xA2\xDE\<wbr>x92""b<\x1E?aGuC{\x93u\x00\<wbr>x00\x02\x04\x00\x00\x03\x8B\<wbr>xFF\xFF\xFE}\xFF\xFF\xFF\xF8\<wbr>xFF\xFF\xFF\xB9\xFF\xFF\xFF\<wbr>xEF\xFF\xFF\xFB|\xFF\xFF\xFF|\<wbr>xFF\xFF\xFD\x7F\xFF\xFF\xFF\<wbr>xDD\x00\x00\x02\x02\x00\x00\<wbr>x00\x8A\xFF\xFF\xFE\xF7\x00\<wbr>x00\x01\x89\x00\x00\x00\x86\<wbr>xFF\xFF\xFA\xFF\x00\x00\x04\<wbr>x81\xFF\xFF\xFCv\xFF\xFF\xFFu\<wbr>xFF\xFF\xFE\xFE\x00\x00\x00%\<wbr>xFF\xFF\xFF\x7F\xFF\xFF\xFEv\<wbr>x00\x00\x03\x81\x00\x00\x00\<wbr>x12\xFF\xFF\xFF\xFD\x00\x00\<wbr>x00\x0B\x00\x00\x04\x80\x00\<wbr>x00\x00\x83\xFF\xFF\xFF\xFF\<wbr>x00\x00\x02\x01\xFF\xFF\xFF\<wbr>xF6\x00\x00\x05\x00\x00\x00\<wbr>x02\x00\x00\x00\x02\x80\xFF\<wbr>xFF\xFF\xFC\x00\x00\x00\t\xFF\<wbr>xFF\xFF\xFE\x00\x00\x00\x80\<wbr>x00\x00\x01\x00\xFF\xFF\xFF\<wbr>xFD\xFF\xFF\xFD\x80\x00\x00\<wbr>x01\xAA\xFF\xFF\xF8\xFE\x00\<wbr>x00\x01\x81\x00\x00\x07\x03\<wbr>x00\x00\x03\x0B\xFF\xFF\xFE\<wbr>x00\x00\x00\x01\x01\xFF\xFF\<wbr>xFB\x00\x00\x00\x02\x07\x00\<wbr>x00\x00\x87\x00\x00\x00\f\x00\<wbr>x00\x00\x81\x00\x00\x00\x8D\<wbr>x00\x00\x00\x07\x00\x00\x00\<wbr>x86\x00\x00\x03\x8D\x00\x00\<wbr>x03\x8B\x00\x00\x00\x8C\xFF\<wbr>xFF\xFF\xF3\xFF\xFF\xFE\xF4\<wbr>xFF\xFF\xFC\xFB\xFF\xFF\xFF\<wbr>xF7\x00\x00\x01\x07\xFF\xFF\<wbr>xFDu\x00\x00\x03\x83\x00\x00\<wbr>x03\x01\x00\x00\x02\x03\xFF\<wbr>xFF\xFF~\x00\x00\x01\x8D\x00\<wbr>x00\x03\x80\xFF\xFF\xFF\xFB\<wbr>xFF\xFF\xFC~\x00\x00\x00\x83\<wbr>x00\x00\x01\x8B\x00\x00\x01\<wbr>x83\xFF\xFF\xFE~\x00\x00\x01\<wbr>x80\xFF\xFF\xFF\x00\xFF\xFF\<wbr>xFCu\xFF\xFF\xF4\xE2\xFF\xFF\<wbr>xFEs\xFF\xFF\xE8\x00\x00\x00\<wbr>x02\x8C\x00\x00\x01\x82\xFF\<wbr>xFF\xFE\x7F\xFF\xFF\xFEu\xFF\<wbr>xFF\xF4\xF9\xFF\xFF\xFFy\x00\<wbr>x00\x00\x8C\xFF\xFF\xFF\xEF\<wbr>xFF\xFF\xFE\xF4\xFF\xFF\xFA}\<wbr>x00\x00\x05\x8C\x00\x00\x02\<wbr>x82\xFF\xFF\xFDi\xFF\xFF\xFA\<wbr>xFA\x00\x00\x03\x82\xFF\xFF\<wbr>xFF\xDD\xFF\xFF\xFDs\xFF\xFF\<wbr>xFF}\x00\x00\x00\x86\xFF\xFF\<wbr>xFF\xFE\xFF\xFF\xFD\x7F\x00\<wbr>x00\x00\x82\xFF\xFF\xFA\xFD\<wbr>xFF\xFF\xFD}\x00\x00\x00\r\<wbr>x00\x00\x00\x01\xFF\xFF\xFAs\<wbr>xFF\xFF\xFA\xFF\x00\x00\x05\<wbr>x00\xFF\xFF\xFE\xFD\x00\x00\<wbr>x00\x06\xFF\xFF\xFF\x80\xFF\<wbr>xFF\xFE\xFA\x00\x00\x00\x03\<wbr>xFF\xFF\xFE\xFF\x00\x00\x01\<wbr>x00"))<br>digikam.dbengine: Error while executing DBAction [ "Migrate_Write_<wbr>ImageHaarMatrix" ] Statement [ "\n INSERT INTO ImageHaarMatrix (imageid, modificationDate, uniqueHash, matrix) VALUES (:imageid, :modificationDate, :uniqueHash, :matrix);\n " ]<br>digikam.coredb: Core database: error while converting table data. Details: QSqlError("1452", "QMYSQL3: Unable to execute statement", "Cannot add or update a child row: a foreign key constraint fails (`digikam`.`ImageHaarMatrix`, CONSTRAINT `ImageHaarMatrix_Images` FOREIGN KEY (`imageid`) REFERENCES `Images` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)")<br><br></span><span class="m_-624195062421426100gmail-pun"></span></code></pre></div></div></div>
</div><br></div></div></div></div></div>