Date not updating, sunrise and sunset times not displaying, other info not loading

Bug #1448783 reported by Kavoura
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Today Scope
Fix Released
Critical
Kyle Nitzsche

Bug Description

Even though the Today scope was recently updated, the following bugs still exist:
The date/day does not change automatically, the scope has to be refreshed for these to update to current date/day.
The sunrise and sunset times are not displayed at all now.
Sometimes after refreshing, everything below the sunset time line is completely blank and it can take several attempts to get the info that normally appears there to appear, e.g. weather info, news, recent calls, etc.
Also, today, while trying to refresh the Today Scope, the phone rebooted itself.

Revision history for this message
Chris Wayne (cwayne) wrote :

Could you please attach the contents of /home/phablet/.cache/upstart/scope-registry.log? That may present a clue as to some of the issues that you're seeing.

Thanks!

Changed in today-scope:
status: New → Triaged
Revision history for this message
Kavoura (kavoura) wrote : Re: [Bug 1448783] Date not updating, sunrise and sunset times notdisplaying, other info not loading

Dear Chris,

Here is the logfile.

David

On Tuesday, 28 April 2015 17:41:55 BST, Chris Wayne wrote:
> Could you please attach the contents of /home/phablet/.cache/upstart
> /scope-registry.log? That may present a clue as to some of the issues
> that you're seeing.
>
> Thanks!
>
> ** Changed in: today-scope
> Status: New => Triaged
>

--
Sent using Dekko from my Ubuntu device

Chris Wayne (cwayne)
Changed in today-scope:
importance: Undecided → Critical
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Hi Kavoura,

Can you please check the Today scope settings and ensure "Enable location data" is turned on?

If this is turned off, sunrise and sunset times display as "No information".

Revision history for this message
Kavoura (kavoura) wrote :

With "Enable location data" turned on, it does not always give sunrise and sunset times, unless I disable it first, and then re-enable it, then the times appear again.
It would be better if the data could be downloaded for a set location of my choosing, in advance, so that whether location data is enabled or not, and whether the phone is online or not, the data will still be displayed.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Hi Kavoura,

Thanks for taking the time to check that! I cannot reproduce your comment #4. When I have location data disabled, and then enable it, I refresh the scope and now sunrise and sunset times seem to always show for me. Please make more comments here if you continue to not see sunrise & sunset times after enabling location data and refreshing the scope.

Interesting idea of saving the sunrise/sunset times. The main point of this information is to show the user the sunset and sunrise times today, in their current location, whatever it happens to be. While we could theoretically get all such times for, say, the next 365 days for the current location, we would then run the risk of displaying the wrong times if the user has moved. So yes, we could then check if the user has moved, and if so, get that information and save it too, but now we we need to get and save a year's worth of data every time the user moves. That's starting to get complicated :). So on balance, I think that if the user does not want to use location awareness, they don't get sunset/sunrise times.

Revision history for this message
Chris Wayne (cwayne) wrote :

After some investigation over the weekend, I *think* this is being caused by the twitter scope crashing in certain situations (for me it was with a slow network). I've fixed the twitter scope to simply fail gracefully rather than crash and potentially take stuff down with it, hopefully that will solve the issue. Have also set ResultTtlType as mentioned in another bug, this should cause the scope to refresh automatically, thereby making sure the date is correct

Changed in today-scope:
status: Triaged → In Progress
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

I've also identified a possible issue in the today scope that I will push a fix for.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Bzr revision 6 implements the fix mentioned in comment 7.

It also implements a change that should cause results to auto-refresh on the order of minutes (not hours) so you should only see yesterday's date if you check soonn after midnight (the exact amount of time before the refresh is not determinant).

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Bzr revision 6 implements the fix mentioned in comment 7.

It also implements a change that should cause results to auto-refresh on the order of minutes (not hours) so you should only see yesterday's date if you check soon after midnight (the exact amount of time before the refresh is not determinant).

Changed in today-scope:
assignee: nobody → Kyle Nitzsche (knitzsche)
status: In Progress → Fix Committed
Revision history for this message
Kavoura (kavoura) wrote :

When will there be an update that can be downloaded and installed? Regardless of location data on or off, I still mostly get no sunrise/sunset times, even after rebooting, although about 1% of the time it does work.

Revision history for this message
Chris Wayne (cwayne) wrote :

This will be part of the next OTA update, which is scheduled I believe for some time next week

Revision history for this message
march (marc.h) wrote :

I've got almost the same problem. In my case no informations are displayed until rebooting the device.

Normally it should show the informations you can see on my attached screenshots (including enabled location data).

Revision history for this message
march (marc.h) wrote :

Second screenshot - I couldn't attach both at once.

Chris Wayne (cwayne)
Changed in today-scope:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.