Wireless disconnection with latest 1.40 RC
Hi,
I'm having some issues with the new version "1.40 RC" and the wireless connection. Every 5 minutes, I'm losing connection to my wireless Access point and it reconnect by itself, pretty annoying!
Here's the logs:
19:10:11.033 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi interface is active, but is not participating in a network yet (or network SSID is bad) 19:10:11.049 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:10:18.099 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:10:18.102 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 19:15:47.466 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi interface is active, but is not participating in a network yet (or network SSID is bad) 19:15:47.467 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:15:54.954 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:15:54.964 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info
I have participated in the dev. release for the bug regarding the wireless access point (bug #276) and I never had this issue before. Perhaps something changed between the latest dev release and this one?
Ask me if you need anything else.
Pat
I've added some more logs. As you can see in the timestamp, I've updated CP 1.40RC around 18h15 and I never had this issue before.
18:14:19.755 -[CPController guessMeetsConfidenceRequirement:] checking Wake Up (BB2D2904-DC98-42D9-859B-B7CDBCF80B8B) with confidence 1 18:14:19.755 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 18:14:21.429 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 18:14:21.604 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 18:14:21.615 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 18:14:23.508 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 18:14:23.540 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 18:14:23.570 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 18:14:23.603 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 18:14:23.638 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 18:14:28.476 -[CPController setScreenLockInActive:] screen lock becoming inactive 18:14:48.513 -[CPController doUpdateForReal] guesses { "9A33B796-01AC-43C8-B04F-F245B12588B6" = 1; } 18:14:48.513 -[CPController guessMeetsConfidenceRequirement:] checking Home (9A33B796-01AC-43C8-B04F-F245B12588B6) with confidence 1 19:07:35.934 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi interface is active, but is not participating in a network yet (or network SSID is bad) 19:07:35.936 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:07:39.709 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:07:39.720 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 19:10:11.033 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi interface is active, but is not participating in a network yet (or network SSID is bad) 19:10:11.049 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:10:18.099 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:10:18.102 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 19:15:47.466 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi interface is active, but is not participating in a network yet (or network SSID is bad) 19:15:47.467 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:15:54.954 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is inactive, doing full scan 19:15:54.964 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info
Pat, I have sent you a custom build. Please, let me know if you have received it.
There were, indeed, changes in the first RC. And there were some more fixes between that RC and now, thus I would like to check first if one of those now-fixed issues could cause that annoying behavior on your system.
Dustin planned to issue RC2 around these days, with those extra fixes included in it. But with your report, I think that it may be wise to first investigate it a little bit more using custom builds, like we did before. And then, with more confidence, proceed with RC2. We will consider it depending on your reports.
Good day Vladimir,
I've successfully received the new custom build, I'll be testing it today and I will report back here any changes.
Thank you.
Same thing happened to me today, here's the log:
19:27:01.013 -[CPController guessMeetsConfidenceRequirement:] checking Wake Up (BB2D2904-DC98-42D9-859B-B7CDBCF80B8B) with confidence 1 19:27:01.025 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 19:27:01.041 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 19:27:01.449 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi is busy, not updating 19:27:01.459 -[WiFiEvidenceSourceCoreWLAN doUpdate] WiFi link is active, grabbing connection info 19:27:02.108 -[CPController setScreenLockInActive:] screen lock becoming inactive 19:27:29.157 -[CPController doUpdateForReal] guesses { "9A33B796-01AC-43C8-B04F-F245B12588B6" = 1; } 19:27:29.158 -[CPController guessMeetsConfidenceRequirement:] checking Home (9A33B796-01AC-43C8-B04F-F245B12588B6) with confidence 1
This time, it happend right after waking up the computer. The link became active, then got disconnect, then got reconnected again. Hard to reproduce tho as not every sleep/wake up cycle triggers the bug.
What model Mac is it? And can you confirm the issue doesn't exist if ControlPlane isn't running?
Mid-2010 and I confirm that this issue doesn't exist if CP isn't running. I just never had those kind of issues when I wasn't using CP.
MBA or MBP?
Pat, – my understanding is that it the last time it was not a disconnect/reconnect happening every 5 minutes, like you reported originally. But that it was one-time disconnect/reconnect happening right after the wakeup – apparently the same thing as you reported one week ago, when you first discovered the situation (after the CP crashes on wake-ups had been fixed). Please, confirm.
In general, I am getting more and more suspicious that it may have to do with specific h/w and how drivers on the Mac interact with it. As I cannot get that happening on my MBP (mid-2012). Would be helpful to know if other users of CP observe that same thing (and what are their Mac models) – yet I did not see any other reports on that. In any case, I definitely want to nail the down the root cause here. I do have some ideas, but unfortunately the only way will be a kind of try'n'error approach with custom builds I can give you. And that may take time, indeed – being a QA person, as you stated before, I hope you are ready to help us with more tests. (Let us know if you are for that or not.) Apologies for any inconvenience related.
Dustin: Macbook Pro Mid-2010
Vladimir: In my line of work, I'm kind of used to this way of working when bugs are close to impossible to reproduce. You have my full support on this. I'd be more than happy to help an awesome application as CP to get even better.
Just let me know what you need from me.
Pat
Good to know, Pat. Thanks. Would you also confirm on the following part from my previous post?
Pat, – my understanding is that it the last time it was not a disconnect/reconnect happening every 5 minutes, like you reported originally. But that it was one-time disconnect/reconnect happening right after the wakeup – apparently the same thing as you reported one week ago, when you first discovered the situation (after the CP crashes on wake-ups had been fixed). Please, confirm.
In general, what are your observations on that behavior with Wi-Fi from yesterday and today?
No, it wasn't like the first bug I commented on. The Wifi didn't get disabled when my computer woke up from sleep, it simply got connected to my AP for like, 15 seconds, before getting disconnected and reconnected to it. Kind of hard to explain with words but that's pretty much it. Simple "connect-disconnect-connect" behaviour.
Understood. And it was not repeating (like every 5 minutes) after that, correct?
Did you see it again, since that occurrence? How it goes with the latest build you have?
Have we confirmed that the issue goes away with an older version of CP? Try http://www.controlplaneapp.com/download/1.3.14. I'm really hard pressed to believe that CP is the cause of this issue, but it might be helping reveal a hardware issue you are having. The WiFi evidence source is one of the most used evidence source, we'd be seeing a ton of reports about this if it was common.
@VladimirTechMan we should be able to monitor the state of the interface. It might be useful in a custom or debug build to log interface state as reported by the system while not doing any of the update loops (e.g., just monitor the interface for changes and log it) to see if the system is dropping the connection on a regular basis or if the update loop is causing it.
Vladimir: It's been a while since I've seen it happening with the build you sent me and no, it did not repeat itself afterward with the latest build.
Dustin: I do understand your point and I can see why you're suspicious. But I wouldn't put that much effort into helping you guys if I didn't had this issue, we all have other things to do!
Like I said, anything I could do to help...
@PatDal81 do you have a dual band network by chance where you might not be quite in range for 5Ghz but 2.4Ghz works fine? I'm not sure how OS X handles hopping frequencies on these older but dual band models.
Hi Vladimir,
I've been thinking about this… I think I know why the weird behaviour with the wireless connection is happening.
Could it be that when the computer wakes up, OSX detect my preferred wifi AP (my home router) and automatically connect to it. Then, CP detects that the context has changed since it's been put to sleep (was put to sleep at work) and thus, connect to that my home Wifi AP, forcing a disconnect and reconnect to that same Wifi?
So to fix this, CP should make sure the currently connected Wifi isn't the same as the one stated in the rules, before connecting to it. What do you think?
ControlPlane doesn't instruct OS X on which WiFi APs to connect to. Is one of your actions to change the network location?
Ok my bad! But yes you're right, I do have an action to change my network location based on some rules.
Ok, whenever you change the network location OS X will reset all of the adapters so you'll see a disconnect/reconnect on wifi (as well as the ethernet port if it is connected). There isn't anything we can do from within ControlPlane to prevent this. Sorry.
Pat, just to clarify more on that: When an action that changes the network location is triggered, it checks if the network location to be set is the same as the network location currently set in the system. If the same, the action won't do any change. But if not, then it will set the new location and, as Dustin already pointed, that will cause resetting all the adapters. That's at the system level.
Indeed, if you change the network location manually, you will have the same effect.