Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Fidget324

macrumors newbie
Original poster
May 28, 2011
3
0
Hi,

Whenever I enter a search query or URL in Safari, my computer completely disconnects from the internet for 5-15 seconds. I also notice this behavior whenever I open the Notification panel, and it tries to refresh weather, stocks, etc. The wifi stays on and appears to remain connected, but all of my other open applications simultaneously lose their internet connection. For example, here's what happens when I ping google.com in the background, and then open the Notification Center panel:

64 bytes from 216.58.192.238: icmp_seq=38 ttl=55 time=36.503 ms
64 bytes from 216.58.192.238: icmp_seq=39 ttl=55 time=35.648 ms
64 bytes from 216.58.192.238: icmp_seq=40 ttl=55 time=40.192 ms
64 bytes from 216.58.192.238: icmp_seq=41 ttl=55 time=36.268 ms
64 bytes from 216.58.192.238: icmp_seq=42 ttl=55 time=35.133 ms <- Open Notification Center here
Request timeout for icmp_seq 43 <- Lose connection
Request timeout for icmp_seq 44
Request timeout for icmp_seq 45
Request timeout for icmp_seq 46
Request timeout for icmp_seq 47
Request timeout for icmp_seq 48
Request timeout for icmp_seq 49
64 bytes from 216.58.192.238: icmp_seq=45 ttl=55 time=5618.431 ms <- Connection resumes here
64 bytes from 216.58.192.238: icmp_seq=50 ttl=55 time=600.286 ms
64 bytes from 216.58.192.238: icmp_seq=52 ttl=55 time=660.670 ms
64 bytes from 216.58.192.238: icmp_seq=53 ttl=55 time=342.075 ms
64 bytes from 216.58.192.238: icmp_seq=54 ttl=55 time=34.993 ms

This issue does not occur when I enter a query in Chrome or Firefox, and it does not occur when I use some other system applications, like iTunes. I've been experiencing this issue since El Capitan, and I have tried all of the solutions here without any luck. Rebooting my machine temporarily solves the problem, but then it always returns after several hours.

I'm currently using MacOS Sierra 10.12.5.
 

neeklamy

macrumors newbie
Jul 6, 2012
26
8
You didn’t mention, did you look through the comments to that OS X Daily article? Kevin suggests disabling AirDrop, he links to this article, Disabling AirDrop from the command line.

And in the comments to the AirDrop article, Lucky suggests you don’t need to log out to effect the change, just relaunch Finder (do a killall Finder in the Terminal, or ⌥-right-click the Finder Dock icon to reveal the Relaunch command, or even ⌥⌘⎋ to open the Force Quit Applications window).

Failing that, is there any relevant output in the Console (found in /Applications/Utilities)? If there is some interesting looking Console ouptput, just one tip for pasting it in here, place it inside a couple of code blocks: [CODE] your console output here [/CODE]

Or using the Insert ▸ Code menu:

MacRumors-use-code-blocks.png
 

Fidget324

macrumors newbie
Original poster
May 28, 2011
3
0
You didn’t mention, did you look through the comments to that OS X Daily article? Kevin suggests disabling AirDrop, he links to this article, Disabling AirDrop from the command line.

And in the comments to the AirDrop article, Lucky suggests you don’t need to log out to effect the change, just relaunch Finder (do a killall Finder in the Terminal, or ⌥-right-click the Finder Dock icon to reveal the Relaunch command, or even ⌥⌘⎋ to open the Force Quit Applications window).

Failing that, is there any relevant output in the Console (found in /Applications/Utilities)?

I just tried Kevin's suggestion to disable AirDrop, but it did not make any difference. I did, however, notice many errors in my console as soon as I enter a URL in Safari:

