Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1965579

Summary: GNOME weather keeps loading when GNOME location services are disabled
Product: [Fedora] Fedora Reporter: Jan Vlug <jan.public>
Component: gnome-weatherAssignee: Igor Raits <igor.raits>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: cosimo.cecchi, drusek, eliadevito, gnome-sig, igor.raits, mail, philip.wyett
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Vlug 2021-05-28 07:36:12 UTC
Description of problem:
When I start GNOME weather, the window appears with a spinner and the text "Loading...", but the weather never gets loaded.

Version-Release number of selected component (if applicable):
gnome-weather.noarch 40.0-1.fc34

How reproducible:
Always

Steps to Reproduce:
1. Start GNOME weather 

Actual results:
The weather is not loaded, the window states: "Loading..." and shows a spinner.

Expected results:
The weather information is loaded and displayed.
(when creating this bug report, I noticed that the root cause is that the location services were disabled. A hint or question to enable them would be useful. I now discovered this by looking into the system journal (see below).


Additional info:
From the journal logging:
May 28 09:21:38 rainbowdash gnome-shell[2161]: Can't update stage views actor ClutterActor is on because it needs an allocation.
May 28 09:21:39 rainbowdash org.gnome.Weath[3231]: JS ERROR: TypeError: location is null
                                                   getCountryName@resource:///org/gnome/Weather/BackgroundService/js/service/searchProvider.js:35:5
                                                   _runQuery@resource:///org/gnome/Weather/BackgroundService/js/service/searchProvider.js:84:61
                                                   GetInitialResultSetAsync@resource:///org/gnome/Weather/BackgroundService/js/service/searchProvider.js:67:18
                                                   _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:354:35
                                                   _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:387:34
                                                   main@resource:///org/gnome/Weather/BackgroundService/js/service/main.js:112:38
                                                   run@resource:///org/gnome/gjs/modules/script/package.js:206:19
                                                   @/usr/share/org.gnome.Weather/org.gnome.Weather.BackgroundService:6:17

May 28 09:21:43 rainbowdash org.gnome.Weath[69360]: JS LOG: Failed to connect to GeoClue2 service: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Geolocation disabled for UID 1000
May 28 09:21:44 rainbowdash org.gnome.Weath[69360]: JS ERROR: TypeError: info.location.get_timezone() is null
                                                    update@resource:///org/gnome/Weather/js/app/city.js:212:50
                                                    _onUpdate@resource:///org/gnome/Weather/js/app/city.js:336:24
                                                    set info/this._updateId<@resource:///org/gnome/Weather/js/app/city.js:312:22
                                                    main@resource:///org/gnome/Weather/js/app/main.js:268:32
                                                    run@resource:///org/gnome/gjs/modules/script/package.js:206:19
                                                    @/usr/share/org.gnome.Weather/org.gnome.Weather:6:17

After reading these messages, I checked GNOME Settings, and indeed the Location Services were disabled.
I enabled the Location Services, closed GNOME Weather, and restarted GNOME Weather again.
Now the weather for my location is loading.

Comment 1 Daniel Rusek 2021-06-15 11:48:23 UTC
Upstream issue: https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/165

Comment 2 Elia Devito 2021-07-15 12:54:15 UTC
Fixed upstream by: https://gitlab.gnome.org/GNOME/gnome-weather/-/merge_requests/82