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

2018-02-25 Thread Laurent Montel
https://bugs.kde.org/show_bug.cgi?id=381929

Laurent Montel  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Version Fixed In||5.7.3
  Latest Commit||https://commits.kde.org/akr
   ||egator/6678efb711e2cc6ee852
   ||e7331ff5185ddeba872d
 Status|CONFIRMED   |RESOLVED

--- Comment #32 from Laurent Montel  ---
Git commit 6678efb711e2cc6ee852e7331ff5185ddeba872d by Laurent Montel.
Committed on 26/02/2018 at 05:47.
Pushed by mlaurent into branch 'Applications/17.12'.

Apply patch from mgannon

Prevent Akregator from overwriting feeds.opml with an emtpy feed list
FIXED-IN: 5.7.3

Quitting akregator causes ~/.local/share/akregator/data/feeds.opml to be
overwritten using an empty feed
list with the result that upon relaunching an error message appears and only
the standard built in feeds are available.

In troubleshooting the issue, I noticed that slotSaveFeedList() is called five
times between quitting the
program and the program is finally shutdown. It is only the last time that the
function is called with
an empty list. This implies that there might be an error in the slot logic,
since
the function should only need to be called once. The attached patch seemed the
easiest way to deal with the issue.

Test Plan

i. Start a clean installation of akregator.
ii. Import a list of feeds from an opml file.
iii. Logout from the kde desktop
iv. Login into the kde desktop.

Without the patch, an error message appears saying it is unable to open the
file.

Differential Revision: https://phabricator.kde.org/D10466

M  +4-0src/akregator_part.cpp

https://commits.kde.org/akregator/6678efb711e2cc6ee852e7331ff5185ddeba872d

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #31 from andreas.sturmlech...@gmail.com ---
Mark, your action is required for the phabricator revision to proceed, did you
receive a notification?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-19 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #30 from Andrius Štikonas  ---
We have been testing attached patch on Gentoo. So far feeds did not get
corrupted when this patch was applied. Without it we saw some reports fairly
quickly.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-19 Thread avlas
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #29 from avlas  ---
This happens to me with Akregator embedded in Kontact. It doesn't happen 100%
of the times, but it does quite frequently.

Cannot tell for sure, but I have the feeling that this happens more frequently
when I set Kontact to autostart at login (perhaps because the system under
larger load ? or perhaps its just my false impression).

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-19 Thread avlas
https://bugs.kde.org/show_bug.cgi?id=381929

avlas  changed:

   What|Removed |Added

 CC||jsar...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-12 Thread Frederik Schwarzer
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #28 from Frederik Schwarzer  ---
@Mark: Nah, it's more likely that my comment was stupid. :D
I did not look at the API so a shared pointer will likely be the way to go. But
as Andreas said, going through proper code review will be better anyway.

@Laurent: for me it is just plain Akregator being started and stopped by KDE
session management. The problem only hit me once so far, though.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-12 Thread Piotr Keplicz
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #27 from Piotr Keplicz  ---
It happens in my setup:
* up-to-date Neon User edition,
* kontact is started using the session on login,
* kontact sometimes crashes on logout (I'm unable to get the trace since
DrKonqi quits when the session ends a couple of seconds after the crash),
* on next login, kontact starts and akregator's feeds list is empty.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-12 Thread Laurent Montel
https://bugs.kde.org/show_bug.cgi?id=381929

Laurent Montel  changed:

   What|Removed |Added

 CC||mon...@kde.org

--- Comment #26 from Laurent Montel  ---
I try to reproduce this problem but I can't.
Do you launch akregator in console ? 
Do you launch kontact ?

I can't reproduce fro the moment after 15 try I didn't have this bug...

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #25 from andreas.sturmlech...@gmail.com ---
Thanks Mark, please submit your patch on https://phabricator.kde.org/ to get a
proper review.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-11 Thread Mark Gannon
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #24 from Mark Gannon  ---
Sorry.  Its been a long time since I did any c++.  I tried changing to:

+QScopedPointer f_list = m_mainWidget->allFeedsList();
+if (f_list.isNull()) { 
+   return; 
+}  
+ 

And got the following error:
/var/tmp/portage/kde-apps/akregator-17.12.1/work/akregator-17.12.1/src/akregator_part.cpp:
In member function ‘void Akregator::Part::slotSaveFeedList()’:
/var/tmp/portage/kde-apps/akregator-17.12.1/work/akregator-17.12.1/src/akregator_part.cpp:529:65:
error: conversion from ‘QSharedPointer’ to non-scalar type
‘QScopedPointer’ requested
 QScopedPointer f_list = m_mainWidget->allFeedsList();
   ~~^~

Perhaps I'm using it wrong?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=381929

