Help! Updated to macOS 10.12.4, MBP randomly shuts off

Discussion in 'macOS Sierra (10.12)' started by mokhan23, Mar 30, 2017.

  1. adrianlondon macrumors 65816

    adrianlondon

    Joined:
    Nov 28, 2013
    Location:
    Switzerland
    #26
    Not sure if my symptoms were the same, but this is what I had a month or so ago (I'm currently on a beta of 10.12.5 and it's not happened again recently) but my screen would turn off / go blank and it sounded like the fans were on. Couldn't do anything for up to half a minute or so after which I could turn it back on again.

    Turned out it was going into hibernation as it thought the battery was empty. I did an SMC and NVRAM reset which seemed to fix the issue.
     
  2. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #27
    Hi Jerry,

    Create a new partition on your internal hard drive. Load a clean copy of 10.12.4 to the new partition and leave it that way, don't reload anything from your primary partition. Boot to the new partition and use it for awhile clean. See if the issue happens. When you are done simply delete the new partition and reboot back to your primary partition. This will give you a sanity check.
     
  3. SalukiTD macrumors newbie

    SalukiTD

    Joined:
    May 3, 2017
    #28


    Hi there Jerry008,

    I am having exactly the same thing you have/had...been to the "Genius Bar" 3 times...no help. I would like to try what you've done ie, running the while do done thing. I consider myself fairly skilled in computers, but scripting and code are outside of my skill set.

    Thanks in advance for any help,

    Pat
     
  4. jerry008 macrumors newbie

    Joined:
    Apr 7, 2017
    #29
    Just open Terminal app, write `while do done` (without quotes) and press Enter. If you've done it correctly, nothing will seemingly happen, but if you check Activity Monitor, there should be a process called `bash` utilizing about 99.5% of your CPU.

    Btw, I'm running Sierra now and experiencing the same issues. I still haven't tried to install macOS on a clean partition as Taz Mangus has suggested, but it's a great idea and will do that as soon as I have some free time.
     
  5. SalukiTD macrumors newbie

    SalukiTD

    Joined:
    May 3, 2017
    #30

    Thanks Jerry! When I run the command...both copy/paste and directly type in the command I get an error...see image...

    [​IMG][/IMG] Screenshot 2017-05-21 11.36.16.png

    Thanks for any suggestions!

    Pat
     
  6. jerry008 macrumors newbie

    Joined:
    Apr 7, 2017
    #31
    Ooops, sorry, I was using a different terminal. You should be able to use `while true ; do continue ; done` in your case.
     

    Attached Files:

  7. SalukiTD macrumors newbie

    SalukiTD

    Joined:
    May 3, 2017
    #32
    Beautiful! Thanks again. Just cause I'm a nerd...what is this doing specifically? Will this slow down other apps? Make the computer run hot? Thanks again Jerry, I appreciate your kind assistance!

    Pat
     
  8. jerry008 macrumors newbie

    Joined:
    Apr 7, 2017
    #33
    This will utilize 100% of one of your CPU cores. You should have around 4-8 of them, so you should not feel any difference in speed most of the time. However, it will make your laptop significantly hotter and also drain your battery much faster.

    If you want to kill it, you can kill it in Activity Monitor. Also don't forget to run it every time you reboot your computer.

    Just to be clear, this is not a long term solution, this is just to validate whether utilizing CPU somehow helps prevent random shut downs.
     
  9. SalukiTD macrumors newbie

    SalukiTD

    Joined:
    May 3, 2017
    #34
    Thanks! Makes perfect sense. I have a new machine coming tomorrow, but I was hoping to use this guy as a backup machine!

    Pat
     
  10. dsemf macrumors 6502

    Joined:
    Jul 26, 2014
    #35
    Here is a low cpu usage version:
    Code:
    while :; do sleep 1; done
    I am assuming that the once a second is adequate to prevent the problem.

    Use control-c to stop it.

    DS
     
  11. jerry008 macrumors newbie

    Joined:
    Apr 7, 2017
    #36
    Actually once a second is not adequate. I've tried to go as low as 0.000001 second wait and still experienced an occasional shut down (even though not as common).

    Have you had a chance to try this?
     
  12. lanzan macrumors newbie

    Joined:
    Jun 13, 2017
    #37
    Same issue but began less than an hour after updating to 10.12.5. Went to Genius, they think it is hardware and want to make me pay out of warranty flat rate to fix for $550!

    Y'all have been quite of late, have any of you found a solution?
     
  13. jerry008 macrumors newbie

    Joined:
    Apr 7, 2017
    #38
    No solution found, but... I found out that running this Python script utilizing only about 14% of CPU is sufficient to prevent shutdowns:

    Code:
    from time import sleep
    
    while True:
        sleep(0.00002)
    
    Honestly, I have no idea. I feel stupid just for suggesting it, but... If I'm running this... My machine does not shut down anymore.
     
  14. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #39
    Have you tried a clean install of 10.12.5 as a sanity check as I suggested previously?
     
  15. jerry008 macrumors newbie

    Joined:
    Apr 7, 2017
    #40
    Sorry, haven't had time to do this. But I keep it back in my mind, still planning to do it once I find a couple of hours of free time.
     
  16. kmuldner macrumors newbie

    kmuldner

    Joined:
    Jun 24, 2017
    #41
    I have exactly the same problem (random shutdowns). Genius bar no help (no issue found by them). Clean reinstall no help / Clean wipe of everything no help. Resetting of PRAM/ any other possible thing no help. But running the script prevents shutdowns (has so far for the last month). Thank you - and WHY???????
     
  17. chrisdelambert macrumors newbie

    chrisdelambert

    Joined:
    Jul 10, 2017
    Location:
    Berlin
    #42
    I almost bought a brand new MacBook Pro because of this random shutdown issue after upgrading to 10.12.5! It has been driving me crazy - I did a fresh install and it still crashes - it is definitely an issue with Sierra. Anyway for me also this python script / or 10 hour youtube video works fine. I just need to remember to run one before I start working. I really hope Apple fixes this.

    BTW - does anyone have a quick way to run a python script at startup?
     
  18. smorhaim macrumors newbie

    smorhaim

    Joined:
    Jul 17, 2017
    #43
    This makes no sense!!!!!!!!!! The CPU thing fixed my crashing issues!!!

    15" MBP Mid-2014, randomly crashing sometimes 2 minutes after boot, sometimes never in 12 hours... I have been rebooting 10-20 times a day... even in safe mode.. Apple bar couldn't find a thing... kept it for 2 days... nothing..

    Then I ran into this forum and saw this about maxing the CPU.... PROBLEM FIXED.

    Of course it didn't crash while at Apple... they maxed out the CPU to stress test it..

    I simply did this on the terminal:

    yes > /dev/null

    Maxing out 1 core.... Computer hasn't crashed in over an hour... right before doing this it was crashing every 60 seconds.

    Now the real questions is... WTF is going on ?

    Of course I already rested everything, reinstalled.3 times, formatted HD using filling 0's, didn't restore Timemachine, tried different versions.. etc etc. nothing helped.. except this!!!!!!!!!!!!

    Can anyone help???????? I just spent $2000 on another MBP on eBay this morning since I couldn't work...... So now I need to sell this one, but want to sell it in working condition!!!!!!!!!!!

    Help!!!!!
     
  19. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #44
    Find the crash log and post here in a quoted block. I understand you are frustrated but sometimes tracking an issue like you have can be tricky because it is intermittent and not quick to reproduce. By any chance do you have anything plugged into the ports on the computer when it crashes?

    Another suggestion is to give AppleCare a call. Speak with a senior advisor. Sometimes that can get you results.
     
  20. chrisdelambert macrumors newbie

    chrisdelambert

    Joined:
    Jul 10, 2017
    Location:
    Berlin
    #45
    Well I have been about 5 days now with no crashes thanks to an automator script I am running at login. No crashes. It uses one thread, at 12% CPU. As long as it is running my computer won't crash. If I kill that process though, it crashes. So weird, but it works for now. Maybe Apple will identify and fix in the next version of macOS...
     
  21. Weylin macrumors newbie

    Joined:
    Apr 19, 2017
    #46
    macOS Sierra 10.12.6 just came out a few days ago. Has anyone tried this new version (without the shell or python scripts)?
     
  22. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #47
    When say you did a fresh install, did you migrate any data over from Time Machine after the install? Or are you using a absolutely clean install?
     
  23. chrisdelambert macrumors newbie

    chrisdelambert

    Joined:
    Jul 10, 2017
    Location:
    Berlin
    #48
    Fresh install - Absolutely clean install and no restored data. With no extra installed applications other than VS code, it still crashed.
    --- Post Merged, Jul 24, 2017 ---
    BTW since I am running a small script I have not had one crash. Has been a couple of weeks now.
     
  24. jackbrucesimpson macrumors newbie

    jackbrucesimpson

    Joined:
    Aug 14, 2017
    #49
    This exact issue started for me the very same day I updated to 10.12.6 - never had the problem before. Computer does not randomly shut off if I use an ethernet cable, but it will frequently shut down whilst using wifi.
     
  25. chrisdelambert macrumors newbie

    chrisdelambert

    Joined:
    Jul 10, 2017
    Location:
    Berlin
    #50
    Good to know, I haven't bothered updating to the latest I will wait for the new macOS and see if that fixes it. Out of interest are you running a Macbook Pro 15inch late 2013?
     

Share This Page