By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1729

Summary: [Regression] KOffice: Applications crash on logout
Product: TDE Reporter: Slávek Banko <slavek.banko>
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: albator78, bugwatch, darrella, kb9vqf, slavek.banko
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2014    
Attachments: KPlato crash on logout - backtrace
tdelibs: fix kxmlguiclient destructor to avoid crash

Description Slávek Banko 2013-11-23 13:03:40 CST
Created attachment 1662 [details]
KPlato crash on logout - backtrace

During testing the progress bar in the status dialog logout I noticed a few crashes.

1) Start KPlato - not open any file, not select template for new file
2) Log out from TDE
3) Occurs kplato crash

I have not tested whether this applies to other KOffice programs.
Comment 1 Slávek Banko 2013-11-27 14:29:27 CST
Verified - problem also applies to the other KOffice applications.
It seems to me that the same object KoDocument is 2× deleted.
Comment 2 Darrell 2014-01-29 17:00:53 CST
I confirm this bug still exists with my build set from last night.
Comment 3 Francois Andriot 2014-07-28 09:49:58 CDT
Created attachment 2106 [details]
tdelibs: fix kxmlguiclient destructor to avoid crash

Hello, I cannot reproduce the bug; however, I think you can avoid the crash by modifying the kxmlguiclient class destructor. See attached patch.
Comment 4 Slávek Banko 2014-07-29 11:51:08 CDT
(In reply to Francois Andriot from comment #3)
> Created attachment 2106 [details]
> tdelibs: fix kxmlguiclient destructor to avoid crash
> 
> Hello, I cannot reproduce the bug; however, I think you can avoid the crash
> by modifying the kxmlguiclient class destructor. See attached patch.

If I remember correctly, such a solution I tried, but without success. I tested now your current patch - again without success. The crash has shifted to the line 81 => is still on the same code.
Comment 5 Timothy Pearson 2014-10-05 11:07:13 CDT
Reproducible here; will be working on it.
Comment 6 Timothy Pearson 2014-10-05 16:05:56 CDT
For some reason the KoMainWindow was being deleted in all KoDocument destructors.  I guess the only reason this didn't crash on every single koffice exit (as opposed to at logout only) was due to fortunate destructor calling order when closed manually.

Fixed in GIT hash a0f523a.

Thanks for reporting!