orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
4.48k stars 31 forks source link

Unexpected behaviour when macBook has low/critical battery #1184

Open niallnsec opened 2 weeks ago

niallnsec commented 2 weeks ago

Describe the bug

There have been a few occasions when I have been working on my machine on battery and for one reason or another had the battery reach the last few percent. When that happens, I am assuming macOS does something to try and save power because the whole system slows down (as you would expect). The issue is that I have observed odd behaviour from Orbstack. The first thing that happens is I get a warning message from the system saying the Orbstack network volume disconnected unexpectedly. Once mains power is restored and the machine returns to normal speed, it seems Orbstack runs into an issue where any commands I try to run or containers I try to access just end up timing out.

Its not a big issue since it only happens if I let my machine get to a critical low battery state, and the fix has been to simply restart Orbstack to get things working again.

I thought it worth reporting though, because there is a noticeable performance impact for me until I restart Orbstack. All other processes on the system are sluggish and slow to respond.

I do have other things on my machine like LittleSnitch which may also affect things, so if the issue can't be reproduced then please just close this issue.

To Reproduce

No response

Expected behavior

No response

Diagnostic report (REQUIRED)

OrbStack info: Version: 1.6.0-rc1 Commit: 932a523a3e455516178ac5c35f345965de2138de (v1.6.0-rc1)

System info: macOS: 14.4.1 (23E224) CPU: arm64, 16 cores CPU model: Apple M3 Max Model: Mac15,9 Memory: 48 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-05-14T14-10-10.432506Z.zip

Screenshots and additional context (optional)

No response

kdrag0n commented 5 days ago

Hmm, can't reproduce. As expected, everything becomes incredibly slow and unresponsive when the battery level gets this low, but it all recovers once I charge it enough (including OrbStack).

sandrodz commented 4 days ago

I had somewhat similar issue with Orbstack network volume disconnected error. Which similarly resulted in containers timing out.

I had another issue though, my network disconnected and the only way to get machine back in working state was to restart it. Killing OrbStack didn't have any result.

I didn't have low battery, my Mac was plugged in.

I tried to look for logs in console and found few things, reporting them, maybe someone can figure it out:

image image image

WindowServer_2024-05-28-102954_Sandros-MacBook-Pro.userspace_watchdog_timeout.spin.zip