LocateMe
LocateMe copied to clipboard
Locks up if location service is not available
I noticed that when I'm in a WiFi that does not support location service (eg., ICE train in Germany), LocateMe would print an error message and hangs. Pressing ^C seems to kill it and allow getting back to the prompt.
$ LocateMe -l
2017-04-10 09:31:35.865 LocateMe[1234:12345] Error: Error Domain=kCLErrorDomain Code=0 "(null)"
^C
$
Interesting. I just saw this a couple of days ago when I had turned off location services in System Preferences, but you're saying you get this because the network you're connected to doesn't support it? It didn't do anything else some seconds later?
OK, that steps up my development thought on that.
Thanks for the report.
-Rob
On Mon, Apr 10, 2017 at 1:36 AM, Gunnar Wagenknecht < [email protected]> wrote:
I noticed that when I'm in a WiFi that does not support location service (eg., ICE train in Germany), LocateMe would print an error message and hangs. Pressing ^C seems to kill it and allow getting back to the prompt.
$ LocateMe -l 2017-04-10 09:31:35.865 LocateMe[1234:12345] Error: Error Domain=kCLErrorDomain Code=0 "(null)" ^C $
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/netj/LocateMe/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEnUExJGu7jLXxqubqr1Nw7UT-3E_4Eks5rudwTgaJpZM4M4a6R .
I waited for a couple minutes before I hit ^C. I use LocateMe in my Bash profile to adapt some settings pending on where I am. I have location service always enable and I observe these hangs whenever I'm in a limited wifi (train or airplane).
For double checking I went to date/time preferences and tried to set timezone automatically using current location. I immediately got the response that location service is not available.
Interesting. OK, I'll see about trapping that error and exiting immediately. Some errors just mean "hang on a little while," but I should detect this one and abort right away.
-Rob
On Mon, Apr 10, 2017 at 11:26 AM, Gunnar Wagenknecht < [email protected]> wrote:
I waited for a couple minutes before I hit ^C. I use LocateMe in my Bash profile to adapt some settings pending on where I am. I have location service always enable and I observe these hangs whenever I'm in a limited wifi (train or airplane).
For double checking I went to date/time preferences and tried to set timezone automatically using current location. I immediately got the response that location service is not available.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/netj/LocateMe/issues/2#issuecomment-293019960, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEnUFhM0vNY2cwL-BzQtuL_YEClBrmlks5rumZUgaJpZM4M4a6R .