MacBook Pro 15" (2016) Crashing while connecting/disconnecting the LG 5K Monitor

I have the 2016 MBP 15" with 2.9 CPU, 2TB and 460 GPU with 4GB. I am using Mac OS X 10.12.2.


In one single day I have had 2 Mac OS Crashes and 2 Panic Errors, it has always happened after connecting or disconnecting the new LG 5K monitor. Here are the scenarios.


MBP closed in sleep mode, connect the 5K monitor through the Thunderbolt 3 cable (providing data and power) to use only the 5K monitor, the MBP will remain closed, after plugging it in I will press a key in the external keyboard or move the mouse to resume from sleep mode and the LG 5K Monitor screen will be black, and after 5-10 seconds I will get the panic message "You need to restart your computer, hold the power button for several seconds........." on the middle of the screen and the MBP will self reboot shortly after. I've been able to repeat this error by simply following the steps above 2 times within 15min. To me clearly seems to be something related to the Thunderbolt 3 connection or the handling of the external monitor when resuming from sleep. These is the information from the Console on the Panic errors, both Panic logs look the same:


Mon Jan 16 17:40:19 2017

*** Panic Report ***

Kernel Extensions in backtrace:

com.apple.iokit.IOGraphicsFamily(513.1)

dependency: com.apple.iokit.IOPCIFamily(2.9)

com.apple.kext.AMDSupport(1.4.8)

dependency: com.apple.iokit.IOACPIFamily(1.4)

dependency: com.apple.iokit.IOPCIFamily(2.9)

dependency: com.apple.iokit.IOGraphicsFamily(513.1)

dependency: com.apple.AppleGraphicsDeviceControl(3.13.78)

com.apple.kext.AMD9500Controller(1.4.8)

dependency: com.apple.iokit.IOACPIFamily(1.4)

dependency: com.apple.iokit.IOPCIFamily(2.9)

dependency: com.apple.kext.AMDSupport(1.4.8)

dependency: com.apple.iokit.IOGraphicsFamily(513.1)

com.apple.kext.AMDFramebuffer(1.4.8)

dependency: com.apple.iokit.IOACPIFamily(1.4)

dependency: com.apple.iokit.IOPCIFamily(2.9)

dependency: com.apple.kext.AMDSupport(1.4.8)

dependency: com.apple.iokit.IOGraphicsFamily(513.1)


The second problem caused the computer to crash, here is the description of the situation: Last night I had the MBP closed connected to the 5K monitor using only the monitor, no internal display. I put it to sleep before going to bed. Today in the morning I did not open the MBP, I just unplugged the Thunderbolt 3 cable to disconnect the LG 5K monitor and take the MBP with me to the office. Once I got there I just plugged (at 8:11AM) the laptop the the AC via the Apple USB-C cable and the Apple 87W AC adapter, the MBP was still closed, in sleep mode I would assume. The around 8:15AM I opened the laptop to find out it has crashed and the login screen after a restart was there, no resume from sleep. Same thing happened later in the day after I came home, this is the information from the Console:


Crash at 8:11AM Today (look at the AmbientDisplayAgent):


Process: com.apple.AmbientDisplayAgent [15057]

Path: /System/Library/PrivateFrameworks/AmbientDisplay.framework/Versions/A/XPCServic es/com.apple.AmbientDisplayAgent.xpc/Contents/MacOS/com.apple.AmbientDisplayAgent

Identifier: com.apple.AmbientDisplayAgent

Version: 1.0 (1)

Code Type: X86-64 (Native)

Parent Process: launchd [1]

Responsible: com.apple.AmbientDisplayAgent [15057]

User ID: 0

Date/Time: 2017-01-16 08:11:26.029 -0600

OS Version: Mac OS X 10.12.2 (16C67)

Report Version: 12

Anonymous UUID: 5C048B2B-4801-AEE4-C57A-202B6A1E3822

Sleep/Wake UUID: B9B2EB86-667C-4404-8556-9870749821DD

Time Awake Since Boot: 150000 seconds

Time Since Wake: 6 seconds

System Integrity Protection: enabled

Crashed Thread: 3 Dispatch queue: com.apple.root.default-qos.overcommit

Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Codes: EXC_I386_GPFLT

Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11

Termination Reason: Namespace SIGNAL, Code 0xb

Terminating Process: exc handler [0]

Application Specific Information:

objc_msgSend() selector name: isEqual:

Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fffe729e38a mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fffe729d7d7 mach_msg + 55

2 com.apple.CoreFoundation 0x00007fffd1c1fc94 __CFRunLoopServiceMachPort + 212

3 com.apple.CoreFoundation 0x00007fffd1c1f121 __CFRunLoopRun + 1361

4 com.apple.CoreFoundation 0x00007fffd1c1e974 CFRunLoopRunSpecific + 420

