VMware Communities
adventia
Contributor
Contributor

Hibernate wake issue on MacOS

Hi,

I've been using Fusion successfully for over 10 years, however when I upgraded to Big Sur probably about a year ago, suddenly the mac would fail to wake from hibernation overnight and power up from cold.  I'd get the same crash info, about timeout after 180 seconds.  I've managed to find the pattern - powered on Win10 virtual machine gives this behaviour 100% of the time, a suspended or powered down one doesn't 100% of the time.  So it's to do with Fusion / Big Sur onwards (I upgraded to Monterey on the weekend and same behaviour).  I'm using Fusion 12.2.1 and the Mac is the 16" 2019 model.

Simple answer I know is to suspend every time I close the laptop but I'd rather not as it worked fine like that before.  From what I read this is a common issue on a mac, just not connected it to a Fusion install yet anywhere.  Does anyone have any experience of this and what they've managed to do to resolve it?  Crash report is below: 

panic(cpu 10 caller 0xffffff80064d4520): Sleep transition timed out after 180 seconds while creating hibernation file or while calling rootDomain's clients about upcoming rootDomain's state changes. Thread 0x9b994.

Backtracing specified thread

Panicked task 0xffffff9a33aff670: 331 threads: pid 0: kernel_task

Backtrace (CPU 10), panicked thread: 0xffffff9565a7d000, Frame : Return Address

0xffffffd0a5f53800 : 0xffffff8005de1d05

0xffffffd10f4d3880 : 0xffffff8005de19a4

0xffffffd10f4d3960 : 0xffffff8005dad065

0xffffffd10f4d3a10 : 0xffffff8005db3c28

0xffffffd10f4d3ac0 : 0xffffff8005d77e2a

0xffffffd10f4d3b30 : 0xffffff8005d77688

0xffffffd10f4d3b70 : 0xffffff8005cfa9ea

0xffffffd10f4d3b90 : 0xffffff8006410d3c

0xffffffd10f4d3e20 : 0xffffff80064dd0ca

0xffffffd10f4d3e50 : 0xffffff800643d139

0xffffffd10f4d3e70 : 0xffffff8005cd93a5

0xffffffd10f4d3ee0 : 0xffffff8005cda412

0xffffffd10f4d3fa0 : 0xffffff8005c2518e

 

Process name corresponding to current thread (0xffffff9565a7d000): kernel_task

Boot args: chunklist-security-epoch=0 -chunklist-no-rev2-dev

 

Mac OS version:

21D49

 

Kernel version:

Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64

Kernel UUID: 93729D02-FE6F-355B-BA76-BA930AA7103F

KernelCache slide: 0x0000000005a00000

KernelCache base:  0xffffff8005c00000

Kernel slide:      0x0000000005a10000

Kernel text base:  0xffffff8005c10000

__HIB  text base: 0xffffff8005b00000

System model name: MacBookPro16,1 (Mac-E1008331FDC96864)

System shutdown begun: NO

Hibernation exit count: 0

 

System uptime in nanoseconds: 49544437409229

Last Sleep:           absolute           base_tsc          base_nano

  Uptime  : 0x00002d0f7697b2f9

 Sleep   : 0x00002cd63cf04c48 0x00007b82a9a543f2 0x00002cca3e67183f

  Wake    : 0x00002cd6715a6104 0x00007ba35a2814b0 0x00002cd65073289e

Zone info:

Foreign   : 0xffffff801be6b000 - 0xffffff801be78000

Native    : 0xffffff809a26e000 - 0xffffffa09a26e000

Readonly  : 0xffffff8566f3a000 - 0xffffff87008ce000

Metadata  : 0xffffffd72d903000 - 0xffffffd74e0e8000

Bitmaps   : 0xffffffd74e0e8000 - 0xffffffd7660e8000

last started kext at 29798464056255: >AudioAUUC           1.70 (addr 0xffffff7f9eb1b000, size 12288)

last stopped kext at 9308912655129: @UVCService          1 (addr 0xffffff7f9ef67000, size 4096)

loaded kexts:

>AudioAUUC      1.70

@UVCService     1

>!AFWOHCI        5.7.4

>!UDisplays         380

|!ABCM5701Ethernet     11.0.0

@filesystems.smbfs        4.0

>AGPM 127

>X86PlatformShim           1.0.0

>!APlatformEnabler         2.7.0d0

@filesystems.autofs        3.0

@fileutil               20.036.15

>!AHIDALSService            1

>!ATopCaseHIDEventDriver          5020.1

@kext.AMDRadeonX6000            4.0.7

>!AUpstreamUserClient 3.6.8

