After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352493 - Podcasts produce errors if no internet connection is available
Podcasts produce errors if no internet connection is available
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Podcast
0.9.6
Other All
: Normal major
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 363527 367831 372741 421430 492154 525632 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-23 06:43 UTC by Andrew Conkling
Modified: 2008-08-13 00:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
better podcast feed error reporting (18.73 KB, patch)
2007-03-30 14:45 UTC, Jonathan Matthew
none Details | Review
updated patch (22.30 KB, patch)
2007-05-06 13:42 UTC, Jonathan Matthew
none Details | Review
updated, reworked a bit (31.88 KB, patch)
2007-06-30 14:03 UTC, Jonathan Matthew
none Details | Review
this time without the stupid 37s update change (31.68 KB, patch)
2007-06-30 14:05 UTC, Jonathan Matthew
committed Details | Review

Description Andrew Conkling 2006-08-23 06:43:03 UTC
Please describe the problem:
When an internet connection is not available, RB produces errors when trying to update podcasts, one per.  Over a period of hours, these can total up to over 100 error dialogs.  If one finds the right one, you can begin to close them, but otherwise, the quickest way to get rid of them is to exit and restart RB, which is only good until RB checks for updates again.

Steps to reproduce:
1. Disable the internet connection.
2. Let RB run with podcasts in the db.
3. Wait for the errors to pour in.


Actual results:
RB produces gobs of errors over a period of hours that are uncloseable.

Expected results:
I would expect that these errors would be suppressed and that RB would recognize that there is no connection available.

Does this happen every time?
Yes, on the hour (my update interval).

Other information:
For what it's worth, I was connected to my router during this time (valid IP address etc.), but my router was unable to connect to the internet.
Comment 1 Jonathan Matthew 2006-08-23 10:41:36 UTC
The only way we're going to determine that no network connection is available is through network manager (unless you have a better/different suggestion?).  There's already a bug open for that (bug 322266), and I've done a small amount of work towards it.

We can definitely improve the way we report these errors, though.  We shouldn't be using error dialogs when there was no user action that triggered the error.  Perhaps we could mark feeds that gave an error on the last update differently in the feed view, and show the error text in the properties dialog?

Is there some reason you marked this as a blocker?  It has a trivial workaround.
Comment 2 Andrew Conkling 2006-08-23 14:12:14 UTC
(In reply to comment #1)
> We can definitely improve the way we report these errors, though.  We shouldn't
> be using error dialogs when there was no user action that triggered the error. 
> Perhaps we could mark feeds that gave an error on the last update differently
> in the feed view, and show the error text in the properties dialog?

Yes, I suppose this is the real bug.  What about the same "blocked" icon over each podcast feed?

> Is there some reason you marked this as a blocker?  It has a trivial
> workaround.

It made more sense the way Bugzilla described it when reporting; the severity description here seems to imply otherwise.
Comment 3 Jonathan Matthew 2006-10-20 09:43:12 UTC
*** Bug 363527 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Matthew 2006-10-30 21:26:15 UTC
*** Bug 367831 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Matthew 2006-11-09 00:02:07 UTC
*** Bug 372741 has been marked as a duplicate of this bug. ***
Comment 6 Christof Damian 2006-11-17 16:50:54 UTC
I think this is very anoying too. I would add some kind of indicator to each podcast to show if the last download of the feed was successful. If it succeeds on the next try, this could be cleared. 

Error/Warning dialogs are the worst solution.
Comment 7 Sebastien Bacher 2006-11-25 14:09:19 UTC
Ubuntu bug about that: https://launchpad.net/bugs/73128

"I have subscribed to a dozen or so radio/audio podcasts, so I set RB to check and download new podcasts automatically, every hour.
The problem is that (probably partly due to my crappy ISP), RB regularly has some sort of problem with some podcast or another, and that everytime, it pops up an error window to tell me about it. Thing is, in practice I get these windows very often, sometimes if I leave the computer unattended or a few hours or half a day, there are a dozen windows I must close one by one, when I come back !

Basically, all these error windows do more harm than good :

1) they interrupt my work randomly
2) I can't do anything about the problem anyway, and can only click the "ok" button to make it go away
3) the problem is always temporary, and if I update the feeds manually, the problem has already cured itself.

This is the way I would expect RB to behave:

- When set for automatic downloads : never require user input, no pop up windows. If an error occurs, just try again 5 minutes later, most (all, so far) of the time it will suffice. The error should only be notified by an "error" icon next to the podcast (as is already the case), and cleared once the problem is gone.
Additionnaly, if RB deems it worthwhile to inform the user of an error, it can just use the notification area, using a bubble. This way the user can see the information, but is not too disturbed by it.

