[Bug 1188699] New: Location services not working unless geoclue service restarted
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 Bug ID: 1188699 Summary: Location services not working unless geoclue service restarted Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME Assignee: gnome-bugs@suse.de Reporter: badshah400@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- On my TW system version "20210724" (but this has been the case probably for a while now), location services do not work right away after booting. Maps cannot access current location, gnome-weather does not either, and the `whereami` demo (`/usr/libexec/geoclue-2.0/demos/where-am-i`) returns no result. I need to execute
sudo systemctl restart geoclue.service
after which all of these apps start reporting my current location. I thought it might be related to a race condition mentioned here: <https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/139> but patching geoclue2 with the patches mentioned there doesn't help either. Tested with the following versions of geoclue2: * From TW OSS, version 2.5.6 * From GNOME:Next, version 2.5.7 * From my home branch, version 2.5.7 + race condition fix patch but the issue persists. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c1 Zhongrui Cao <zhongrui.cao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS CC| |zhongrui.cao@suse.com --- Comment #1 from Zhongrui Cao <zhongrui.cao@suse.com> --- Upgrading geoclue to 2.5.7 solves the problem. This problem only occurs when the location service button in Privacy settings have never been toggled before. So I suspected this bug is related to location service privacy setting currently not working with geoclue2: https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/111. This patch fixes the privacy setting problem, and also this bug: https://gitlab.freedesktop.org/geoclue/geoclue/-/commit/14d5e71ab16d9f5675d3... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c2 --- Comment #2 from Atri Bhattacharya <badshah400@gmail.com> --- (In reply to Zhongrui Cao from comment #1)
Upgrading geoclue to 2.5.7 solves the problem.
Not for me, I have tried geoclue 2.5.7 from GNOME:Next as I reported in the description, but I still have to restart geoclue service to get any location features after rebooting.
This problem only occurs when the location service button in Privacy settings have never been toggled before. So I suspected this bug is related to location service privacy setting currently not working with geoclue2: https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/111.
This patch fixes the privacy setting problem, and also this bug: https://gitlab.freedesktop.org/geoclue/geoclue/-/commit/ 14d5e71ab16d9f5675d3c7d3f92a7766c8f1d06f
I tried turning locations services in Privacy settings on and off and rebooting, but this did not help either. This seems like a different bug. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c3 --- Comment #3 from Zhongrui Cao <zhongrui.cao@suse.com> --- Did you have Settings->Privacy->Location services turned on when testing? Because not turning this on and get no location service should be expected behavior in version 2.5.7. (but not in 2.5.6) What I did was 1. turn on location privacy setting and then reboot, then location feature works right after booting. 2. turn off location privacy setting then reboot, location feature does not work after boot, then turn on location setting then location feature starts working right away. I can replicate this bug with version 2.5.6 but not with 2.5.7. Does your where-am-i demo still returns nothing after boot with version 2.5.7? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c4 --- Comment #4 from Atri Bhattacharya <badshah400@gmail.com> --- (In reply to Zhongrui Cao from comment #3)
Did you have Settings->Privacy->Location services turned on when testing? Because not turning this on and get no location service should be expected behavior in version 2.5.7. (but not in 2.5.6)
Yes, it is turned on when testing.
What I did was 1. turn on location privacy setting and then reboot, then location feature works right after booting. 2. turn off location privacy setting then reboot, location feature does not work after boot, then turn on location setting then location feature starts working right away.
I can replicate this bug with version 2.5.6 but not with 2.5.7. Does your where-am-i demo still returns nothing after boot with version 2.5.7?
where-am-i does not return anything immediately after rebooting. Only works after restarting geoclue service manually. Tested with geoclue2 2.5.7 from GNOME:Next (rpms copied into a local dir). ~> G_MESSAGES_DEBUG=Geoclue2 /usr/libexec/geoclue-2.0/demos/where-am-i ~> zypper se -si geoclue Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository ---+-------------------------+---------+-------------+--------+----------- i+ | geoclue2 | package | 2.5.7-101.1 | x86_64 | local i+ | system-user-srvGeoClue | package | 2.5.7-101.1 | x86_64 | local i+ | typelib-1_0-Geoclue-2_0 | package | 2.5.7-101.1 | x86_64 | local -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c5 --- Comment #5 from Atri Bhattacharya <badshah400@gmail.com> --- Created attachment 851808 --> http://bugzilla.opensuse.org/attachment.cgi?id=851808&action=edit Screenshot showing weather and maps unable to get location -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c6 --- Comment #6 from Zhongrui Cao <zhongrui.cao@suse.com> --- Created attachment 851811 --> http://bugzilla.opensuse.org/attachment.cgi?id=851811&action=edit geoclue2.5.7 patched Could you try out this package and see if this fixes the problem? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c7 --- Comment #7 from Atri Bhattacharya <badshah400@gmail.com> --- (In reply to Zhongrui Cao from comment #6)
Created attachment 851811 [details] geoclue2.5.7 patched
Could you try out this package and see if this fixes the problem?
Thanks, but it didn't. The 'where-am-i' demo still returns nothing until I restart geoclue service. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 Emiliano Langella <emiliano.langella@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emiliano.langella@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188699 http://bugzilla.opensuse.org/show_bug.cgi?id=1188699#c10 Atri Bhattacharya <badshah400@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #10 from Atri Bhattacharya <badshah400@gmail.com> --- This seems to have been resolved in the meanwhile. Many thanks Zhongrui Cao. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com