Bug 505632

Summary: digikam crashes when trying to start a DLNA media server on mac
Product: [Applications] digikam Reporter: the_lilo
Component: Plugin-Generic-MediaServerAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 8.7.0
Sentry Crash Report:

Description the_lilo 2025-06-15 16:18:11 UTC
SUMMARY
Digikam crashes after trying to run a DLNA Media Server

STEPS TO REPRODUCE
1. Select Tools / Share with DLNA 
2.  Select an album
3.  Click "Start" (in the dialog "Share Files with DLNA Media server")

OBSERVED RESULT

- MacOS opens its dialog where you have to allow incoming connections for a program when trying to run a server for the first time
- Dialog dissapears before one can click on anything
- Digikam crashes 

EXPECTED RESULT
- I can click on the Macos dialog to allow digikam to run a server 
- Digikam starts a DLNA media server

as an alternative (if lacking time/resources to deal with the mac security system):
- Digikam displays "this tool is unfortunately not available on mac os. Try running digikam under linux ;-)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 13.7.6 (not the latest version) 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: ? comes with digikam? no kinfo installed on macos

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2025-06-15 19:47:48 UTC
Git commit e30a59d77ce8063658d8dfc924aaf69494dfe288 by Maik Qualmann.
Committed on 15/06/2025 at 19:47.
Pushed by mqualmann into branch 'master'.

fix endless loop in DLNAMediaServer::addAlbumsOnServer

M  +1    -1    core/dplugins/generic/tools/mediaserver/server/dlnaserver.cpp

https://invent.kde.org/graphics/digikam/-/commit/e30a59d77ce8063658d8dfc924aaf69494dfe288
Comment 2 caulier.gilles 2025-06-17 04:22:41 UTC
Hi,

The digiKam 8.7.0 pre-release PKG installer including fixes from Maik is online for testing here :

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

Best regards

Gilles Caulier
Comment 3 caulier.gilles 2025-06-17 04:26:41 UTC
I tried with the 8.7.0 pre-release and i cannot reproduce the dysfunction on my Macbook pro.

Gilles Caulier