orbstack icon indicating copy to clipboard operation
orbstack copied to clipboard

Orb Critically crashes upon opening MacOS desktop client after attempted update to OrbStack 1.7.4

Open VeVarunSharma opened this issue 1 year ago • 12 comments

Describe the bug

Description

Whenever I open the the Orb macOS client, it immediately critically crashes with the following log output.

i've tried to force quit it numerous times using Activity Monitory on MacOS but it won't allow me to fully kill 🔪 orb.

App is in an unusable state on my machine.

Log:

🌲 vmgr | time="09-24 22:30:37" level=info msg="using proxy: none" 🌲 vmgr | time="09-24 22:30:37" level=info msg="forwarding SSH agent" sock=/private/tmp/com.apple.launchd.dSN8K6cZeT/Listeners 🌲 vmgr | time="09-24 22:30:37" level=info msg="starting VM" 🌲 vmgr | time="09-24 22:30:37" level=info msg="starting host services" 🌲 vmgr | time="09-24 22:30:37" level=info msg="reading user environment variables" 🌲 vmgr | time="09-24 22:30:37" level=info msg="opening GUI app" 🐧 system | [*] Booting OrbStack (+0ms) 🐧 system | - Kernel version: 6.10.11-orbstack-00280-g1304bd068592 🐧 system | [*] Network (+3ms) 🐧 system | [*] Apply system settings (+2ms) 🐧 system | [*] Late tasks (+0ms) 🐧 system | [*] Emulation 🐧 system | [*] Memory 🐧 system | thread '<unnamed>' panicked at src/startup.rs:1372:38: 🐧 system | called Result::unwrap()on anErrvalue: missing data partition: No such file or directory (os error 2) 🐧 system | 🐧 system | Caused by: 🐧 system | No such file or directory (os error 2) 🐧 system | note: run withRUST_BACKTRACE=1environment variable to display a backtrace 🐧 system | - Using Rosetta 👾 kernel | [ 0.193496] zram0: detected capacity change from 0 to 10883648 👾 kernel | [ 0.201301] Adding 5441820k swap on /dev/zram0. Priority:32767 extents:1 across:5441820k SSDsc 👾 kernel | [ 0.202571] Adding 1048572k swap on /dev/vdc. Priority:1 extents:1 across:1048572k SSDsc 🐧 system | thread 'main' panicked at src/startup.rs:1387:21: 🐧 system | calledResult::unwrap()on anErr` value: Any { .. } 👾 kernel | [ 0.214122] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00006500 👾 kernel | [ 0.214144] CPU: 0 PID: 1 Comm: vinit Not tainted 6.10.11-orbstack-00280-g1304bd068592 #21 👾 kernel | [ 0.214160] Hardware name: orbstack,virt (DT) 👾 kernel | [ 0.214169] Call trace: 👾 kernel | [ 0.214175] dump_backtrace+0x94/0xf0 👾 kernel | [ 0.214190] show_stack+0x1c/0x30 👾 kernel | [ 0.214202] dump_stack_lvl+0x48/0x88 👾 kernel | [ 0.214216] dump_stack+0x14/0x20 👾 kernel | [ 0.214231] panic+0x11c/0x2f0 👾 kernel | [ 0.214246] do_exit.cold+0x378/0x438 👾 kernel | [ 0.214258] do_group_exit+0x90/0xb8 👾 kernel | [ 0.214278] __arm64_sys_exit_group+0x1c/0x28 👾 kernel | [ 0.214294] do_el0_svc+0x70/0xd8 👾 kernel | [ 0.214305] el0_svc+0x24/0x50 👾 kernel | [ 0.214330] el0t_64_sync_handler+0x40/0xe8 👾 kernel | [ 0.214338] el0t_64_sync+0x14c/0x150 👾 kernel | [ 0.214353] SMP: stopping secondary CPUs 👾 kernel | [ 0.215068] Kernel Offset: 0x3b0bc1600000 from 0xffff800080000000 👾 kernel | [ 0.215088] PHYS_OFFSET: 0xffffc1ca40000000 👾 kernel | [ 0.215096] CPU features: 0x00,0000000a,00051528,030e7403 👾 kernel | [ 0.215105] Memory Limit: none [2m2024-09-25T02:30:37.412998Z[0m [32m INFO[0m [2mkrun::machine[0m[2m:[0m VM stopped 🌲 vmgr | time="09-24 22:30:37" level=info msg="[VM] stopped"

Check logs for more details.`