5 com.apple.Foundation 0x00007fffd3633612 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277

6 com.apple.Foundation 0x00007fffd36334ea -[NSRunLoop(NSRunLoop) run] + 76

7 libxpc.dylib 0x00007fffe73db89b _xpc_objc_main + 731

8 libxpc.dylib 0x00007fffe73da2e4 xpc_main + 494

9 com.apple.AmbientDisplayAgent 0x0000000103c528a5 main + 298

10 libdyld.dylib 0x00007fffe7177255 start + 1


Crash at 5:50PM today (same AmbientDisplayAgent):


Process: com.apple.AmbientDisplayAgent [209]

Path: /System/Library/PrivateFrameworks/AmbientDisplay.framework/Versions/A/XPCServic es/com.apple.AmbientDisplayAgent.xpc/Contents/MacOS/com.apple.AmbientDisplayAgen t

Identifier: com.apple.AmbientDisplayAgent

Version: 1.0 (1)

Code Type: X86-64 (Native)

Parent Process: launchd [1]

Responsible: com.apple.AmbientDisplayAgent [209]

User ID: 0

Date/Time: 2017-01-16 17:50:05.171 -0600

OS Version: Mac OS X 10.12.2 (16C67)

Report Version: 12

Anonymous UUID: 5C048B2B-4801-AEE4-C57A-202B6A1E3822

Sleep/Wake UUID: 74BCEADF-96E1-4B71-BA28-93E605DA9C0B

Time Awake Since Boot: 100 seconds

System Integrity Protection: enabled

Crashed Thread: 2 Dispatch queue: DispEventQueue

Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018

Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11

Termination Reason: Namespace SIGNAL, Code 0xb

Terminating Process: exc handler [0]

VM Regions Near 0x18:

-->

__TEXT 000000010239e000-00000001023a5000 [ 28K] r-x/rwx SM=COW /System/Library/PrivateFrameworks/AmbientDisplay.framework/Versions/A/XPCServic es/com.apple.AmbientDisplayAgent.xpc/Contents/MacOS/com.apple.AmbientDisplayAgen t

Application Specific Information:

objc_msgSend() selector name: isEqual:

Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fffb2c5838a mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fffb2c577d7 mach_msg + 55

2 com.apple.CoreFoundation 0x00007fff9d5d9c94 __CFRunLoopServiceMachPort + 212

3 com.apple.CoreFoundation 0x00007fff9d5d9121 __CFRunLoopRun + 1361

4 com.apple.CoreFoundation 0x00007fff9d5d8974 CFRunLoopRunSpecific + 420

5 com.apple.Foundation 0x00007fff9efed612 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277

6 com.apple.Foundation 0x00007fff9efed4ea -[NSRunLoop(NSRunLoop) run] + 76

7 libxpc.dylib 0x00007fffb2d9589b _xpc_objc_main + 731

8 libxpc.dylib 0x00007fffb2d942e4 xpc_main + 494

9 com.apple.AmbientDisplayAgent 0x00000001023a08a5 main + 298

10 libdyld.dylib 0x00007fffb2b31255 start + 1


Please any help or advice on what could be the root cause will be appreciated, thanks

MacBook Pro with Retina display, macOS Sierra (10.12.2)

Posted on Jan 16, 2017 5:50 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 16, 2018 2:30 AM

Update to my previous comment:
I went to the Apple store to test an identical LG 5k display with my own MacBook and it worked without any issues. Likewise, I asked one of my friends to come around to test my monitor with his MacBook and the outcome was the same. My monitor didn’t switch on and it also crashed my friend’s MacBook. I can safely conclude that in my case the fault is in the monitor. I contacted LG and they refused to take the monitor in for a fix. Also, since the problem doesn't seem to be with the laptop, Apple won't be able to fix it either. I contacted an LG partner that deals with fixes and they told me that the problem is most likely in the monitor's mainboard. They suggested to replace it and charged me £360 including pickup and delivery. It's expensive. Should I go for it?

265 replies
Question marked as Top-ranking reply

Jan 16, 2018 2:30 AM in response to logicito

Update to my previous comment:
I went to the Apple store to test an identical LG 5k display with my own MacBook and it worked without any issues. Likewise, I asked one of my friends to come around to test my monitor with his MacBook and the outcome was the same. My monitor didn’t switch on and it also crashed my friend’s MacBook. I can safely conclude that in my case the fault is in the monitor. I contacted LG and they refused to take the monitor in for a fix. Also, since the problem doesn't seem to be with the laptop, Apple won't be able to fix it either. I contacted an LG partner that deals with fixes and they told me that the problem is most likely in the monitor's mainboard. They suggested to replace it and charged me £360 including pickup and delivery. It's expensive. Should I go for it?

Feb 3, 2018 9:16 PM in response to logicito