Code:
error    18:54:07.983116 -0400    com.apple.Safari.SearchHelper    NSURLSessionTask finished with error - code: -999
error    18:54:07.983909 -0400    com.apple.Safari.SearchHelper    HTTP load failed (error code: -999 [1:89])
error    18:54:08.999838 -0400    parsecd    network_config_has_proxies_configured network_config_has_proxies_configured is deprecated
error    18:54:08.999937 -0400    parsecd    tcp_connection_get_remote API Misuse: Function must be called after tcp_connection_start
error    18:54:08.000141 -0400    parsecd    tcp_connection_is_cellular API Misuse: Function must be called after tcp_connection_start
error    18:54:08.220087 -0400    com.apple.Safari.SearchHelper    NSURLSessionTask finished with error - code: -999
error    18:54:08.220456 -0400    com.apple.Safari.SearchHelper    HTTP load failed (error code: -999 [1:89])
error    18:54:08.423971 -0400    WindowServer    _CGXRemoveWindowFromWindowMovementGroup: window 0x8c is not attached to window 0x158
error    18:54:12.699547 -0400    com.apple.WebKit.Networking    TIC Read Error [30907:0x7f9005950460]: 1:57
error    18:54:12.699573 -0400    com.apple.WebKit.Networking    TIC Read Error [30907:0x7f9005950460]: 1:57
error    18:54:12.699596 -0400    com.apple.WebKit.Networking    TIC Read Error [30907:0x7f9005950460]: 1:57
error    18:54:12.701292 -0400    parsecd    network_config_has_proxies_configured network_config_has_proxies_configured is deprecated
error    18:54:12.701336 -0400    parsecd    tcp_connection_get_remote API Misuse: Function must be called after tcp_connection_start
error    18:54:12.701425 -0400    parsecd    tcp_connection_is_cellular API Misuse: Function must be called after tcp_connection_start
error    18:54:12.988174 -0400    parsecd    NSURLSessionTask finished with error - code: -1001
error    18:54:12.988898 -0400    parsecd    error with request <private>
error    18:54:13.221644 -0400    parsecd    NSURLSessionTask finished with error - code: -1001
error    18:54:13.222096 -0400    parsecd    error with request <private>
error    18:54:13.222955 -0400    parsecd    HTTP load failed (error code: -999 [1:89])
error    18:54:13.838847 -0400    sandboxd    unexpected array stack subtype: stack user lr 64-bit: 12
error    18:54:13.838887 -0400    sandboxd    unexpected array stack subtype: stack user lr 64-bit: 53
error    18:54:13.838941 -0400    sandboxd    unexpected array stack subtype: stack user lr 64-bit: 3
error    18:54:13.839184 -0400    sandboxd    unexpected array stack subtype: stack user lr 64-bit: 3
error    18:54:13.839334 -0400    sandboxd    unexpected array stack subtype: stack user lr 64-bit: 3
error    18:54:13.839464 -0400    sandboxd    unexpected array stack subtype: stack user lr 64-bit: 15
error    18:54:13.839708 -0400    com.apple.Safari.SearchHelper    LaunchServices: Database mapping failed, process cannot lookup com.apple.lsd.mapdb port by name.
error    18:54:13.839877 -0400    com.apple.Safari.SearchHelper    LaunchServices: disconnect event received for service <private>
error    18:54:13.840081 -0400    com.apple.Safari.SearchHelper    LaunchServices: Database mapping failed, process cannot lookup com.apple.lsd.mapdb port by name.
error    18:54:13.841020 -0400    sandboxd    SandboxViolation: com.apple.Safari(608) deny mach-lookup com.apple.lsd.mapdb
Violation:       deny mach-lookup com.apple.lsd.mapdb 
Process:         com.apple.Safari [608]
Path:            /System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/XPCServices/com.apple.Safari.SearchHelper.xpc/Contents/MacOS/com.apple.Safari.SearchHelper
Load Address:    0x1015cf000
Identifier:      com.apple.Safari.SearchHelper
Version:         12603.2.4 (12603)
Code Type:       x86_64 (Native)
Parent Process:  launchd [1]
Responsible:     /Applications/Safari.app/Contents/MacOS/Safari [591]
User ID:         501

Date/Time:       2017-07-12 18:54:13.841 EDT
OS Version:      Mac OS X 10.12.5 (16F73)
Report Version:  8

Thread 0 (id: 6690):

Thread 1 (id: 6695, com.apple.NSURLConnectionLoader):

Thread 2 (id: 584843):

Thread 3 (id: 585920):

Thread 4 (id: 585922):

Thread 5 (id: 585923):

Binary Images:

