[akregator] [Bug 381929] Feeds list gets corrupted when akregator is restored on log in

Christos Gourdoupis bugzilla_noreply at kde.org
Sat Dec 16 21:49:26 GMT 2017


https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #14 from Christos Gourdoupis <xrigou at otenet.gr> ---
I have been trying to debug this and have now reached a point where I can
reproduce it every time under the debugger (kdevelop). This is what happens:
1. akregator starts with a healthy feeds.opml and creates a similar feeds.opml~
2. I do some stuff and then close the window and terminate the program from the
system tray icon.
3. In MainWidget::slotOnShutdown(), setFeedList is called with an empty list.
4. Upon setFeedList() exit a QSharedPointer<FeedList> oldList which holds the
feedlist is deleted.
5. In ~FeedList() destructor, setRootNode(0) is called.
6. In setRootNode(0), delete d->rootNode truncates feeds.opml to length of 1
byte.
7. The program exits NORMALLY. At this point feeds.opml~ contains a good
backup.
8. On next program start, feeds.opml is "saved" to feeds.opml~ effectively
destroying it. The program complains for an invalid feed list and saves an
equally useless feeds.opml-backup.*

Does that help at all? Is there anything I can do?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list