Bug 451628 - digikam hangs on startup
Summary: digikam hangs on startup
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-17 17:22 UTC by Steve Franks
Modified: 2022-03-21 10:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.7.0


Attachments
debugview log (1.06 MB, application/zip)
2022-03-17 17:22 UTC, Steve Franks
Details
attachment-31671-0.html (1.33 KB, text/html)
2022-03-19 17:48 UTC, Steve Franks
Details
attachment-4625-0.html (1.36 KB, text/html)
2022-03-21 10:33 UTC, Steve Franks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Franks 2022-03-17 17:22:38 UTC
Created attachment 147565 [details]
debugview log

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
***
digikam hangs at start. Process progress remains at 0% for several minutes  'checking for new files'. The option to check for new files at startup is NOT selected.

STEPS TO REPRODUCE
1.  Close digikam.
2.  Start digikam.
3. 

OBSERVED RESULT
Progress indicator shows 0%, clicking up up arrow expands this to show that digikam is checking for new items.
Debugview log shows multiple attempts to connect to MySql database.
Albums will expand, but no thumbnails are displayed. Menues do not react.

Restarting digikam after rebooting digikam user interface does not appear, although Windows shows a background process for Advanced Photo Management...

EXPECTED RESULT
Progess indicator shows increasing values.

SOFTWARE/OS VERSIONS
Windows: 11 Home 10.0.22000 Build 22000
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Steve Franks 2022-03-17 17:25:34 UTC
I don't know if it is a coincidence, but Showfoto also hangs if it is opened whilst digikam is in this state.
Also Task Manager is showing 0% CPU use for digikam.
Comment 2 caulier.gilles 2022-03-17 17:26:06 UTC
Comment on attachment 147565 [details]
debugview log

Your database is locked, but i see weird message from the system at the same time...
Comment 3 caulier.gilles 2022-03-17 17:47:54 UTC
If Showfoto hang at start up, well it's not a database problem, as Showfoto do not manage a database.
If digiKam database is locked, it's a side-effect.

There is something wrong on your computer which lock digiKam and showfoto at startup.

Did you use an anti-virus ?
Comment 4 Maik Qualmann 2022-03-18 06:51:21 UTC
You are using digiKam's internal MySQL server. A connection to the started MySQL server can no longer be established. Quite a lot of error messages come from Apple ICloud for Windows which is also broken. A log from showFoto would be interesting. I would also say that your system has a problem.

Maik
Comment 5 Steve Franks 2022-03-18 08:56:38 UTC
(In reply to caulier.gilles from comment #3)
> If Showfoto hang at start up, well it's not a database problem, as Showfoto
> do not manage a database.
> If digiKam database is locked, it's a side-effect.
> 
> There is something wrong on your computer which lock digiKam and showfoto at
> startup.
> 
> Did you use an anti-virus ?

Yes. McAfee Total Protection
Comment 6 caulier.gilles 2022-03-18 09:15:10 UTC
What's happen if the anti-virus is disabled temporally when you start digiKam ?
Comment 7 Steve Franks 2022-03-18 11:36:12 UTC
(In reply to caulier.gilles from comment #6)
> What's happen if the anti-virus is disabled temporally when you start
> digiKam ?

I don't know. I've started from scratch, because I spent to long trying to sort this.(In reply to Maik Qualmann from comment #4)
> You are using digiKam's internal MySQL server. A connection to the started
> MySQL server can no longer be established. Quite a lot of error messages
> come from Apple ICloud for Windows which is also broken. A log from showFoto
> would be interesting. I would also say that your system has a problem.
> 
> Maik

I wish I knew what it is.
Comment 8 Maik Qualmann 2022-03-18 18:02:12 UTC
Git commit 4c123e0ac25998b6a5d42913acbed839bd99a2ef by Maik Qualmann.
Committed on 18/03/2022 at 18:00.
Pushed by mqualmann into branch 'qt5-maintenance'.

check if the port for the internal MySQL server is free

M  +1    -0    core/libs/database/CMakeLists.txt
M  +24   -5    core/libs/database/server/databaseserver.cpp

https://invent.kde.org/graphics/digikam/commit/4c123e0ac25998b6a5d42913acbed839bd99a2ef
Comment 9 Maik Qualmann 2022-03-19 06:08:46 UTC
Please test the prerelease digiKam-7.7.0 version with the latest change from here:

https://files.kde.org/digikam/
https://files.kde.org/digikam/digiKam-7.7.0-20220318T190205-Win64.exe

Maik
Comment 10 Steve Franks 2022-03-19 17:48:22 UTC
Created attachment 147601 [details]
attachment-31671-0.html

OK I will try 7.7.0.
I don’t know how to recreate the problem, but Mariadb came up with the same
message when I deleted what I thought were the log files.
Thanks
Steve

On Sat, 19 Mar 2022 at 06:08, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=451628
>
> --- Comment #9 from Maik Qualmann <metzpinguin@gmail.com> ---
> Please test the prerelease digiKam-7.7.0 version with the latest change
> from
> here:
>
> https://files.kde.org/digikam/
> https://files.kde.org/digikam/digiKam-7.7.0-20220318T190205-Win64.exe
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 11 Maik Qualmann 2022-03-20 06:22:38 UTC
I think the problem is solved. If the problem occurs again, please reopen the bug with a current DebugView log.

Maik
Comment 12 Steve Franks 2022-03-21 10:33:53 UTC
Created attachment 147648 [details]
attachment-4625-0.html

Thanks!

On Sun, 20 Mar 2022 at 06:22, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=451628
>
> Maik Qualmann <metzpinguin@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>    Version Fixed In|                            |7.7.0
>              Status|REPORTED                    |RESOLVED
>          Resolution|---                         |FIXED
>
> --- Comment #11 from Maik Qualmann <metzpinguin@gmail.com> ---
> I think the problem is solved. If the problem occurs again, please reopen
> the
> bug with a current DebugView log.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.