On my MacBook Pro running 10.13.6 and formatted with APFS, I'm periodically seeing an issue where the machine is frozen when I try to wake it up, and requires a hard reboot to use again.
After some research, I found that corrupt "dataless" local snapshots can cause issues with sleep/wake. When investigating using
> tmutil listlocalsnapshots
I am seeing things like
> MacBook-Pro:~ myaccount$ tmutil listlocalsnapshots / com.apple.TimeMachine.2018-08-02-172540 (dataless) com.apple.TimeMachine.2018-08-04-092555
So I've been deleting them successfully like this
> sudo tmutil deletelocalsnapshots 2018-08-02-172540
...and that will fix the problem for a while. But inevitably a few weeks later, I see the same issue again: frozen machine, hard restart, dataless local snapshot.
How do I stop my machine from producing corrupted local snapshots in the first place? Is this an issue with APFS?