- Pop up messages should only be used when the user operates RB manually."
Comment 8 Damian Peterson 2007-01-29 18:50:18 UTC
I get the same issue when I suspend Ubuntu 6.10. When I power it back on again in the morning I have one dialog for each hour it's been suspended for. I would have thought that when the computer is suspended it wouldn't be checking for new podcasts?
Comment 9 Jonathan Matthew 2007-03-26 11:18:53 UTC
*** Bug 421430 has been marked as a duplicate of this bug. ***
Comment 10 Damian Peterson 2007-03-26 19:19:55 UTC
(In reply to comment #8)
> I get the same issue when I suspend Ubuntu 6.10. When I power it back on again
> in the morning I have one dialog for each hour it's been suspended for. I would
> have thought that when the computer is suspended it wouldn't be checking for
> new podcasts?
> 

Sorry, it's not for every hour it's been suspended, it's for how many podcasts I'm subscribed to. duh
Comment 11 Jonathan Matthew 2007-03-30 14:45:56 UTC
Created attachment 85565 [details] [review]
better podcast feed error reporting

- only use dialog boxes for user-requested podcast feed updates
- only complain about mime types for newly added feeds
- add an error indicator column to the podcast feed view
- if we couldn't load the feed, display the gnome-vfs error message
Comment 12 Vincent Untz 2007-04-19 08:48:47 UTC
Note that it makes the computer unusable if it happens for a few days when you're away: metacity is unbelievably slow when there are a lot of windows...
Comment 13 Vincent Untz 2007-04-19 08:51:05 UTC
Btw, I didn't look at the patch, but it probably doesn't fix this issue: there shouldn't be two error dialogs for the same feed. So if the user requests an update twice, he should get only one dialog, not two.
Comment 14 Bastien Nocera 2007-04-19 08:53:34 UTC
(In reply to comment #13)
> Btw, I didn't look at the patch, but it probably doesn't fix this issue: there
> shouldn't be two error dialogs for the same feed. So if the user requests an
> update twice, he should get only one dialog, not two.

Well, there shouldn't be an error dialogue in the first place. It should be an error icon next to the feed name.
Comment 15 James "Doc" Livingston 2007-04-21 02:09:14 UTC
(In reply to comment #13)
> Btw, I didn't look at the patch, but it probably doesn't fix this issue: there
> shouldn't be two error dialogs for the same feed. So if the user requests an
> update twice, he should get only one dialog, not two.

This would only happen if the user manually requested an update (by using the button/menu item) a few times in a row, automatic updates shouldn't cause dialogs with this patch applied.




On the patch, should this chunk be there? it looks otherwise fairly sane to me.

@@ -1445,7 +1454,7 @@
 	switch (index)
 	{
 	case UPDATE_EVERY_HOUR:
-		value = time (NULL) + 3600;
+		value = time (NULL) + 37; //3600;
 		break;
 	case UPDATE_EVERY_DAY:
 		value = time (NULL) + (3600 * 24);
Comment 16 Jonathan Matthew 2007-04-21 06:36:41 UTC
The 37s update interval was just there for testing.

One thing I'm not sure about here is whether we should show error dialogs when the user updates multiple feeds at once.  As the patch stands, we would, but I think perhaps we shouldn't.  This might appear to be a weird inconsistency, though.
Comment 17 Jonathan Matthew 2007-05-06 13:42:48 UTC
Created attachment 87651 [details] [review]
updated patch

now includes the patch from bug 370772
Comment 18 egil 2007-05-22 07:26:04 UTC
My suggestion for a fix is more generic: Rhytmbox also creates a number of other message boxes about starting and ending podcast downloads etc that are also quite bothersome, so why not just limit these popup boxes generically. So that at most there is only one active. And that they can (by default, really) could all be eliminated altogether. The status indicator may provide some way of displaying more info.
 
Comment 19 Jonathan Matthew 2007-06-30 14:03:33 UTC
Created attachment 90928 [details] [review]
updated, reworked a bit

- return GErrors from rb-podcast-parser so we can return specific information about what's going wrong
- move UI bits out of rb-podcast-parser (only slightly better; probably shouldn't be in rb-podcast-manager either)
Comment 20 Jonathan Matthew 2007-06-30 14:05:29 UTC
Created attachment 90929 [details] [review]
this time without the stupid 37s update change
Comment 21 gerv 2007-12-31 17:47:58 UTC
Are there plans to fix this? I'm still getting this problem in Ubuntu Gutsy on my laptop (which frequently doesn't have an internet connection) and it's very infuritating.

Let me know if there's anything I can do to help debug, although the bug report seems pretty clear to me.

Gerv
Comment 22 Jonathan Matthew 2008-04-01 22:11:51 UTC
*** Bug 525632 has been marked as a duplicate of this bug. ***
Comment 23 Jonathan Matthew 2008-04-26 11:37:07 UTC
I figured this has been sitting around for too long, so I updated it, tested it a bit, and committed it.
Comment 24 Jonathan Matthew 2008-08-13 00:50:11 UTC
*** Bug 492154 has been marked as a duplicate of this bug. ***