I have a 2020 macbookPro 64GB 16" . It shut down unexpectedly and I ran a log show command to find out the cause:
log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h
Filtering the log data using "composedMessage CONTAINS "Previous shutdown cause""
Timestamp Thread Type Activity PID TTL
2021-04-30 20:46:14.785443-0700 0xd8 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -11
--------------------------------------------------------------------------------------------------------------------
Log - Default: 1, Info: 0, Debug: 0, Error: 0, Fault: 0
Activity - Create: 0, Transition: 0, Actions: 0
The key of this is kernel: (AppleSMC) Previous shutdown cause: -11
From this page https://udcf.gla.ac.uk/~gwm1h/Error_Codes/Codes_0_to_-99.html the errror is:
qAllocErr from MakeITable
What would be a fix in case this were to start to recur?