UPDATE 2 - NO CRASHES AFTER 3 DAYS OF COMING BACK FROM APPLE CARE - Replaced logic board, 2 x IO boards and cables..

I have been using with Dell curved 4K Monitor at work and dual dell non-4k at home (one HDI and other DP)


My 2016 MBP with Radeon 460 has not crash in 3 days.


I've continued to do sleep, open clamshell, unplug monitors, re-plug monitors, etc. etc. in various combos of clamshell closed and opened..


I had one small glitch this agternoon where the top right (where the time is) had a red bar.. but I unplugged to monitor and re-plugged it and it went away..


So far no crashes.. And no more "Red and Yellow" screens.. (Prior it used to crash on pretty much all of the above actions)


User uploaded file

Jan 8, 2018 12:54 PM in response to tigo13

The issue has been resolved. Either by Apple directly with a software update (running OS X 10.13.2) or by myself as I'm now using Startech and A-logic USB-C cables as opposed to the cables that came with the 4K monitors that I use from Dell and Acer. It has not crashed - unless I accidentally make a mistake in the sequence of connecting / disconnecting it with the external monitors.

I think (hypothesis) that the issue with the laptop crashing is due to how the OS handles the power / signalling with the external monitors that it gets confused and crashes unless you follow sequence when connecting / disconnecting.

When the laptop is connected to an external monitor and the user wants to disconnect it from the external monitors, either to transport it (go to work) or to use it independently then they'd need to do the following.

1) If going to work, and the laptop is to remain in clamshell, - then put the machine to sleep BEFORE turning off the external monitor or disconnecting the cable.

2) if you plan on working with the laptop directly after disconnecting it from the external monitor. Then, open the laptop screen from clamshell, - make sure that it is working fine, - then disconnect the external monitor.

If you've returned from work and want to connect it to the external monitor. Either keep the laptop in clamshell, connect the cables, then turn on the monitor and bluetooth / wireless keyboard mouse and wait for it to send a graphics signal the monitor. If nothing happens, - then try opening the laptop screen to see if the laptop screen has your login details, etc.


I think (hypothesis) that the crashes were an issue with the OS - Graphics card - power management. If the laptop had been in clamshell - connected to external monitor. And you just disconnect the monitor, - the OS would believe it needs to go to sleep - it had just lost power, and if you then open the laptop screen directly. It would crash. Similarly when connecting the laptop to the external screen - it suddenly starts to receive a signal and it is trying to identify the accessory now connected to it.


Acer / Dell, and non-Apple hardware monitors have pretty basic accessories that do not have power management / communication chips in them to communicate with the computer. When a windows laptop connects to these monitors - they would work fine - as the OS is built to handle them. However, when it comes to an Apple laptop, - they require / expect the accessories (monitors) to have some sort of advanced - power management / signalling in them.


Also, its worth noting that the Dell / Acer etc monitors, are not Thunderbolt 3 monitors, - that they are a DP monitor with USB-C input interface labelled as ALT-DP. A thunderbolt 3 monitor would have the power management chip that I mentioned.


My laptop now does not crash - as long as I'm following the right sequence, and it automatically crashes if I don't follow the sequence. Feeling a lot better that I understand how to avoid crashes to not lose my work.

Jan 31, 2018 5:44 PM in response to Shareef Yousef

Even though I shouldn't be doing this on a $4.5K device, I've developed the following process to minimize the issues:


- If I am going to connect the 5K monitor to the MBP, I will open the lid first and once macOS is up and running I will hot plug the 5K monitor.


- Same process for removal, if the MBP is closed (clamshell mode), I will open the lid and once both screens (MBP and 5K) are up and running, I will hot unplug the 5K monitor and then close the lid and take the laptop with me.


Most of the issues are with the way macOS handles the sleep state, by following this process the connect and disconnect of the 5K monitor or any monitor will always be in a non-sleep state for macOS, so far I have had good results, and it is not something (process) that bothers me a lot.

Feb 5, 2018 2:04 AM in response to logicito

So far, my machine has been running for 12 days and 10.30 hrs without a crash. Its running 10.13.3. File Vault is OFF; Touch ID is ON.

[November 2017, the logic board was replaced, due to continuous crashing]


The approach that I've taken is,

- When I want to connect the MBP to the monitor. I place it in sleep mode (by selecting the option Apple-Menu - Sleep) not just closing the clamshell and connecting immediately. There has to be a few minutes between the laptop in sleep mode and making that connection. Then I would connect the monitor, turn the monitor on and press the keyboard - move mouse to wake it up.


- When I want to disconnect the MBP from the monitor. I place it in sleep mode, wait for the screen to be searching for a signal; then I would disconnect it. I would open the lid a few minutes later to continue working.


