Bug 432852 - Digikam crashes when attempting to modify geolocation data
Summary: Digikam crashes when attempting to modify geolocation data
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Marble (show other bugs)
Version: 7.2.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-12 13:10 UTC by arthur
Modified: 2022-01-13 11:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments
Crash log - edit geolocation (196.49 KB, text/plain)
2021-02-16 11:53 UTC, arthur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arthur 2021-02-12 13:10:43 UTC
SUMMARY


STEPS TO REPRODUCE
1. Select image
2. Click on "Item"
3. Click on "Edit Geolocation"
OR
2. Press cmd+shift+G

OBSERVED RESULT
Digikam crashes

EXPECTED RESULT
Edit geolocation menu opens

SOFTWARE/OS VERSIONS 
macOS: Catalina (10.15.7)

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-02-12 14:41:22 UTC
Please, download debug version of PKG available here :

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

Try to reproduce the problem and report the log backtrace of crash.

Thanks in advance

Gilles Caulier
Comment 2 arthur 2021-02-15 11:56:50 UTC
How do I do that? I'm sorry, I'm a bit out of my depth here.
Comment 3 caulier.gilles 2021-02-15 12:18:30 UTC
Just download the PKG with "debug" prefix located here :

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

Install it to replace non debug version.

Run digiKam and try to reproduce the crash. When it happen, a backtrace dialog will appear with a log text view. Copy and paste the contents here...

Gilles Caulier
Comment 4 arthur 2021-02-15 12:24:08 UTC
I'm sorry, I should've been more clear. I've already installed the debug version and reproduced the crash, but I can't find the backtrace dialog for the life of me. Should it appear after the crash or at the next startup or something? Because I've run it multiple times and searched for it in the menu items, but I didn't see anything like that at all.

Yet again, I'm sorry. I'm probably missing something obvious here.
Comment 5 caulier.gilles 2021-02-15 12:28:03 UTC
Well the dialog must appear just after the crash...

Typically this dialog come from directly macOS. It used to report problem with application to Apple if necessary.

Here :

https://osxdaily.com/2010/02/15/disable-the-crash-reporter-dialog-in-mac-os-x/

It explained how to turn on/off this dialog. On my macbook pro, it automatically turned on as i installed XCode IDE to develop...

Gilles Caulier
Comment 6 arthur 2021-02-16 11:53:57 UTC
Created attachment 135718 [details]
Crash log - edit geolocation
Comment 7 Maik Qualmann 2021-02-16 12:11:29 UTC
It crashes on a Q_ASSERT in Marble::GeoTagHandler::registerHandler(). Because the name of a GeoParser already exists in the QHash.

Maik
Comment 8 Maik Qualmann 2021-02-16 12:25:43 UTC
The cause is probably that Marble plugins are duplicated and thus loaded twice. Have you possibly not completely removed an older digiKam version?

Maik
Comment 9 arthur 2021-02-16 12:27:22 UTC
That's possible, how would I go about checking it? I installed the newest beta using the installer.
Comment 10 caulier.gilles 2021-02-16 14:41:39 UTC
Hi,

I recommend to wait the next PKG build done this evening and avaialble tomorow morning at usual place:

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

I accidentally not propagated some change in the computer in charge of PKG build which can introduce dysfunctions to the target macOS binary of digiKam. I fixed the problem so next build must be safe.

Note: The problem have been introduced one week ago.

Gilles Caulier
Comment 11 caulier.gilles 2021-02-17 11:48:58 UTC
Arthur,

The new pre-release is published online, and i'm sure that the PKG build is correct now.

If you have a recent PKG version of digiKam installed you can use the "Online Version Checker" feature introduced with 7.2.0.

> Go to Setup/Miscs/Behaviour/Updates
> Switch to check new version as "Weekly Pre-release"
> Press "Check Now..."

the tool must check last online version, download PKG, and propose to install it.

Best

Gilles Caulier
Comment 12 arthur 2021-02-17 12:05:30 UTC
Sadly, the problem still persist, even on the latest version. Do you want me to post the log file again?
Comment 13 caulier.gilles 2021-02-17 12:17:04 UTC
Hum. Do you have something installed in /opt/digikam on your computer ?

Gilles Caulier
Comment 14 Maik Qualmann 2021-02-17 12:18:43 UTC
Gilles, what's the old path to digiKam so that Arthur can see if he still has an older version of digiKam on his Mac. The marble plugins should definitely be present twice in the search path.

Maik
Comment 15 caulier.gilles 2021-02-17 12:47:23 UTC
Hi Maik,

The old path is /opt/digikam aka with digiKam version <= 7.2.0-beta1 (perhaps beta2 pre-version, i'm not sure)

The new path is /Applications/digiKam.org. /Applications is the stadard place to host macOS applications.

Gilles
Comment 16 arthur 2021-02-18 20:46:57 UTC
The /opt/digikam folder was gone, so that doesn't seem to be it. I did find a couple of folders related to marble deep inside of MacPorts folders, but those were last changed in 2014 and 2018 respectively, and as far as I can see they never had any bearing on my actual install of digikam itself. Are there perhaps any specific files related to marble I could search to see if there are files left over from a previous installation?
Comment 17 caulier.gilles 2021-02-18 21:34:12 UTC
yes it is, as the crash backtrace is relevant of Marble APi, this can be a side effect. I don't know why an extra and old Marble version somewhere in your computer can introduce a dysfunction in digiKam macOS bundle...

Gilles Caulier
Comment 18 arthur 2021-02-18 21:42:33 UTC
Hmm, any idea where those residual files might reside? The only files related to digikam I can find are in the Applications and Application support folders, and in the location of my database file. So I'm really lost as to where any other would be.

Yet again, I'm really sorry I'm quite out of my depth here. Thanks for your patience.
Comment 19 caulier.gilles 2021-12-14 05:05:44 UTC
Athur,

Stable digiKam 7.4.0 is published. Please check if problem is reproducible.

Thanks in advance

Gilles Caulier
Comment 20 caulier.gilles 2022-01-13 05:32:12 UTC
Hi Arthur and happy new year,

Can you reproduce the problem with digiKam 7.5.0 pre-release AppImage bundle
for Linux available here where marble component have been updated to last stable :

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

Best regards

Gilles Caulier
Comment 21 arthur 2022-01-13 10:53:41 UTC
(In reply to caulier.gilles from comment #20)
> Hi Arthur and happy new year,
> 
> Can you reproduce the problem with digiKam 7.5.0 pre-release AppImage bundle
> for Linux available here where marble component have been updated to last
> stable :
> 
> https://files.kde.org/digikam/
> 
> Best regards
> 
> Gilles Caulier

Hi Gilles,

No, it works perfectly now. Thanks for your hard work!
Comment 22 caulier.gilles 2022-01-13 11:27:30 UTC
not reproducible with 7.5.0. Closed