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?

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 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

Jan 15, 2018 5:02 PM in response to logicito

Apple customer relations just called me. After looking at my case and all the videos I've sent them Apple's engineers were able to replicate the problem in house with the 2016 late MBP. However, they are not willing to replace nor refund the faulty computer. They proposed a work around - to run it in default resolution (both my MBP and my external monitor) which makes no sense. I didn't pay $3,500 for a computer that cannot achieve the advertised performance (5K resolution).

Bottom line, the first generation of 2016 MBP are faulty but Apple will not take full responsibility about it!


If this is not resolved within 2 weeks, I will take it further legally.

I want to draft a letter of complain and have it signed by all people with the same problem with the MBP late 2016. Please let me know if you are interested signing. You could also use this letter to claim your rights.


Very disturbing given that they know the problem.

Jan 22, 2018 3:20 PM in response to Shareef Yousef

The 2017 model had issues as well. I had used it for 10 days while my '16 was in repair - getting the motherboard replaced. The cost of a new motherboard that's a year old is now negligible for Apple. I can't see them being able to fix the problem in the current state of the technology the 2016 and 2017 models.

Let's see how the petition goes; and we can keep sending Apple the laptop for their thoughts.

At present, I'm trying to develop the habit of putting the computer to Sleep - say a prayer - connect or disconnect it from the external monitor; and then to use. The machine would crash if you don't send it to sleep then connect or disconnect it.

Jan 27, 2018 11:03 AM in response to logicito

So there was an update from Apple that I loaded and I have not been able to get it to crash since..


I tried plugging my dual monitors in and out several times, closed clamshell, opened clamsell, closed then uplugged and then open.. close unplug then plug in again.. and it so far (crossing fingers) is just working..


I have a hardware appointment at Apple today (1 week wait for appt) and as luck would have it.. i cant get it to crash after the update..


Did they fix it ?

Jan 28, 2018 1:48 AM in response to kdupreez

Prior to opening the clamshell, - did you have many applications open, or were you doing anything intensive?

I'm always working with two monitors connected, and I'm easily able to crash it, - when connecting / disconnecting to the monitors.

But, I've learned to send the laptop to sleep - wait a minute - disconnect the monitors. Leave the computer off for a bit, then open the clamshell and go back to work. The machine in this sequence did not crash. Similarly when I connect the machine to the monitors (while the laptop is in clamshell mode.) I turn on both monitors, - then wait patiently - while moving the mouse / pressing the arrow keys on the laptop. After a minute the machine is alive without a crash. Also, when the machine goes to screensaver mode while connected to the monitors, I always leave the screen saver running for a couple of minutes before resuming work.

I don't think the genius bar will be able to help you or anyone. It's a faulty machine. I'm learning to pray-and-live with it - while following sequential steps when connecting / disconnecting it to external monitors.

Jan 30, 2018 7:30 AM in response to Coregts

Same here. I went down to a single 5K with no other devices plugged into my MBP or the 5K the entire week. Didn't unplug the 5K either. Lasted a week before it finally hung and crashed. Using only basic apps, Safari, Mail, etc. If this crash report doesn't prove that the AMD cards are defective, then it's just Apple wanting to avoid any potential legal issues down the road.


*** Panic Report ***

panic(cpu 6 caller 0xffffff800796e339): Kernel trap at 0xffffff7f8efdd42a, type 14=page fault, registers:

CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x000000001120d000, CR4: 0x00000000003627e0

RAX: 0xffffff7f8f3575a8, RBX: 0xffffff80461bfc00, RCX: 0x0000000000000202, RDX: 0x0000000000000000

RSP: 0xffffff9226f5bd80, RBP: 0xffffff9226f5bda0, RSI: 0xffffff80488a4500, RDI: 0x0000000000000000

R8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0x0000cfd5c966d2a7, R11: 0x0000cfd5c966d2a7

R12: 0xffffff802fc78b00, R13: 0xffffff81abc42090, R14: 0xffffff80488a4500, R15: 0xffffff7f8f0c5daa

RFL: 0x0000000000010202, RIP: 0xffffff7f8efdd42a, CS: 0x0000000000000008, SS: 0x0000000000000000

Fault CR2: 0x0000000000000000, Error code: 0x0000000000000000, Fault CPU: 0x6, PL: 0, VF: 1


Backtrace (CPU 6), Frame : Return Address

0xffffff9226f5b830 : 0xffffff800784f606

0xffffff9226f5b880 : 0xffffff800797c654

0xffffff9226f5b8c0 : 0xffffff800796e149

0xffffff9226f5b940 : 0xffffff8007801120

0xffffff9226f5b960 : 0xffffff800784f03c

0xffffff9226f5ba90 : 0xffffff800784edbc

0xffffff9226f5baf0 : 0xffffff800796e339

0xffffff9226f5bc70 : 0xffffff8007801120

0xffffff9226f5bc90 : 0xffffff7f8efdd42a

0xffffff9226f5bda0 : 0xffffff7f8efbe91a

0xffffff9226f5be00 : 0xffffff7f8efbde11

0xffffff9226f5be30 : 0xffffff8007e95ecc

0xffffff9226f5bea0 : 0xffffff8007e95df6

0xffffff9226f5bed0 : 0xffffff8007888ec4

0xffffff9226f5bf40 : 0xffffff80078889b5

0xffffff9226f5bfa0 : 0xffffff80078004f7

Kernel Extensions in backtrace:

com.apple.kext.AMDRadeonX4100(1.6)[7EB9B6AC-08F7-3074-9D1A-C49C86602D21]@0xffff ff7f8ef9b000->0xffffff7f8f708fff

dependency: com.apple.iokit.IOSurface(209.2.2)[AE58720D-7079-388F-AD95-FD2366F98F8D]@0xffff ff7f89dd2000

dependency: com.apple.iokit.IOPCIFamily(2.9)[8E6C654E-4A8F-3C6B-BBFE-BA8A68C9C146]@0xffffff 7f88094000

dependency: com.apple.iokit.IOGraphicsFamily(517.22)[2AEA02BF-2A38-3674-A187-E5F610FD65B7]@ 0xffffff7f88884000

dependency: com.apple.iokit.IOAcceleratorFamily2(376.6)[5F8F39B4-41AB-3263-9867-D0FAF9BBD2A E]@0xffffff7f89dee000


BSD process name corresponding to current thread: kernel_task


Mac OS version:

17D47

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.