Bug 119023 - Kontact/kmail crash when using "open email in adress book"
Summary: Kontact/kmail crash when using "open email in adress book"
Status: RESOLVED DUPLICATE of bug 124677
Alias: None
Product: kontact
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-26 17:36 UTC by FACORAT Fabrice
Modified: 2006-07-31 13:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Script used by mandriva to launch kontact/kmail (122 bytes, text/plain)
2005-12-27 14:19 UTC, FACORAT Fabrice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FACORAT Fabrice 2005-12-26 17:36:13 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Mandriva RPMs
OS:                Linux

Suppose you want to add an email adress in the kontact adressbook from kmail. If you right click on the email adress and do : "open email in adressbook", kontact will just 
crash/quit. 
No core file is created and no crash handler is displayed. 

This issue affect Mandriva 2006.0 ( kde 3.4.2 ) and cooker ( kde 3.5 )

see http://qa.mandriva.com/show_bug.cgi?id=20332
Comment 1 Thiago Macieira 2005-12-26 22:16:14 UTC
No crash here (Kontact 1.2, KDE 3.5 r487700).

Can you paste the backtrace?
Comment 2 FACORAT Fabrice 2005-12-27 14:10:25 UTC
Thanks for your suggestion as it allows me to find the culprit !

Mandriva is using a shell script to launch kontact or its components. This allow to use the same menu entry and thus even if kontact is installed or not. if kontact is installed, kontact is opened with the right component/module selected, If not the standalone application is launched.

It's seems that when using this script, "open email in adressbook" will make kontact quit with the following backtrace :

kabc: StdAddressBook::self()
kontact (plugins): [virtual int KABUniqueAppHandler::newInstance()]
kontact (interfaces): Core::createPart(): libkaddressbookpart
kontact (interfaces): Creating new KPart
kabc: StdAddressBook::self()
kio (KTrader): query for KAddressBook/View : returning 3 offers
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8ac1878)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
libkdepim: KPimPrefs::usrReadConfig()
kaddressbook: AddresseeEditorWidget()
QLayout::addChildLayout: layout already has a parent
kio (KDirWatch): Added File /home/techmodis/admin/.kde/share/config/kabldaprc NotExisting [KDirWatch-2]
kio (KDirWatch): Added Dir /home/techmodis/admin/.kde/share/config for /home/techmodis/admin/.kde/share/config/kabldaprc
kio (KDirWatch):  Setup FAM (Req 2) for /home/techmodis/admin/.kde/share/config
kdeui (KDatePicker): KDatePicker::dateChangedSlot: date changed (2005/12/27).
kdeui (KDatePicker): KDatePicker::dateChangedSlot: date changed (2005/12/27).
kaddressbook: ContactEditorWidgetManager::reload()
kio (KTrader): query for KAddressBook/ContactEditorWidget : returning 1 offers
kabc: StdAddressBook::self()
kabc: StdAddressBook::self()
kabc: StdAddressBook::self()
kabc: StdAddressBook::self()
kabc: StdAddressBook::self()
kabc: StdAddressBook::self()
kaddressbook: AddresseeEditorWidget::load()
kio (KTrader): query for KAddressBook/Extension : returning 2 offers
kio (KTrader): query for KAddressBook/XXPort : returning 9 offers
kaddressbook: ViewManager::setActiveView: creating view - Default Table View
kontact: Option <-module> inconnue.
kontact: Utilisez --help pour obtenir la liste des options de ligne de commande disponibles.
kutils (KSettings::Dispatcher): [virtual KSettings::Dispatcher::~Dispatcher()]
kabc: StdAddressBook::saveAll()
kabc: AddressBook::requestSaveTicket()
kabc: ResourceFile::requestSaveTicket()
kabc: Lock::lock()
kabc: -- lock name: /home/techmodis/admin/.kde/share/apps/kabc/lock/_home_techmodis_admin_.kde_share_apps_kabc_std.vcf.lock
kabc: -- lock unique name: /home/techmodis/admin/.kde/share/apps/kabc/lock/_home_techmodis_admin_.kde_share_apps_kabc_std.vcf0rVr9Bfu
kabc: AddressBook::save()
kabc: ResourceFile::save()
kio (KDirWatch): KDirWatch-1 stopped scanning /home/techmodis/admin/.kde/share/apps/kabc/std.vcf (now 0 watchers)
kio (KDirWatch): KDirWatch-1 stopped scanning /home/techmodis/admin/.kde/share/config (now 0 watchers)
kio (KDirWatch): KDirWatch-1 stopped scanning /home/techmodis/admin/.kde/share/config/kabldaprc (now 1 watchers)
kio (KDirWatch): KDirWatch-1 restarted scanning /home/techmodis/admin/.kde/share/apps/kabc/std.vcf (now 1 watchers)
kresources: ManagerImpl::~ManagerImpl()
kio (KDirWatch): KDirWatch deleted (FAM closed)
Comment 3 FACORAT Fabrice 2005-12-27 14:13:29 UTC
This is what happen after "kontact: [void KMMainWidget::slotMsgPopup(KMMessage&, const KURL&, const QPoint&)]  URL is: mailto:bgmilne AT mandriva.org <bugzilla AT qa.mandrivalinux.com>" which appear when the contextual menu is displayed after my right-click.

Please note also the following lines in the backtrace :

kontact: Option <-module> inconnue. 
 kontact: Utilisez --help pour obtenir la liste des options de ligne de commande disponibles. 
Comment 4 FACORAT Fabrice 2005-12-27 14:19:46 UTC
Created attachment 14047 [details]
Script used by mandriva to launch kontact/kmail

Script used by mandriva to launch kontact/kmail, here is the menu entry :

?package(kdepim-kmail): needs="x11" kde_filename="KMail"
section="Internet/Mail" title="KMail" icon="kmail.png"
command="kontact-kmail.sh" kde_command="kontact-kmail.sh"
kde_opt="\\nEncoding=UTF-8\\nDocPath=kmail/index.html\\nGenericName=Mail
Client\\nTerminal=false\\nX-KDE-StartupNotify=true\\nX-DCOP-ServiceType=Unique\\nX-DCOP-ServiceName=kmail\\nServiceTypes=DCOP/ResourceBackend/IMAP,DCOP/Mailer"
Comment 5 Andreas Kling 2006-07-31 13:35:09 UTC

*** This bug has been marked as a duplicate of 124677 ***