Mac will not wake up from sleep, reboot or cold boot - BLACK SCREEN OR STUCK AT BOOTING APPLE LOGO
Mac will not wake up from sleep, reboot or cold boot - BLACK SCREEN OR STUCK AT BOOTING APPLE LOGO. The issue is intermitent: sometimes there is no problem, but usually I must force shut down and try again. The problem is getting worse with time.
I have tried the following to no avail: when switching RAM from one of four extra identical iMac that do boot OK, then the above Mac issue remains and the other Mac boots OK, reset SMC and PRAM, safe boot, booting from a newly created account, booting from external USB and Thunderbolt disks, even with newly installed macOS. No problem found using Apple Diagnostics, DiskWarrior, Disk Utility, TechTool Pro o memtest.
When the issue arises, display remains on but black when trying to wake up. Sometimes the Mac shuts down itself or fans go over the roof, and I must force shut down. If the Mac cold boots then (see next), it shows "Your computer was restarted because of a problem" and Apple crash report shows "Event - Sleep Wake Failure".
When failed rebooting or cold booting strikes, the Mac may take longer than expected to show black screen with Apple logo (other times it shows quickly as expected) and then the progress bar does not start or stops after about 10% or at about 50% in the middle halfway (most of the times). Then I must force shut down and try to cold boot again. In such cases the Mac boots OK sometimes. Other times it stalls as before and I must try again.
I turn off the Mac overnight and this morning the failed cold boot showed again. It booted in the second trial after forced shut down, but the Mac started reindexing the disk (800 MB of data; takes 3 h 12 min to rebuild), even though yesterday did it again for the same reason.
Is this a GPU-motherboard-logicboard issue? Will it require to replace the full logic board, since graphics card is soldered to mother board?
macOS 10.12.6 (16G1618) Sierra on iMac 27-inch Retina 5K display 4.2 GHz Intel Core i7 7th-generation, model identifier iMac18,3 mid 2017) 40 GB RAM, Radeon Pro 580 with 8,192 MB VRAM, booting from internal Apple SSD SM2048L 2 TB (Samsung). Magic Keyboard with Numeric Keypad. Magic Mouse 2. No problem on other four identical iMac computers, as said above.
iMac with Retina 5K display, macOS Sierra (10.12.6), Booting from internal Apple SSD 2TB