{"id":5060,"date":"2014-06-01T19:24:40","date_gmt":"2014-06-02T02:24:40","guid":{"rendered":"http:\/\/www.podfeet.com\/blog\/?p=5060"},"modified":"2014-06-01T19:30:26","modified_gmt":"2014-06-02T02:30:26","slug":"allister-jenks-on-diagnosing-freezing-imac","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2014\/06\/allister-jenks-on-diagnosing-freezing-imac\/","title":{"rendered":"Allister Jenks on Diagnosing Freezing iMac"},"content":{"rendered":"<p>Greetings fellow NosillaCastaways. Allister here from New Zealand again with a tale of trouble. First, the problem to be solved. How about being called out in the live chat room last week to provide some content? No? OK, how about you\u2019ve taken two weeks off work to get in some quality time with XCode and not even half way into the first week your Mac decides to freeze? Often. Yeah, THAT\u2019S a problem to be solved.<\/p>\n<p>Fortunately I am now able to (mostly) trust my Mac enough to compose and record this. I\u2019m sure your Mac will run reliably until the end of its days, but if I\u2019m wrong about that, maybe this tale will help you out.<br \/>\n<!--more--><br \/>\nI have been noticing some occasional odd behaviour from my Mac recently, such as failing to complete the shutdown process or failing to wake from sleep, but on each occasion a forced reboot brought everything back to normal and I carried on. A forced reboot is a last resort, so I always try to get a normal shutdown either by using the Apple menu if it\u2019s visible and operable or pressing Command-Option-Control-Eject. This may result in some Save windows so pressing Enter a few times afterwards can help. When that doesn\u2019t work, pressing and holding the power button for 5 seconds will always work. It\u2019s a last resort because it cuts power to your system instantly and if it was writing to disk at the time \u2013 well, all bets are off on whether all your data is safe.<\/p>\n<p>So this had happened to me a handful of times over a few months. Yesterday, I was reading a web page in Safari when my screen suddenly went black and I had to force power off the Mac. After powering back up I expected everything to be normal again. But it wasn\u2019t. The fun was really beginning to happen.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2014\/NC_2014_06_01\/allister_imac_screen.png\" alt=\"Allister's screen super messed up\" style=\"margin: 5px;\"\/><\/p>\n<p>If you use desktop spaces on your Mac you may have noticed that as you slide between the spaces, there is a black bar between them. After the login screen \u2013 all normal \u2013 my desktop appeared. But it was partially scrolled across to the next space with that big black stripe about a quarter of the way in from the right of the physical screen. I wasn\u2019t touching anything! And the icons on the desktop and their text weren\u2019t looking right. They were all broken up into lines and flickering slightly. Gulp! I waited to see if this would right itself. Nope, it got worse. The screen went briefly black and then the desktop re-appeared. The view was now flipped left to right and had a whole lot of green bits flickering away madly over the entire desktop. I was reminded of those screensavers based on The Matrix movie. Clearly a forced reboot was required. Again.<\/p>\n<p>I decided updating my clone backup would be a good idea! I grabbed my clone backup drive, inserted it into my drive \u2018toaster\u2019 and launched Carbon Copy Cloner.  The app\u2019s icon bounced in the dock but no window appeared. Yikes! This was not good. Another keyboard shortcut \u2013 Command-Option-Escape to bring up the Force Quit window. Carbon Copy Cloner (Not responding). iTunes (Not Responding). Safari (Not responding). Airmail (Not responding). And more. Oh dear! Time to shut down again. And this time, stop those apps from launching, as one of them could be the problem. I managed to begin a normal shutdown and unticked the \u201cReopen windows when logging back in\u201d checkbox. It still took a forced reboot to get it back again.<\/p>\n<p>Powered up again with no apps running, I launched Carbon Copy Cloner and started an update of my clone. To give it the greatest chance, I touched nothing else while it was running. An hour later it reported a successful clone, at which time I ejected and unplugged the drive. If any kind of corruption was possible, I did not want the clone to be reachable.<\/p>\n<p>Now I was backed up (phew!) so what was ailing this machine? It seemed to be fine for the moment, so I decided to look in my Console logs. The Console app is in the Applications\/Utility folder and allows you to look at the system logs which can tell you all sorts of interesting information. By default it displays all messages and this is a good start point for troubleshooting. I began scrolling back through time and noted the highlighted BOOT_TIME entries which each mark the beginning of a boot process. I first concentrated on what happened during that crazy graphics time and noted lots of GPU errors and debug output. Clearly something wasn\u2019t right on the graphics front, but what about that first issue? By using the search field, I was quickly able to pinpoint all my boot starts for the day and then looked immediately prior to the first one. Nothing. No GPU errors, nothing from Safari or anything else. Was this a graphics problem or not?<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2014\/NC_2014_06_01\/allister_console.png\" alt=\"console log window from Allister\" style=\"margin: 5px;\"\/><\/p>\n<p>Some further rooting around in the logs brought up a few messages which implied that a screen had been unplugged. This is interesting because I have a MacBook Pro and no external monitor. The graphics were definitely taking centre stage. I followed up on some information in the NosillaCast Google+ community in response to a similar problem reported by Dorothy. The symptoms didn\u2019t seem like a good match, but I followed some of the recommended steps including an NVRAM reset and checking all my disks for errors. I also mentioned it to a friend online who asked \u201cIs it NVidia?\u201d It is. \u201cThey have a reputation for failing in Macs\u201d he said. Hmmm.<\/p>\n<p>I realised there was a simple test to see if the NVidia graphics card was the problem. I started a few simple apps \u2013 all remained fine \u2013 and then I started Photoshop. Its splash screen appeared and\u2026 my Mac was frozen solid. A forced reboot later, I employed another tool \u2013 Activity Monitor. Under Mavericks, in the Energy tab, it lists all the applications and shows whether they require the dedicated graphics card. Sure enough, with the system working, all said \u201cNo.\u201d<\/p>\n<p>Then I remembered a menu bar app I used to use called <a href=\"http:\/\/gfx.io\" target=\"_blank\">gfxCardStatus<\/a>  It has two functions. It will show you (in the menu bar) which graphics system is being used and it allows you to force OS X to only use one or the other. Could this be a workaround to my misbehaving graphics card?<\/p>\n<p>In short, yes. I downloaded, installed and ran the app and selected \u201cIntegrated Only.\u201d I held my breath and launched Photoshop. It worked! Nearly a day later my Mac has not frozen again. So long as the little \u2018i\u2019 for integrated stays in the menu bar, it appears I am safe.<\/p>\n<p>So is there anything to gain from this tale if your Mac is running fine? I think there is.<\/p>\n<p>You can familiarise yourself with some important keyboard shortcuts that let you (try to) get your Mac to do important stuff (like shut down) when you may not be able to see what\u2019s going on. Apple has a great list of these in a support document which is linked in the show notes.<\/p>\n<p>You can make sure you have a great backup process. Even though I have Time Machine running all of the time I didn\u2019t have a recent clone and that worried me when my system started going crazy. I recommend Carbon Copy Cloner or SuperDuper in conjunction with a drive \u2018toaster\u2019.<\/p>\n<p>You can take a look at the Activity Monitor app and see what information it shows you. It\u2019s quite useful for tracking down misbehaving apps and also for seeing what\u2019s going on at any given time.<\/p>\n<p>You can take a look at the Console app. A lot of the messages may seem like gibberish, but it\u2019s often possible to get a feel for the type of stuff that\u2019s happening. While troubleshooting my graphics, I discovered that Airmail had the wrong password for one of my email accounts. I also spotted a message from 1Password that included the words \u201cthis is a programmer error\u201d so I forwarded it on to them. If you use Time Machine, try entering \u201cbackupd\u201d in the search box. And if you\u2019re having trouble with a particular application, try entering its name in the search box (it\u2019s not case sensitive by the way).<\/p>\n<p>To conclude my tale, I am going to have to take my Mac in for servicing which means I will be without it for a week. At least it still has 6 months of AppleCare left.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Greetings fellow NosillaCastaways. Allister here from New Zealand again with a tale of trouble. First, the problem to be solved. How about being called out in the live chat room last week to provide some content? No? OK, how about you\u2019ve taken two weeks off work to get in some quality time with XCode and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[147],"tags":[],"class_list":["post-5060","post","type-post","status-publish","format-standard","hentry","category-blog-posts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/5060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=5060"}],"version-history":[{"count":2,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/5060\/revisions"}],"predecessor-version":[{"id":5063,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/5060\/revisions\/5063"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=5060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=5060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=5060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}