I haven't opened the laptop while it's connected to the external monitor; nor have I tried to connect the laptop while the lid is open to the external monitors. I also close any memory intensive / CPU intensive applications before connecting / disconnecting. Photoshop, VM-Ware and Matlab are closed always prior to connecting / disconnecting it.


There are times when the laptop is just connected to the USB-C monitor, it doesn't wake up / display anything on the external monitor; I would then turn on the second monitor that is connected on DP - and that works always. I would login to the computer then unplug the USB-C monitor and replug it then it would work fine. Last point, when I want to walk away from the computer and would want to switch off the monitor; I would place the machine in sleep mode, then once I see the screen is looking for a signal, I would turn off the monitor.


I've become quite aware of sequence - approach to avoid any potential failure - crashes in the laptop. An extra 30 seconds or a couple of minutes while doing something silly is a lot easier than it crashing - myself worrying about losing data and then having to run disk-checks and re-open everything.

Jan 10, 2018 3:52 AM in response to tigo13

I disagree,


After updating to 10.13.2 I connected to both an LG 5K and an Apple thunderbolt monitor and was able to replicate in both instances the freeze by opening the clamshell. This was performed with the 2016 MBP w/touchbar and AMD Radeon Pro 460 GPU.


Something extremely interesting is that I did the same test with a 2017 MBP w/tb with Radeon Pro 560 and didn't freeze!


I documented this in a multiple videos and forward them to Apple. The GPU in the 2016 MBP is the problem.

Jan 16, 2018 4:16 AM in response to Rob Designs

Rob, I took my laptop to an apple store and froze. Thus far I have tested 4 different LG 5K monitors and 2 different 2016 late MBP with 460 GPU and crashed in every combination.

Even Apple confirmed to me yesterday that that reproduced the problem.

An important thing to do is to set you resolution, both laptop and monitor, to maximum (both while clamshell is open and when is closed. This results in certain freeze when you open the clamshell.


I assume your MBP has the AMD Radeon Pro 460 GPU?

Jan 28, 2018 12:20 PM in response to logicito

The 2016 model. I bought a 2017 and held on to it for a couple of weeks to trial it. and it had crashed as well, so I returned it and held on the 2016. If the 2017 did not crash, then I would have held on to it and sold off 2016 to someone that doesn't need to connect to an external monitor.

Perhaps something to consider. Is your laptop SSD encrypted or unencrypted. When I had the hard drive encrypted, - it crashed 9 out of 10 times with an external screen and the machine being in clam-shell connected to a bluetooth keyboard. I rebuilt the machine without an encrypted drive, and along with the sequence approach to connecting / disconnecting to an external monitor. the laptop uptime is now more than 4 days. The last time it was restarted was when the OS X update came out. I generally do not restart / shutdown the machine. Oh, and I replaced the monitor cables to Startech and A-logic. I learned to avoid the original monitor cables.

Jan 10, 2018 5:38 PM in response to kdupreez

More than a year after I purchased my 2016 MacBook Pro, after multiple macOS upgrades, after a logic board replacement and the problem keeps happening, I agree with a previous post, this issue is NOT software related, it is a hardware problem on the first generation of MacBook Pros with Thunderbolt 3 that Apple is not willing to accept. I am going to take mine again for the second time to the Apple store for repairs, probably they will replace the logic board again.

Jan 17, 2018 5:24 PM in response to kdupreez

Great!!! Thank you so much.

Please find below a video I made showing the problem.


MacBook Pro 15" (late 2016) Crashing while connecting/disconnecting external monitor. - YouTube


We tested two 2016 (late) BMP with 3 different LG 5K monitors and one Apple thunderbolt monitor and the problem was present at any combination (AMD Radeon Pro 460). Additional 3 replacement MBPs 2016 had GPU issues.


We also tested the 2017 BMP with LG 5K with no issue (AMD Radeon Pro 560)....


All tests with High Sierra

Feb 4, 2018 12:53 PM in response to Shareef Yousef

Did you have any CPU intensive / memory consuming applications open at the time? I used to have the crash - red / yellow on the screens - whenever I was running Matlab or photoshop - then connected a screen or disconnected the screen.


At present, I close any application that may be using the CPU or memory intensively. I even close the virtual machine before making the connection / disconnection to the monitor; and I follow a sequence when connecting / disconnecting the monitor. I think thats why I haven't had any crashes, and that they've managed to improve how OS-X handles the changes in power consumption as a result of having an external monitor.


The challenge that the Apple Care rep once said to me - during a 2 months troubleshooting escapade - is that they don't know whether it's the Radeon Pro 460 - the logic board; the Applications that I am running; or the I/O ports. Also they are two different problems being faced, - 1) is the sleep / wake failure that occurs as a result when the machine is connected with an external monitor; 2) Connecting / disconnecting it from an external monitor.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacBook Pro 15" (2016) Crashing while connecting/disconnecting the LG 5K Monitor

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.