Summary: | KPhotoAlbum crashes when Annotations are not saved and then user right-clicks Show Info in Viewer | ||
---|---|---|---|
Product: | [Applications] kphotoalbum | Reporter: | Victor Lobo <victor.ip.lobo> |
Component: | Viewer | Assignee: | KPhotoAlbum Bugs <kpabugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | johannes |
Priority: | NOR | ||
Version: | 5.11.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/kphotoalbum/-/commit/7d035923cafb6418ae3d58f571c73a608e84fb30 | Version Fixed In: | |
Sentry Crash Report: |
Description
Victor Lobo
2023-09-04 17:25:14 UTC
Git commit 7d035923cafb6418ae3d58f571c73a608e84fb30 by Johannes Zarl-Zierl. Committed on 09/09/2023 at 01:44. Pushed by johanneszarl into branch 'master'. Fix crash when annotation dialog is closed without saving... ...and the user then opens the context menu in the viewer window. M +23 -2 AnnotationDialog/Dialog.cpp M +1 -1 AnnotationDialog/Dialog.h https://invent.kde.org/graphics/kphotoalbum/-/commit/7d035923cafb6418ae3d58f571c73a608e84fb30 Hi Victor! I believe the bug is fixed by the latest commit... Cheers, Johannes Hi Johannes, Yes, this fixes the crash. However, I want to point out that when I make changes in the Annotations window and click Cancel, I am no longer prompted to save my changes. I assume this was intentional with the latest commit, but not sure. Thank you! Victor Hi Victor, No, that was not intentional, but a result of late-night coding... Thanks for being thorough! Cheers, Johannes Ok, now I know how this slipped through: I tried by marking a person (that is already there) on an image using a positionable tag. Having a change in positionable tags does still trigger the prompt. Adding a tag does not. Reopening this bug since the same crash still occurs in the following scenario in git master. STEPS TO REPRODUCE 1. Open KPhotoAlbum 2. Go to Thumbnail View 3. Go to Annotations window for any image or video (CTRL + 1) 4. Add a positionable tag in the Annotation Window 5. Click DONE in Annotations window 6. Open any image or video in Viewer (press Enter) 7. Go to Info in the right-click context menu in Viewer. ("Discard Changes?" popup dialog is displayed) 8. Click Discard or Cancel in "Discard Changes?" popup dialog 9. Crash Git commit a195619fcc1f0de68f41a86154eb0425f3605ffb by Johannes Zarl-Zierl. Committed on 02/10/2023 at 22:56. Pushed by johanneszarl into branch 'master'. Fix crash when closing the annotation dialog with positionable tags Make API harder to misuse by unsetting m_areasChanged in tidyAreas() instead of doing this in the calling code. M +3 -4 AnnotationDialog/Dialog.cpp https://invent.kde.org/graphics/kphotoalbum/-/commit/a195619fcc1f0de68f41a86154eb0425f3605ffb Hi Victor, I think I fixed this with the a195619fcc1f0de68f41a86154eb0425f3605ffb commit and just forgot to close the bug. Can you verify that the bug is now fixed for you? Cheers, Johannes This bug is fixed. Thank you Johannes. Please close it. Thanks for the confirmation! |