The error message, "Make sure you are connected to the internet and WiFi is turned on" takes at least 30 seconds to dismiss after clicking "OK.
Steps to reproduce this issue
Results
The dialog takes 30+ seconds to dismiss / remove itself from the screen.
Expected behavior
When clicking "OK", the dialog should instantly dismiss.
Environment
I am using Meteorologist v4.0.3 on a 2019 Intel based Macbook Pro running OSX Sonoma 14.2.1.
FWIW, just before clicking OK, I re-enable WiFi. I don't know if this contributes to the slow dialog dismissal.
Update: I can confirm that this only happens when you enable WiFi then try to click "OK". That's when the long (30 second+) dialog dismissal happens.
If you have Wi-Fi disabled then click "OK", the dialogs disappear promptly.
Thanks for the report Adam. I'll look into it.
I know the code sleeps while waiting for a connection to become active. Perhaps it's sleeping at the wrong time.
Ed
Just some quick thoughts. Can you check the ~/Library/Logs/Meteorologist.log file. There should be message like Network not reachable and Delay = x.x.
If no connection is immediately available, it sleeps for 1 second, then 2, then 4, then 8, then 16, then 32 seconds then every 60 seconds and displays the message each 60 seconds after that.
Here's my log file.
Lots of
<Error>: https://heat-meteo.sourceforge.net/VERSION2 not foundmessages.I see that repeating message. I'll look into that as well. If you could, please turn on the debug logs (Log messages to console).
Just turned "Log messages to console" on. I will follow up by Monday with a new log file.
Thanks for your help with this!
Here's my updated log file after turning on "Log messages to console".
I have been trying to recreate on my system but unable. I think I'm following your instructions in the orginal post.
Is your laptop plugged in when you put it to sleep, or on battery? Is your Internet always on or are you using something like an iPhone for access?
In Settings/Battery, Low Power Mode=?
Continuing with Battery/Options... What are those settings?
Ed
This is the important part:
This is what causes the 30+ second delay.
If I click "OK" then enable Wi-Fi, the dialogs close instantly.
I do not have a hardwired ethernet connection. I use Wi-Fi. I enable / disable it in the upper right of OSX using the Wi-Fi icon & toggle next to the Search/Spotlight icon.
My laptop stays plugged in, always. My internet is always on (standard modem + router at home, no tethering or anything like that).
Low power mode = only on battery. I've attached screenshots of my OSX Battery settings/options.
Thanks Ed!
Thank for the images. If you turn off WiFi before you sleep, you should probaby turn off Power Nap and Wake for network access.
Ed
I still can't reproduce but I think I know what's happening.
When you Enable WiFi, that is releasing Meteorologist to do it's thing. While it is pulling down current weather, the No WiFi dialog can't respond because the code is busy. As soon as the weather refreshes, it can process the button (and actually downloads the weather again).
Meanwhile, while your computer is sleeping with no WiFi, Power Nap is waking up periodically and looking for the VERSION2 file, but with no WiFi is reporting the file is not available.
I'm not saying this is correct, just an idea of what's happening.
First I need to reproduce, then I need to see if I can fix it. I'll get it fixed but don't hold your breath.
Ed
In the grand scheme of things, this is a very minor issue--so I thoroughly appreciate your time and effort you've put towards this.
For anyone who stumbles upon this and needs a workaround: Instead of enabling the Wi-Fi then clicking the "OK" button to dismiss, do that in reverse order. Dismiss the dialog, then turn on your Wi-Fi.
I've been using Meteorologist for the last 5-10 years and just want to say thank you for putting this out there for people to use. It's a great little piece of software. Kudos!
I just wanted to let you know that I released version 4.0.4 but it does not contain a fix for this yet. The fix is going to require a significant re-write of some of the code.
Ed
OK, no problem. I have started clicking the "OK" button to dismiss the dialog before turning on my WiFi for the interim.
Thanks again for this wonderful piece of software and all you do to support it.
I can't reproduce the problem described above, using the steps above, including re-enabling WiFi before clicking "OK". When I try it, the pop-up is dismissed immediately. I also don't get two dialogs.
However, if I add a step after step 3, of putting the computer to sleep after the message appears, then when waking it, I do see two dialogs. When I click on the second one, it does take some time (about 15 seconds) to dismiss.
I also experience something very similar when I take my MacBook between my home (Ethernet through a hub) and office (WiFi). When I get there, I plug it in, and it's already connected. But I see one or more pop-ups on the screen; I guess it wakes up during the commute. I don't have the option of clicking "OK" before enabling the WiFi, because I'm not disabling it in the first place. If it was only a matter of having to wait an extra 15 seconds, it wouldn't be a big deal. But most of the time, when I click "OK", it never dismisses. The cursor turns into a beachball, and I have to quit it with Activity Monitor then restart it.
I suppose I could work around it by remembering to disable WiFi before leaving the office, and disconnecting the Ethernet cable when I get home, before waking it, then clicking "OK", then plugging it in. But that's kind of a hassle. Maybe I'll try to write an Applescript to restart it when waking from sleep, or somehow automatically quit it whenever Internet is lost, and start it again when it's back.
I wrote about a similar problem last year, where I was getting the pop-up dialog after waking from sleep, even when the network wasn't disconnected. Since then, I have a different computer, and that doesn't seem to happen on this one. But some of the information may be relevant:
Meteorologist / Discussion / Help: Random warning alert "make sure you are connected" after sleep
Last edit: Elhem Enohpi 2024-04-04
I can confirm that, after disabling WiFi, I would manually go Apple Icon > Sleep.
I don't relocate as often but I've disabled my home Ethernet port, left my laptop on battery overnight and all is fine in the morning. I didn't actually put it to sleep, only closed the lid (again no power).
I'll try to turn off WiFi and also force Sleep.
Ed
Edited...
I would be amazed that the first message is displayed is exactly at the 60 second mark. When no network is found, the code sleeps for .5 seconds, then 1 second, then 2 seconds, then 4, then 8, then 16, then 32, for a total of 63.5 seconds before displaying the infamous "Make sure you are connected to the internet and WiFi is turned on." message. After that, it sleeps for 60 seconds and tries again, in a continuous loop. Second and subquent times the message is at 60 seconds. It also throws a message in the log "Delay=x.0" right before going to sleep each time.
I could delay the message to 15 minutes but I don't think this is the real issue.
Last edit: EdwardD20 2024-04-05
I have put a new beta version on https://sourceforge.net/projects/heat-meteo/files/Meteo/Beta/ that delays the NETWORK FAILURE message. Does this help?
Ed
Last edit: EdwardD20 2024-04-08
When I click on that link, I get a message saying "Permission Denied"...
strange https://sourceforge.net/projects/heat-meteo/files/Meteo/Beta/
I see. Apparently the folder I upload to is different than the download folder. I corrected the URL in the original post.
Last edit: EdwardD20 2024-04-08
Has anybody downloaded the beta? Did it resolve this problem since others can reproduce, readily?
Ed
I downloaded the beta last night. Thanks for the push.
I will report back if I see any error messages.
After several days and multiple error message dismissals, I can confirm that modal dismissal happens instantly for the beta version. 👍👏
I have tested this resuming from sleep, both clicking the "OK" button before and after enabling WiFi.