panic(cpu 0 caller 0xffffff8007a91b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks

Thanks for filing an issue! Please answer the questions below so I can help you.

Detailed steps to reproduce the problem:

  1. Scenario : User uses iterm normally through the day on the mac. Then closes macbook lid at end of the day.
  2. Closes macbook pro lid end of the day.

What happened: Next morning. When user tries to login to the computer, it appears as though the system just booted up. Login takes far longer. Upon login, user is greeted with mac os message that computer was restarted due to a problem. Other applications or windows might have disappeared too and user needs to reload missing stuff.

This is a fairly consistent experience, whenever user forgets to quit iterm before having the macbook sleep for an extended time. The same issue never seems to happen if user uses only built-in terminal instead.

So far, haven't found settings to have iterm and macos co-exist, after closing the lid.

What should have happened: System should not have crashed when closing macbook lid with iterm running.