Summary: | Crash during attempted folder import | ||
---|---|---|---|
Product: | [Applications] kphotoalbum | Reporter: | John Pearson <johnpearson713> |
Component: | general | Assignee: | KPhotoAlbum Bugs <kpabugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | johannes |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.8.1 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | 4663fad989c029aba6dbf376911f0532290f7323 | Version Fixed In: | |
Sentry Crash Report: |
Description
John Pearson
2021-11-12 22:34:51 UTC
Hi John, Thanks for the crash report! Upon inspection of the crash backtrace it seems like you deselected the images from the import file and then started the import, leading to the crash... Can you try if the crash also happens if you select any image before starting the import? Cheers, Johannes Git commit 4663fad989c029aba6dbf376911f0532290f7323 by Johannes Zarl-Zierl. Committed on 07/12/2021 at 00:11. Pushed by johanneszarl into branch 'master'. Avoid crashing on import if no image was selected M +11 -3 ImportExport/ImportHandler.cpp https://invent.kde.org/graphics/kphotoalbum/commit/4663fad989c029aba6dbf376911f0532290f7323 On Monday, December 6, 2021 7:01:17 PM EST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=445404
>
> Johannes Zarl-Zierl <johannes@zarl-zierl.at> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Ever confirmed|0 |1
> Status|REPORTED |CONFIRMED
> CC| |johannes@zarl-zierl.at
>
> --- Comment #1 from Johannes Zarl-Zierl <johannes@zarl-zierl.at> ---
> Hi John,
>
> Thanks for the crash report!
> Upon inspection of the crash backtrace it seems like you deselected the
> images from the import file and then started the import, leading to the
> crash... Can you try if the crash also happens if you select any image
> before starting the import?
Actually, what happens is that I had forgotten to select images during
export. So I have a folder with the images and a kim file that is mostly
empty [I openned a terminal and used less to confirm that was the case.]
kpa creates the destination folder and does not move images displaying a
fault message. This seems consistent behavior.
My work around consists of the following process:
1. System level copy of the folder created by export, and all the files
there in. Drag and drop in Dolphin works; midnight commander is much more
efficient.
2. Select Maintenance/Rescan add the images themselves to the database.
3. File/import any salvaged image information; it does not matter if I
deselect the image names during the import dialog. If there is
information, then it is added. If there is no information, there is no
fault produced.
I am in process of salvaging a database of many thousands of images. I
upgraded my computer, Ubuntu 18.04 to Ubuntu 20.04, kpa going from 5.3 to
5.8. 20+ years of gathered family photos are what I am trying to salvage.
I reinstalled Ubuntu 18.04 on the computer; the database works. Preserving
the folder structure and the database seems to require 1.2K+ select and
export operations, folder by folder, not all of which I perform flawlessly.
I then boot the computer into Ubuntu 20.04, and import the folders one at a
time. I could not find a better way.
This has to be an edge case. The cause of the fault is forgetting to do a
select all before the export. The procedure outlined above consistently
overcomes the fault
Thank you for the reply,
John
Thank you for the detailed response - this confirms that I didn't overlook something. The fix is in master and therefore part of the next release. As for your problem: depending on the details of your problem, you might get some use out of the "kpa-merge" tool that can be found inside the contrib directory of KPhotoAlbum. While the script is not officially supported and we always recommend backing up your index.xml file before running any tools on it, the script was written by long-time contributor Robert Krawitz and can merge two index.xml files into one... On Tuesday, December 7, 2021 4:54:35 PM EST you wrote: > https://bugs.kde.org/show_bug.cgi?id=445404 > > Johannes Zarl-Zierl <johannes@zarl-zierl.at> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Latest Commit| |4663fad989c029aba6dbf376911 > | |f0532290f7323 > > Resolution|--- |FIXED > Status|CONFIRMED |RESOLVED > > --- Comment #4 from Johannes Zarl-Zierl <johannes@zarl-zierl.at> --- > Thank you for the detailed response - this confirms that I didn't overlook > something. The fix is in master and therefore part of the next release. I did not feel it was more than me ending up with an unusual file[s]. I am glad I could be of some help. > As for your problem: depending on the details of your problem, you might get > some use out of the "kpa-merge" tool that can be found inside the contrib > directory of KPhotoAlbum. While the script is not officially supported and > we always recommend backing up your index.xml file before running any tools > on it, the script was written by long-time contributor Robert Krawitz and > can merge two index.xml files into one... 'kpa-merge' has not been a good search term; but thanks for the suggestion. kphotoalbum is fine tool. z |