Mid 2014 MacBook Pro randomly shutting down

So I have been having a problem for a while now with my MacBook Pro randomly shutting down, and I was never able to figure out the cause but tried a few things like resetting the SMC and running the built-in diagnostics tool which didn't show any problems. Recently I tried searching again online for solutions and came across a site which said to run this command in the terminal to see what caused any shutdowns in the last 24hrs. The command I used was


log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24hr


and these were the results


2020-11-24 11:58:52.793456-0800 0xb1 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -128



2020-11-24 15:18:20.792002-0800 0xb1 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -128



2020-11-24 21:53:07.823758-0800 0xb2 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -104


According to the codes -128 is unknown but might be linked to the memory and code -104 might have to do with the battery.


So does anyone have any ideas on what could be causing the issue based on the info above? The problem seems to happen randomly but sometimes seems to be more likely to happen when running an intensive program like Adobe After Effects however it has happened when just browsing the web or even in sleep mode with the screen off. Furthermore, it doesn't seem to matter what the temp of the computer is as sometimes when it shuts off it doesn't feel that warm on the bottom.


Also, I am reading on some models that the memory is soldered onto the motherboard and can't be replaced. Is this the case with a mid 2014 model?


Finally, let me know what other info you need


Thanks.

Posted on Nov 26, 2020 12:32 AM

Reply

Similar questions

13 replies

Nov 27, 2020 9:19 AM in response to B747Man

B747Man wrote:


Thanks again for the help. I uninstalled Avast like you suggested. Also, I Just did a complete backup for the first time using time machine the other day but have most of the important stuff which isn't much, backed up to Dropbox already and also use iCloud to back up my notes.

Dropbox & iCloud are not backups, but cloud file syncing services.

Do you know why there would be so many snapshots since from what I read they would normally only be saved for 24hrs?

No idea unless it has something to do with Dropbox or iCloud.


Also, you don't mention finding anything that might be the cause but from the last part about making sure I have frequent backups that you might think it has something to do with the SSD. Is this correct?

Anti-virus software has been implicated in causing all sorts of problems with macOS so just Avast itself could have been the cause. Having 126 APFS snapshots should not have happened so it could possibly have contributed in some manner. If you still have issues, then try reinstalling macOS overtop of itself. If that still doesn't work, then perform a clean install. Sometimes you never find out what caused an issue.


Backups are extremely important if you have any important data that you don't want to lose. You should always have frequent & regular backups.


Nov 26, 2020 12:03 PM in response to HWTech

Thanks for the help. I ran the Apple Diagnostics like you said but it didn't show any errors.


Also, I ran the first Aid tool in the disk utility and here is the report. I deleted the parts where it said checking snapshots but there were 126 of them


Verifying file system.

Volume could not be unmounted.

Using live mode.

Performing fsck_apfs -n -l -x /dev/rdisk2s1

Checking volume.

Checking the container superblock.

Checking the EFI jumpstart record.

Checking the space manager.

Checking the object map.

Checking the APFS volume superblock.

Checking the object map.

Checking the fsroot tree.

Checking the snapshot metadata tree.

Checking the extent ref tree.

Checking the snapshots.

Verifying allocated space.

The volume /dev/rdisk2s1 appears to be OK.

File system check exit code is 0.

Restoring the original state found as mounted.

Operation successful.


Finally, this is the report from EtreCheck which I have run before and didn't show any major problems




Nov 26, 2020 11:38 PM in response to HWTech


Thanks again for the help. I uninstalled Avast like you suggested. Also, I Just did a complete backup for the first time using time machine the other day but have most of the important stuff which isn't much, backed up to Dropbox already and also use iCloud to back up my notes.


Do you know why there would be so many snapshots since from what I read they would normally only be saved for 24hrs?


Also, you don't mention finding anything that might be the cause but from the last part about making sure I have frequent backups that you might think it has something to do with the SSD. Is this correct?




Nov 27, 2020 11:03 PM in response to HWTech

So I followed the directions in the link you posted to delete the snapshots and it looked like it did something, however I don't know if actually deleted anything. From what I was reading online, usually when have a lot of snapshots and delete them it will free up some space on the HD but I didn't notice that I had any more space. Also, I just noticed that system storage is taking up over 90GB of space and was reading that it could be caused by having to many snapshots.


