weather app hangs if launched without a network connection

Bug #1206025 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Weather App
Fix Released
High
Martin Borho

Bug Description

Launching the weather app when the phone is not associated with a network, the app hangs displaying a spinner. Bringing up the menu from the bottom gives me no options to quit the app, or go into settings, or reset the network connection.

Killing the process from adb and restarting it after the network is up lets it launch, though it still presented the spinner for a long time waiting for the network with no info about what was happening. So the behavior with slow networks doesn't let the user know what to expect.

Related branches

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

I'm not even convinced this is just an issue with slow networks. When it works, it seems to take about 15 seconds now, it used to only take about 2 seconds, and I'm in the same location with the same network...

Sam Bull (dreamsorcerer)
affects: touch-preview-images → ubuntu-weather-app
Changed in ubuntu-weather-app:
status: New → Confirmed
assignee: nobody → Martin Borho (martin-borho)
Revision history for this message
Martin Borho (martin-borho) wrote :

The issue with missing network is unrelated to the long loading times. That depends on performance issues on the data provider api.

Changed in ubuntu-weather-app:
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Martin Borho (martin-borho) wrote :

The fix committed handles the situation, when the app is started without network connection, quite well. Losing the connection when the app is open, and after a request was already made, can still lead to the desribed behaviour. But trying then a second time without connection should open the notification, though.

Unfortunately XMLHttpRequest.onTimeout isn't supported by QtQuick, will further investigate a possible solution.

Thanks for the report!

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-weather-app at revision 90, scheduled for release in ubuntu-weather-app, milestone alpha-1

Changed in ubuntu-weather-app:
status: In Progress → Fix Committed
David Planella (dpm)
Changed in ubuntu-weather-app:
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.