nia1048...@gmail.com changed:

   What|Removed |Added

 CC|nia1048...@gmail.com|

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-10 Thread Frederik Schwarzer
https://bugs.kde.org/show_bug.cgi?id=381929

Frederik Schwarzer  changed:

   What|Removed |Added

 CC||schwar...@kde.org

--- Comment #23 from Frederik Schwarzer  ---
Thanks for the proposed patch. I was hit by that problem today and am still
panicking a bit while restoring my feeds. :D

I am not that familiar with the Qt pointers but might a QScopedPointer be
enough here?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-10 Thread Mark Gannon
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #22 from Mark Gannon  ---
Created attachment 110511
  --> https://bugs.kde.org/attachment.cgi?id=110511=edit
Exit slotSaveFeedList() if feed is empty without writing anyfiles

The last time slotSaveFeedList() was being called with an empty feed list.  The
attached patch checks to see if the feed is null, and if so, returns without
writing any files.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-05 Thread Mark Gannon
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #21 from Mark Gannon  ---
When I shutdown akregator (from gentoo's 17.12.1 package) I experience this
problem and get the following output at the terminal:

[1:1:0205/180714.662998:ERROR:broker_posix.cc(41)] Invalid node channel message
[1:1:0205/180714.674483:ERROR:broker_posix.cc(41)] Invalid node channel message
[1:1:0205/180714.686681:ERROR:broker_posix.cc(41)] Invalid node channel message
[1:1:0205/180714.697479:ERROR:broker_posix.cc(41)] Invalid node channel message
kf5.kxmlgui: 0x563be92f3b10 deleted without having been removed from the
factory first. This will leak standalone popupmenus and could lead to crashes.
[1:1:0205/180714.727815:ERROR:broker_posix.cc(41)] Invalid node channel message
[1:1:0205/180714.727927:ERROR:broker_posix.cc(41)] Invalid node channel message
[1:1:0205/180714.728664:ERROR:broker_posix.cc(41)] Invalid node channel message
[1:1:0205/180714.728952:ERROR:broker_posix.cc(41)] Invalid node channel message

Perhaps its a different issue, but it does happen when I exit akregator (and
when I start the feed has to be reimported).

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-04 Thread Mark Gannon
https://bugs.kde.org/show_bug.cgi?id=381929

Mark Gannon  changed:

   What|Removed |Added

 CC||m...@truenorth.nu

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-02-03 Thread Kristoffer Gahlin
https://bugs.kde.org/show_bug.cgi?id=381929

Kristoffer Gahlin  changed:

   What|Removed |Added

 CC||stoffepoj...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-30 Thread bitlord
https://bugs.kde.org/show_bug.cgi?id=381929

bitlord  changed:

   What|Removed |Added

 CC||bitlord0...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-29 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #19 from Andrius Štikonas  ---
(In reply to Christoph Feck from comment #18)
> Did anyone else see feedlist corruption with the 17.12.x release (Akregator
> version 5.7.x)?

Yes, I have it too on 17.12.1 with Qt 5.9.3.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-29 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #18 from Christoph Feck  ---
Did anyone else see feedlist corruption with the 17.12.x release (Akregator
version 5.7.x)?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-24 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=381929

andreas.sturmlech...@gmail.com changed:

   What|Removed |Added

 CC||andreas.sturmlechner@gmail.
   ||com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-19 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=381929

Andrius Štikonas  changed:

   What|Removed |Added

 CC||andr...@stikonas.eu

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-16 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=381929

nia1048...@gmail.com changed:

   What|Removed |Added

 CC||nia1048...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-12 Thread Christos Gourdoupis
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #17 from Christos Gourdoupis  ---
Unfortunately, with the updated 17.12.0 sources I cannot reproduce it in the
debugger, no matter what.
On the bright side, the corruption has not occured once since the update.
We'll see.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-12 Thread Steve
https://bugs.kde.org/show_bug.cgi?id=381929

Steve  changed:

   What|Removed |Added

 CC||sweseme...@hotmail.com

--- Comment #16 from Steve  ---
Just wanted to add that this also happens on Fedora 26 and 27 (with all updates
applied).

The procedure in Comment 14 also works for me, ie it reproducible destroys the
feeds every time. 

Otherwise, the feed corruption is more hit and miss, ie it doesn't happen every
time I start Akregator but often enough to be annoying.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-01-01 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #15 from Christoph Feck  ---
Thanks Christos for the analysis. Do you think you are able to suggest a patch
to fix this issue?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-12-16 Thread Christos Gourdoupis
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #14 from Christos Gourdoupis  ---
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 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 watching all bug changes.

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

2017-11-14 Thread Frédéric COIFFIER
https://bugs.kde.org/show_bug.cgi?id=381929

Frédéric COIFFIER  changed:

   What|Removed |Added

 CC||frederic.coiff...@free.fr

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-10-25 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=381929

Christoph Feck  changed:

   What|Removed |Added

 CC||pauli.pro...@gmail.com

--- Comment #13 from Christoph Feck  ---
*** Bug 384223 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-10-21 Thread Christophe Giboudeaux
https://bugs.kde.org/show_bug.cgi?id=381929

Christophe Giboudeaux  changed:

   What|Removed |Added

 CC||li...@osit.cc

--- Comment #12 from Christophe Giboudeaux  ---
*** Bug 386000 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-10-21 Thread Evstifeev Roman
https://bugs.kde.org/show_bug.cgi?id=381929

Evstifeev Roman  changed:

   What|Removed |Added

 CC||someuniquen...@gmail.com

--- Comment #11 from Evstifeev Roman  ---
I can confirm this with 
Akregator 5.6.1 on openSUSE Tumbleweed.
KDE Frameworks 5.38.0
Qt 5.9.1 (built against 5.9.1)
The xcb windowing system

WORKAROUND to restore feeds:
Despite window said that the backup was saved - it was empty file.
I managed to resore my feeds from
file:///home/u1/.local/share/akregator/Archive/feedlistbackup.mk4 - that file
holds history. I opened it with kate and noticed that it is a binary file, but
parts of it has exact same xml structure as my lost feeds.opml. So i found part
that looked like my most recent feeds list (...) and copied
it into file:///home/u1/.local/share/akregator/data/feeds.opml

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-10-15 Thread Cruz Enrique
https://bugs.kde.org/show_bug.cgi?id=381929

Cruz Enrique  changed:

   What|Removed |Added

 CC||cruzki...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-09-22 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=381929

Jonathan Marten  changed:

   What|Removed |Added

 CC||j...@keelhaul.me.uk

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-09-03 Thread Arthur Țițeică
https://bugs.kde.org/show_bug.cgi?id=381929

Arthur Țițeică  changed:

   What|Removed |Added

 CC||arthur+...@cloud.titeica.ro

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-09-02 Thread Michael Palimaka
https://bugs.kde.org/show_bug.cgi?id=381929

Michael Palimaka  changed:

   What|Removed |Added

 CC||kensing...@gentoo.org

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-09-01 Thread Jaak Ristioja
https://bugs.kde.org/show_bug.cgi?id=381929

Jaak Ristioja  changed:

   What|Removed |Added

 CC||j...@ristioja.ee

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-08-30 Thread Edward
https://bugs.kde.org/show_bug.cgi?id=381929

Edward  changed:

   What|Removed |Added

 CC||edwardb_...@shaw.ca

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-08-10 Thread Nicolas Frattaroli
https://bugs.kde.org/show_bug.cgi?id=381929

Nicolas Frattaroli  changed:

   What|Removed |Added

 CC||kdeb...@fratti.ch

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-28 Thread Piotr Keplicz
https://bugs.kde.org/show_bug.cgi?id=381929

Piotr Keplicz  changed:

   What|Removed |Added

 CC||kepl...@cmc.pl

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-17 Thread Bernd Steinhauser
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #10 from Bernd Steinhauser  ---
(In reply to Christophe Giboudeaux from comment #9)
> did it start refreshing a feed when you closed it ?

Sorry, did not pay attention to that, so can't really tell.

Afterwards, I did try to enforce that by hitting the fetch all feeds button and
then closing Akregator, but it didn't trigger this.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-16 Thread Christophe Giboudeaux
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #9 from Christophe Giboudeaux  ---
did it start refreshing a feed when you closed it ?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-16 Thread Bernd Steinhauser
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #8 from Bernd Steinhauser  ---
Just tried again and it's definitely not only on log in.
Took me maybe 10 restarts of Akregator until I got the message that the feed
list is corrupted.
In that case it also told me that Akregator didn't close properly, although
there was no indication of a crash (no coredump, no bug message etc.).

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-16 Thread Christophe Giboudeaux
https://bugs.kde.org/show_bug.cgi?id=381929

Christophe Giboudeaux  changed:

   What|Removed |Added

Summary|Akregator looses feed list  |Feeds list gets corrupted
   ||when akregator is restored
   ||on log in

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-16 Thread Christophe Giboudeaux
https://bugs.kde.org/show_bug.cgi?id=381929

--- Comment #7 from Christophe Giboudeaux  ---
(In reply to Bernd Steinhauser from comment #2)
> Possibly a duplicate of bug 381822.
> 
unrelated to this report. Akregator doesn't crash.

-- 
You are receiving this mail because:
You are watching all bug changes.