Bug 479853 - Under Windows 10 it's not allow me to save a collection.
Summary: Under Windows 10 it's not allow me to save a collection.
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Setup-FirstRun (other bugs)
Version First Reported In: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 15:36 UTC by Keith
Modified: 2024-01-17 19:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.3.0
Sentry Crash Report:


Attachments
Screenshots Collection Configuration (1.26 MB, application/pdf)
2024-01-16 13:25 UTC, Keith
Details
Network Collection Config also disappears (539.64 KB, application/pdf)
2024-01-17 09:43 UTC, Keith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keith 2024-01-15 15:36:23 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I have been running Digikam with my photo collection on my NAS, using MySQL Server for years without issue, recently I upgraded to 8.2.0 and came across an issue with the program crashing as I updated tags. To Troubleshoot I have downgraded to 7.10.0 but can no longer add a Collection, at this point even a folder on my C: drive with two photos in. Each time I open the software the Collections have been removed, I can add them again (although can only see certain folders when going through the collection adding process) but no photos are imported and the collection data is missing

STEPS TO REPRODUCE
1. Run Digikam
2. Add path to a collection
3. Fails to import any pictures and if I recheck settings any collection information has disappeared

OBSERVED RESULT

No access to photos

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Am new to bug reporting so if there is any further detail needed please advise
Comment 1 caulier.gilles 2024-01-15 15:56:19 UTC
Which digiKam version exactly ? 8.2.0 or 7.10.0
Comment 2 Keith 2024-01-15 16:00:29 UTC
I recreate the same issue in both version 7.10.0 and 8.2.0

It originally occurred in 8.2.0 so I uninstalled and tried 7.10.0 and got the same result
Comment 3 Maik Qualmann 2024-01-15 16:48:43 UTC
It's a really bad idea to go back to digiKam-7.10 because the databases are no longer compatible.
Install the pre-release version of digiKam-8.3.0 from here and report:

https://files.kde.org/digikam/

If it fails here too, create a DebugView log from adding the collection, as described here:

https://www.digikam.org/contribute/

Maik
Comment 4 Maik Qualmann 2024-01-15 19:15:10 UTC
Another note on choosing a collection. You cannot select Windows virtual libraries. digiKam expects the actual physical path, e.g. "C:\Users\%USERNAME%\Pictures" or "D:\Pictures" or "\\MY--NAS\Pictures"

Maik
Comment 5 Keith 2024-01-16 11:28:19 UTC
Thanks for the feedback, I have been using the following format for my path to my library

\\NAS_ID\Photos\PhotoLibrary

This has been working for years (until I upgraded)

Under the PhotoLibrary I have folders for each year where the photos are stored (In a folder of the date photo was taken)

I believe my issue is possibly with Windows permissions, I am uninstalling and going to install the version 8.3.0 from the link provided and will report back
Comment 6 Keith 2024-01-16 13:25:16 UTC
Created attachment 164947 [details]
Screenshots Collection Configuration

I have done a clean install of 8.3.0 using the link provided and attached are the screenshots of running the digiKam application after the install and trying to connect to my collection of photos. This collection has worked fine previously and the only changes have been made on the PC connecting to this collection
Comment 7 Maik Qualmann 2024-01-16 16:45:22 UTC
Your UNC path is not a local collection. You have to add them as a network collection, it's clear that it doesn't work. I tested it here, UNC path under network collection works without any problems.

Maik
Comment 8 Keith 2024-01-17 09:43:39 UTC
Created attachment 164972 [details]
Network Collection Config also disappears

Screenshots showing the Network Collection configuration also fails
Comment 9 Keith 2024-01-17 09:45:05 UTC
Above are screenshots that show the same issue occurs when adding the collection as a network share

I added it as a Local Collection as that had always worked for me in previous versions
Comment 10 Maik Qualmann 2024-01-17 10:48:31 UTC
Since it works here, I don't have an explanation at the moment. Please create a DebugView log of the process of adding the collection. DebugView Log is described here for Windows:

https://www.digikam.org/contribute/

Maik
Comment 11 Keith 2024-01-17 11:48:01 UTC
I have tried to activate the Debug logging, however again here the settings refuse to save, I check the "Enable internal debug logging" box and click on OK to close the settings dialogue, when I reopen it the box is again unchecked

Could this be more a permissions issue in that digiKam is not able to save changes to settings, not just the path to the collection but again here with trying to enable the debugging?
Comment 12 caulier.gilles 2024-01-17 12:00:00 UTC
yes there is a permission issue in your account. All digiKam settings is stored in files listed in online doc :

https://docs.digikam.org/en/getting_started/installation.html#configuration-files

In other words, check your system.

Gilles Caulier
Comment 13 Keith 2024-01-17 14:52:06 UTC
I have removed the software and manually deleted the left over files. Run a new install and I get the original setup options on first run, been through these settings and it appears to be displaying the photos as expected (although still has a large library to sync up)

Interestingly it seems to work with my mapped network drive configured as a collection under Local Collection

I am going to make sure all is working and then consider if moving the collection to being a network share is necessary

I think my original query can now be considered as resolved, your feedback has been appreciated, thanks for taking the time to respond
Comment 14 Keith 2024-01-17 14:52:44 UTC
Moving to resolved status
Comment 15 Maik Qualmann 2024-01-17 19:47:52 UTC
You should definitely not set a network drive as a local collection. digiKam expects a local collection to always be available (internal hard drive, boot hard drive). If your network is not online, digiKam will remove all images from the database without asking.
You can also change the collection type later using the update function (round circle icon in the collection settings).

Maik