@kext.AMDRadeonServiceManager         4.0.7

>!AGFXHDA        140.1

>!ABridgeAudio!C            200.8

>!A!IKBLGraphics              18.0.4

>!AGraphicsDevicePolicy               6.4.12

@AGDCPluginDisplayMetrics      6.4.12

>pmtelemetry   1

|IOUserEthernet               1.0.1

>usb.!UUserHCI 1

>!AHV   1

>!ADiskImages2 126.60.3

>!AMuxControl2               6.4.12

>AGDCBacklightControl 6.4.12

>!AMCCSControl               1.14

>!A!IPCHPMC     2.0.1

>!AThunderboltIP             4.0.3

>BridgeAudioCommunication     200.8

>!AAVEBridge    6.1

>!A!ICFLGraphicsFramebuffer     18.0.4

>!A!ISlowAdaptiveClocking           4.0.0

>BCMWLANFirmware4387.Hashstore     1

>BCMWLANFirmware4378.Hashstore     1

>BCMWLANFirmware4377.Hashstore     1

>BCMWLANFirmware4364.Hashstore     1

>BCMWLANFirmware4355.Hashstore     1

>!AFileSystemDriver        3.0.1

@filesystems.tmpfs         1

@filesystems.lifs               1

@filesystems.hfs.kext     582.60.2

@BootCache      40

@!AFSCompression.!AFSCompressionTypeZlib    1.0.0

@!AFSCompression.!AFSCompressionTypeDataless          1.0.0d1

@filesystems.apfs            1933.80.3

>!ABCMWLANBusInterfacePCIeMac         1

@Private.KextAudit         1.0

>!ASmartBatteryManager             161.0.0

>!AACPIButtons 6.1

>!ASMBIOS         2.1

>!AACPIEC           6.1

>!AAPIC                1.7

@!ASystemPolicy             2.0.0

@NKE.applicationfirewall              402

|IOKitRegistryCompatibility         1

|EndpointSecurity            1

@DonT_Steal_Mac_OS_X              7.0.0

@kec.!AEncryptedArchive            1

>!UAudio             414.7

|IOFireWire!F    4.8.3

>!UComposite   900.4.2

>usb.!UHub        1.2

>usb.!UEHCIPCI 1.2

>usb.!UEHCI       1.2

>!AThunderboltPCIUpAdapter    4.1.1

>driverkit.serial 6.0.0

@kext.triggers   1.0

>!AActuatorDriver            5430.21

>!AHIDKeyboard               228

>!AMultitouchDriver       5430.21

>!AInputDeviceSupport 5400.30

>!AHS!BDriver   5020.1

>IO!BHIDDriver 9.0.0

@kext.AMDRadeonX6100HWLibs             1.0

>!AAudioClockLibs           100.9.1

@kext.AMDRadeonX6000HWServices     4.0.7

|IOAudio!F          300.10

@vecLib.kext     1.2.0

>!A!ILpssUARTv1              3.0.60

>!A!ILpssUARTCommon 3.0.60

>!AOnboardSerial             1.0

@kext.AMDRadeonX6000Framebuffer   4.0.7

@kext.AMDSupport        4.0.7

|IO!BSerialManager        9.0.0

|IO!BPacketLogger          9.0.0

|IO!BHost!CUSBTransport            9.0.0

|IO!BHost!CUARTTransport         9.0.0

|IO!BHost!CTransport    9.0.0

>IO!BHost!CPCIeTransport           9.0.0

|IOAVB!F             1010.2

@PLUGIN.IOgPTPPlugin    1000.11

|IOEthernetAVB!C           1.1.0

|CSR!BHost!CUSBTransport         9.0.0

|Broadcom!BHost!CUSBTransport            9.0.0

|Broadcom!B20703USBTransport             9.0.0

>!AIPAppender  1.0

>!AGraphicsControl         6.4.12

>X86PlatformPlugin        1.0.0

>!ABacklightExpert          1.1.0

|IONDRVSupport              593

>!ASMBus!C       1.0.18d1

>IOPlatformPlugin!F        6.0.0d8

>!AThunderboltDPOutAdapter   8.5.1

|IOAccelerator!F2            462.4.1

@!AGPUWrangler            6.4.12

@!AGraphicsDeviceControl          6.4.12

|IOGraphics!F    593

|IOSlowAdaptiveClocking!F          1.0.0

>usb.IOUSBHostHIDDevice           1.2

>usb.cdc.ecm     5.0.0

>usb.cdc.ncm     5.0.0

>usb.cdc               5.0.0

>usb.networking               5.0.0

>usb.!UHostCompositeDevice     1.2