MetaData: {"build":"Mac OS X 10.12.5 (16F73)","action":"deny","target":["com.apple.lsd.mapdb"],"hardware":"Mac","platform_binary":"yes","profile":"unknown","process":"com.apple.Safari","op":"mach-lookup"}
error    18:54:13.843945 -0400    sandboxd    SandboxViolation: com.apple.Safari(608) deny mach-lookup com.apple.lsd.mapdb [Duplicate; no report will be generated.]
error    18:54:13.844033 -0400    com.apple.Safari.SearchHelper    LaunchServices: Database mapping failed, process cannot lookup com.apple.lsd.mapdb port by name.
error    18:54:13.844917 -0400    com.apple.Safari.SearchHelper    LaunchServices: disconnect event received for service <private>
error    18:54:15.273999 -0400    sandboxd    SandboxViolation: com.apple.Safari(608) deny mach-lookup com.apple.lsd.mapdb [Duplicate; no report will be generated.]
error    18:54:15.274166 -0400    com.apple.Safari.SearchHelper    LaunchServices: Database mapping failed, process cannot lookup com.apple.lsd.mapdb port by name.
error    18:54:15.274491 -0400    com.apple.Safari.SearchHelper    LaunchServices: Database mapping failed, process cannot lookup com.apple.lsd.mapdb port by name.
error    18:54:15.274853 -0400    com.apple.Safari.SearchHelper    LaunchServices: disconnect event received for service <private>
error    18:54:15.275158 -0400    com.apple.Safari.SearchHelper    LaunchServices: Database mapping failed, process cannot lookup com.apple.lsd.mapdb port by name.
error    18:54:28.086526 -0400    com.apple.WebKit.Networking    TIC Read Error [31066:0x7f9002cacc80]: 1:57
error    18:54:28.390745 -0400    com.apple.WebKit.Networking    NSURLSessionTask finished with error - code: -1007
error    18:54:36.795757 -0400    com.apple.WebKit.Networking    nw_endpoint_handler_add_write_request [31150.1 74.119.118.67:80 failed socket-flow (satisfied)] cannot accept write requests
error    18:54:36.796119 -0400    com.apple.WebKit.Networking    __tcp_connection_write_eof_block_invoke Write close callback received error: [22] Invalid argument
error    18:54:42.735138 -0400    com.apple.WebKit.Networking    nw_endpoint_handler_add_write_request [31151.1 74.119.118.67:80 failed socket-flow (satisfied)] cannot accept write requests
error    18:54:42.735417 -0400    com.apple.WebKit.Networking    __tcp_connection_write_eof_block_invoke Write close callback received error: [22] Invalid argument
 

neeklamy

macrumors newbie
Jul 6, 2012
26
8
There’s a few other discussions that seem to touch upon the problem you’re experiencing with your Mac, but there’s a lot of noise too so I won’t link to any of them. But here are some things you can try.

In Safari, Disable Accelerated Compositing

This could be a problem between Safari and the drivers for your computer’s GPU, temporarily disabling the GPU in Safari would isolate this.

First you will need to enable the Debug menu in Safari:
  1. Launch Terminal
  2. Enter the following: defaults write com.apple.Safari IncludeInternalDebugMenu 1
  3. Relaunch Safari

Now you can disable accelerated drawing. In Safari, go to Debug ▸ Drawing/Compositing Flags and toggle on both Disable Accelerated Compositing and Disable Full Page Accelerated Drawing.

Log in as a Guest User

If you’ve disabled guest users (a good security practice to harden your OS, do it afterwards if you haven’t), then temporarily re-enable it in System Preferences ▸ Users & Groups.

Log in to a guest account, can you reproduce the problem?

Use EtreCheck to diagnose any issues

EtreCheck is a free diagnostic application that will check a number of things, highlighting any potential problems. The EtreCheck website.

Boot your Mac in Safe Mode

Safe Mode will launch a minimal OS, with many drivers left unloaded. You may not even have Wi-Fi drivers loaded, if your Mac has an ethernet, time to plug it in. Check out Apple’s article Use safe mode to isolate issues with your Mac.

Near an Apple Store?

Failing all of that, if there’s one near you, it might be worth taking your Mac into your nearest Apple Store.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.