Do you think this could be related?


Thanks

Nov 28, 2020 8:17 AM in response to B747Man

B747Man wrote:

So I followed the directions in the link you posted to delete the snapshots and it looked like it did something, however I don't know if actually deleted anything. From what I was reading online, usually when have a lot of snapshots and delete them it will free up some space on the HD but I didn't notice that I had any more space. Also, I just noticed that system storage is taking up over 90GB of space and was reading that it could be caused by having to many snapshots.


Try deleting the snapshots by following the instructions in this Apple article:

https://support.apple.com/en-us/HT204015


If you want to delete local snapshots manually, turn off Time Machine temporarily:

  1. Open Time Machine preferences from the Time Machine menu  in the menu bar. Or choose Apple menu  > System Preferences, then click Time Machine.
  2. Deselect ”Back Up Automatically” or click the Off/On switch, depending on what you see in Time Machine preferences.
  3. Wait a few minutes to allow the local snapshots to be deleted. Then turn on Time Machine again. It remembers your backup disks.


Nov 29, 2020 12:58 PM in response to elcpu

It may take macOS some time to finish processing the deleting of the snapshots. Unfortunately the Storage Management part of macOS is not accurate.


Thanks I'm pretty sure it showed it completed deleting all the snapshots. Either way I ran first aid again and this time it didn't show any snapshots in the details section. So maybe your right in that it is not showing an accurate number


Nov 29, 2020 12:56 PM in response to elcpu


If you want to delete local snapshots manually, turn off Time Machine temporarily:

1. Open Time Machine preferences from the Time Machine menu  in the menu bar. Or choose Apple menu  > System Preferences, then click Time Machine.
2.Deselect ”Back Up Automatically” or click the Off/On switch, depending on what you see in Time Machine preferences.
3.Wait a few minutes to allow the local snapshots to be deleted. Then turn on Time Machine again. It remembers your backup disks.


I will give this a try thanks.

Nov 29, 2020 2:07 PM in response to B747Man

B747Man wrote:

It may take macOS some time to finish processing the deleting of the snapshots. Unfortunately the Storage Management part of macOS is not accurate.

Thanks I'm pretty sure it showed it completed deleting all the snapshots. Either way I ran first aid again and this time it didn't show any snapshots in the details section. So maybe your right in that it is not showing an accurate number


You responded to me but the comments about the storage not been accurate were made by HWTech, not me. My own Storage seems to be accurate, about 15GBs for the System. I have no snapshots as I use Time Machine on demand to an external drive.

Nov 29, 2020 11:17 PM in response to elcpu


elcpu wrote:

You responded to me but the comments about the storage not been accurate were made by HWTech, not me. My own Storage seems to be accurate, about 15GBs for the System. I have no snapshots as I use Time Machine on demand to an external drive.



Sorry don't know what happened but I guess I hit reply to the wrong person. Anyway not sure if this is normal but something weird is happening when I check my storage. When I opened the storage window just now, it showed the system was using 99GB of storage. Then after about 30 seconds or so it showed it was using133GB. I deleted a couple of files which were around 12GB in total from my desktop and downloads folders. After doing this it showed it was using 88GB of space. Then without me doing anything it went back up to 99GB after 30 seconds or so.


Any ideas why it might be varying so much? I can understand it takes a few to fully calculate the total when I first open it, but I don't understand why it would go down so much after deleting just a few things and then jump back up without touching anything?


Thanks

Nov 26, 2020 4:47 PM in response to B747Man

Uninstall Avast by following the developer's instructions. Anti-virus is not needed on a Mac and it usually causes more problems than it solves plus it impacts system performance.


If there are 126 snapshots, then that is also a problem. Use this Apple article to delete those APFS snapshots:

https://derflounder.wordpress.com/2018/04/07/reclaiming-drive-space-by-thinning-apple-file-system-snapshot-backups/


Make sure to have frequent & regular backups. It is impossible to recover accidentally deleted data from an SSD plus an SSD can fail at any time without any warning signs.

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.

Mid 2014 MacBook Pro randomly shutting down

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