>!AThunderboltPCIDownAdapter              4.1.1

>!AThunderboltDPInAdapter       8.5.1

>!AThunderboltDPAdapter!F       8.5.1

>!AHPM               3.4.4

>!A!ILpssI2C!C   3.0.60

>!A!ILpssI2C        3.0.60

>!A!ILpssDmac   3.0.60

>!ABSDKextStarter           3

|IOSurface          302.11.1

@filesystems.hfs.encodings.kext               1

>!AXsanScheme 3

>!AThunderboltNHI         7.2.8

|IOThunderbolt!F             9.3.3

>usb.!UVHCIBCE               1.2

>usb.!UVHCICommonBCE             1.0

>usb.!UVHCI       1.2

>usb.!UVHCICommon     1.0

>!AEffaceableNOR           1.0

|IONVMe!F         2.1.0

|IOBufferCopy!C               1.1.0

|IOBufferCopyEngine!F  1

>!ABCMWLANCoreMac 1.0.0

|IOSerial!F          11

|IO80211!F         1200.12.2b1

|IOSkywalk!F      1.0

>mDNSOffloadUserClient              1.0.1b8

>IOImageLoader               1.0.0

>!AOLYHALMac 1

>corecapture     1.0.4

>usb.!UHostPacketFilter                1.0

|IOUSB!F             900.4.2

>usb.!UXHCIPCI 1.2

>usb.!UXHCI       1.2

>!AEFINVRAM    2.1

>!AEFIRuntime  2.1

>!ASMCRTC        1.0

|IOSMBus!F        1.1

|IOHID!F              2.0.0

|IOTimeSync!F  1000.11

|IONetworking!F              3.4

>DiskImages       493.0.0

|IO!B!F 9.0.0

|IOReport!F        47

$quarantine        4

$sandbox             300.0

@kext.!AMatch 1.0.0d1

|CoreAnalytics!F               1

>!ASSE  1.0

>!AKeyStore       2

>!UTDM               532.40.7

|IOUSBMass!SDriver       209.40.6

|IOSCSIBlockCommandsDevice   452.60.2

|IO!S!F  2.1

|IOSCSIArchitectureModel!F       452.60.2

>!AMobileFileIntegrity   1.0.5

$!AImage4          4.2.0

@kext.CoreTrust              1

>!AFDEKeyStore                28.30

>!AEffaceable!S 1.0

>!ACredentialManager   1.0

>KernelRelayHost             1

|IOUSBHost!F    1.2

>!UHostMergeProperties              1.2

>usb.!UCommon              1.0

>!ABusPower!C 1.0

>!ASEPManager 1.0.1

>IOSlaveProcessor           1

>!AACPIPlatform               6.1

>!ASMC 3.1.9

|IOPCI!F               2.9

|IOACPI!F            1.4

>watchdog          1

@kec.pthread    1

@kec.Libm          1

@kec.corecrypto              12.0

 

cheers

 

Alan

 

Reply
0 Kudos
5 Replies
ColoradoMarmot
Champion
Champion

This has been an issue on and off since 1.0.  Best practice is definitely to sleep guest before host.

But specifically on this - did you change the default behavior with pmset?  hibernate isn't normal behavior when the machine is plugged in.

Reply
0 Kudos
adventia
Contributor
Contributor

Thanks for this, but it was perfect up to Big Sur - never happened.  Now it's every time.  It's always on battery though which makes sense.  One workaround will be for me to extend hibernation timeout to more than 3 hours as it's usually overnight I get caught.  But would be better to fix the problem if possible than work around it ideally.

Reply
0 Kudos
ColoradoMarmot
Champion
Champion

It's been a while, but from what I remember there can be a race condition in the hibernate process - fusion has to suspend the guest, and then dump memory to disk at the same time the OS is trying to suspend and dump memory to disk.  You probably just hit that.  My suggestion is to restore the default OS functionality that just sleeps and doesn't hibernate.  As long as your battery doesn't run down and force the hibernate, you should (fingers crossed) be back to where you were.

Sleep on host sleep is one of those things that mostly, but not always, works.  Different configs have different outcomes.  Suspending the guest is the only option that always works.

Reply
0 Kudos
adventia
Contributor
Contributor

I've extended the hibernate to 24 hours, and after a few nights of trying, voila!  I think it's solved.  Won't solve for longer sleeps but it's rarely off over a day anyway, and battery doesn't seem to get drained much.  This is as near a fix as I'm going to find I think, thanks for your help!

Reply
0 Kudos
ColoradoMarmot
Champion
Champion

Looks like you'd won the race lottery - glad you have a fix :slightly_smiling_face:

Reply
0 Kudos