Bug 395067 - KAddressbook crashes when editing distribution group with missing contact
Summary: KAddressbook crashes when editing distribution group with missing contact
Status: RESOLVED WORKSFORME
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: 5.7.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-05 21:30 UTC by andrew brewster
Modified: 2022-12-26 05:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrew brewster 2018-06-05 21:30:25 UTC
When you try to edit a distribution group that contains a reference to a contact that is no longer available, KAddressbook crashes. Example trace starting KAddressbook from the command line below after removing an number of old contacts from a folder, then trying to edit two groups stored in the same folder that used to contain the contacts

kaddressbook
QXcbConnection: XCB error: 3 (BadWindow), sequence: 2101, resource id: 37749048, major code: 40 (TranslateCoords), minor code: 0
org.kde.pim.akonadicontact: Contact for Akonadi item 20 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 19 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 22 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 4396 does not exist anymore!
terminate called after throwing an instance of 'Akonadi::PayloadException'
  what():  Akonadi::PayloadException: Wrong payload type (requested: sp(0)<KContacts::Addressee>; present: sp(0)<KContacts::ContactGroup>
Aborted (core dumped)

kaddressbook
org.kde.pim.akonadicontact: Contact for Akonadi item 20 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 19 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 22 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 4396 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 20 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 4396 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 4313 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 19 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 22 does not exist anymore!
org.kde.pim.akonadicontact: Contact for Akonadi item 4313 does not exist anymore!
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1959, resource id: 37749063, major code: 40 (TranslateCoords), minor code: 0
org.kde.pim.akonadicontact: Contact for Akonadi item 4313 does not exist anymore!
terminate called after throwing an instance of 'Akonadi::PayloadException'
  what():  Akonadi::PayloadException: Wrong payload type (requested: sp(0)<KContacts::Addressee>; present: sp(2)<KMime::Message*>
Aborted (core dumped)

This may be new behaviour in the 5.7 branch; previously the group was shown with an error symbol where the missing contact used to be, and it could be removed from the group without a problem.

rpm -qi kaddressbook
Name        : kaddressbook
Epoch       : 2
Version     : 17.12.2
Release     : 1.mga6
Architecture: x86_64
Install Date: Wed 16 May 2018 20:56:40 BST
Group       : Graphical desktop/KDE
Size        : 881272
License     : GPLv2
Signature   : RSA/SHA1, Thu 22 Feb 2018 14:30:41 GMT, Key ID b742fa8b80420f66
Source RPM  : kaddressbook-17.12.2-1.mga6.src.rpm
Build Date  : Thu 22 Feb 2018 14:14:06 GMT
Build Host  : localhost
Relocations : (not relocatable)
Packager    : neoclust <neoclust>
Vendor      : Mageia.Org
URL         : http://utils.kde.org/projects/kdepim
Summary     : Address Book application to manage your contacts
Description :
KAddressBook stores all the personal details of your family, friends and other
contacts.

Features:
    - Imports and exports to nearly every address book standard
    - Reads .vcf format files, and can import and export vCards and csv format
      files
    - Can use multiple LDAPservers
    - Configurable filters and powerful search capabilities
    - Integrates with other Kontact components, e.g. exporting Birthday
      reminders to KOrganizer
    - Capable of groupware integration
    - Powered by Akonadi
Comment 1 Justin Zobel 2022-11-26 00:13:39 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-12-11 05:07:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-26 05:21:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!