To Reproduce

  1. Attempted to install a new update
  2. After install a crash log had occurred
  3. Forced closed the app and re-opened it
  4. The follow error log is opened and cannot force quit the app

Expected behavior

The app should have successfully installed with the new update, and once updated, opening the app shouldn't critically crash it.

Diagnostic report (REQUIRED)

OrbStack info: Version: 1.7.4 Commit: e03df71b90121e11c379c6273bd0a63166b33957 (v1.7.4)

System info: macOS: 14.5 (23F79) CPU: arm64, 8 cores CPU model: Apple M3 Model: Mac15,13 Memory: 16 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-09-25T02-35-29.382286Z.zip

Screenshots and additional context (optional)

Screenshot

Log Screenshot

image

Cannot force quit via activity monitor

image

VeVarunSharma avatar Sep 25 '24 02:09 VeVarunSharma

For context, I restarted my machine, it still didn't work, so I nuked 💣 🤯 the install, I downloaded a FRESH install and got the same error as you can see here: image

VeVarunSharma avatar Sep 25 '24 02:09 VeVarunSharma

This means that your OrbStack data image is empty or filled with zeroes. It's usually caused by Migration Assistant.

Deleting ~/.orbstack/data should fix it at the cost of permanently losing all data in machines, images, volumes, and containers.

It's unlikely that this is related to the update, but you can try downgrading to see if it helps.

kdrag0n avatar Sep 25 '24 07:09 kdrag0n

I encountered the same error after upgrading to v1.7.4 on Apple silicon (Mac OS Sequoia). I tried restarting my computer, reinstalling OrbStack and deleting ~/.orbstack/data like @kdrag0n suggested but to no avail, the app immediately crashed upon starting. After downgrading to v1.7.0 the app is working normally.

asplunds avatar Sep 25 '24 08:09 asplunds

@asplunds Can you also try downgrading to v1.7.2?

kdrag0n avatar Sep 25 '24 10:09 kdrag0n

@asplunds Can you also try downgrading to v1.7.2?

I tried it and it's working fine.

asplunds avatar Sep 25 '24 10:09 asplunds

I was having this issue as well and after a downgrade and reboot, orbstack came back online without having to delete my data dir. CleanShot 2024-09-25 at 10 29 03@2x

danburkhol avatar Sep 25 '24 14:09 danburkhol

Can someone try this build and let me know whether it's fixed? https://cdn-updates.orbstack.dev/exp/OrbStack_v1.7.4-681-g054f3dc98_18129_arm64.dmg

kdrag0n avatar Sep 26 '24 05:09 kdrag0n

Still crashing, here's the crash report: https://pastebin.com/fAKy3iXL

asplunds avatar Sep 26 '24 07:09 asplunds

@asplunds That looks like a different issue. Can you restart the app and see if that helps? Or run orb start in a terminal and then orb report if it fails.

kdrag0n avatar Sep 26 '24 08:09 kdrag0n

I am facing the same issue, I even deleted ~/.orbstack but the issue persists. When I reverted to 1.7.2 it started working.

muke5hy avatar Sep 26 '24 16:09 muke5hy

Does your machine have any endpoint protection software? If so, what?

kdrag0n avatar Sep 27 '24 09:09 kdrag0n

It's my office laptop and I have no clue Which other software has been installed, but point is version 1.7.2 is working perfectly fine.

muke5hy avatar Sep 27 '24 13:09 muke5hy

@kdrag0n Thanks for addressing this error via the suggestions you made in https://github.com/orbstack/orbstack/issues/1461 🙏🏽

Hopefully something more automated or clear in the error can be used to better trouble shoot the error for other devs that run into this!

VeVarunSharma avatar Oct 09 '24 06:10 VeVarunSharma

I've the same problem after migration from MBP M1 to M4. Tried uninstall, delete .orgbstack, nothing helped. As addition I get the "OrbStack" want's access to Data from different Apps Dialog, which appears again and again even if I click allow / do not allow. Not even closing OrbStack helps, the dialogue remains until the next restart.

OrbStack info: Version: 1.9.2 Commit: f56c5adaa796a0902c648f038307ed8d434b0522 (v1.9.2)

System info: macOS: 15.2 (24C101) CPU: arm64, 16 cores CPU model: Apple M4 Max Model: Mac16,6 Memory: 64 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-12-19T09-16-35.693329Z.zip

tscheckenbach avatar Dec 19 '24 09:12 tscheckenbach

@tscheckenbach Please run orb reset instead. Data is no longer stored in ~/.orbstack.

kdrag0n avatar Dec 19 '24 10:12 kdrag0n