Open ej-github opened 1 year ago
why are you running a Mac OS 13.4 vm inside a Mac OS 13.4 host? Just curious as to what you are trying to achieve?
why are you running a Mac OS 13.4 vm inside a Mac OS 13.4 host? Just curious as to what you are trying to achieve?
I need to run a Cisco VPN that is pretty restrictive and don't want to install it directly on my laptop. Other than this issue and not being able to cut/paste into the VM it's been running great. Was hoping to avoid buying Parallels.
I have the same issue, running a macOS 14 guest in a 13.4 host.
UTM crashed and so did the VM, apparently.
Same problem here, 13.4 host, Mac OS 14 b1 VM. When it crashes it takes out all other running VMs, and does not release memory. After several crashes my computer has allocated 20GB of memory to VMs that are not running (As reported by Parallels Tools Memory Widget).
This is happening with non macOS guests as well - UTM 4.2.5 here on 13.4.1 Intel MBP, with Ubuntu 22.10 guest using Apple Virtualisation. The moment the back button is clicked on the mouse, UTM crashes (and the guest VM with it).
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process: exc handler [13256]
Application Specific Information:
assertion failed
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 Virtualization 0x7ffb09d5b7c5 Base::assertion_trap() + 49
1 Virtualization 0x7ffb09c898aa -[_VZScreenCoordinatePointerEvent initWithEvent:view:] + 442
2 Virtualization 0x7ffb09d094ed -[VZVirtualMachineView sendPointerEventToVirtualMachine:] + 253
3 Virtualization 0x7ffb09d0665a -[VZVirtualMachineView otherMouseDown:] + 90
4 AppKit 0x7ff809ff5ce5 forwardMethod + 315
5 AppKit 0x7ff80a7d396a _routeOtherMouseDownEvent + 267
6 AppKit 0x7ff809f73cfa -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 799
7 AppKit 0x7ff809f737bf -[NSWindow(NSEventRouting) sendEvent:] + 345
8 AppKit 0x7ff809f728c7 -[NSApplication(NSEvent) sendEvent:] + 2183
9 AppKit 0x7ff80a22cace -[NSApplication _handleEvent:] + 65
10 AppKit 0x7ff809e01b0d -[NSApplication run] + 623
11 AppKit 0x7ff809dd5d02 NSApplicationMain + 817
12 SwiftUI 0x7ff91115695b 0x7ff9110d2000 + 543067
13 SwiftUI 0x7ff912190bd4 0x7ff9110d2000 + 17558484
14 SwiftUI 0x7ff911aac22f 0x7ff9110d2000 + 10330671
15 UTM 0x1024c2552 0x102444000 + 517458
16 dyld 0x7ff80694841f start + 1903
Thread 1:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x7ff806c635b2 mach_msg2_trap + 10
1 libsystem_kernel.dylib 0x7ff806c7172d mach_msg2_internal + 78
2 libsystem_kernel.dylib 0x7ff806c6a5e4 mach_msg_overwrite + 692
3 libsystem_kernel.dylib 0x7ff806c6389a mach_msg + 19
4 SkyLight 0x7ff80b91a73c CGSSnarfAndDispatchDatagrams + 160
5 SkyLight 0x7ff80bc35665 SLSGetNextEventRecordInternal + 284
6 SkyLight 0x7ff80ba549fc SLEventCreateNextEvent + 9
7 HIToolbox 0x7ff810802ea9 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char, __CFMachPortBoost*) + 268
8 HIToolbox 0x7ff810802d6b MessageHandler(__CFMachPort*, void*, long, void*) + 48
9 CoreFoundation 0x7ff806dabde6 __CFMachPortPerform + 244
10 CoreFoundation 0x7ff806d7e463 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
11 CoreFoundation 0x7ff806d7e3a3 __CFRunLoopDoSource1 + 540
12 CoreFoundation 0x7ff806d7d021 __CFRunLoopRun + 2694
13 CoreFoundation 0x7ff806d7bf31 CFRunLoopRunSpecific + 560
14 AppKit 0x7ff809f70789 _NSEventThread + 132
15 libsystem_pthread.dylib 0x7ff806ca21d3 _pthread_start + 125
16 libsystem_pthread.dylib 0x7ff806c9dbd3 thread_start + 15
Thread 2:
0 libsystem_pthread.dylib 0x7ff806c9dbb0 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x7ff806c9dbb0 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007ff7bdabb2d8 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x000000001f08000c rbp: 0x00007ff7bdabb300 rsp: 0x00007ff7bdabb2d0
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000032 r11: 0x0000000000000202
r12: 0x00007fed91fe1df0 r13: 0x0000000000000000 r14: 0x00007ffb09d73dd2 r15: 0x0000600001bf5f60
rip: 0x00007ffb09d5b7c5 rfl: 0x0000000000010206 cr2: 0x0000000110401000
Logical CPU: 2
Error Code: 0x00000000
Trap Number: 6
Thread 0 instruction stream:
00 eb 03 48 89 c3 f6 45-d8 01 74 09 48 8b 7d e8 ...H...E..t.H.}.
e8 4a 05 00 00 48 89 df-e8 aa 03 00 00 66 66 66 .J...H.......fff
66 66 2e 0f 1f 84 00 00-00 00 00 90 90 90 90 55 ff.............U
48 89 e5 41 56 53 48 83-ec 20 4c 8d 35 2c 86 01 H..AVSH.. L.5,..
00 48 8d 5d d8 48 89 df-4c 89 f6 e8 6b e9 f3 ff .H.].H..L...k...
48 89 df e8 5f 04 00 00-4c 89 f7 e8 65 05 00 00 H..._...L...e...
[0f]0b 55 48 89 e5 53 48-83 ec 18 48 89 fb 48 8b ..UH..SH...H..H. <==
3d 36 93 5d 3d be 10 00-00 00 e8 16 08 00 00 84 =6.]=...........
c0 74 43 f6 03 01 74 06-48 8b 43 10 eb 04 48 8d .tC...t.H.C...H.
43 01 4c 8d 45 e0 41 c7-00 02 01 20 08 49 89 40 C.L.E.A.... .I.@
04 48 8d 3d f3 b7 f2 ff-48 8b 35 fc 92 5d 3d 48 .H.=....H.5..]=H
8d 0d 70 9a 01 00 ba 10-00 00 00 41 b9 0c 00 00 ..p........A....
The same issue is also happening for me when using macOS vms in parallels which use the Apple virtualization framework. It does not happen for windows or linux virtual machines in parallels because those do not use the Virtualization framework.
Same here. Happens in both MacOS VM and Windows VM on M2.
I just installed Parallels and tried the back button in a VM there. Exactly same behaviour as in UTM.
Same here with MacOS vm, Ubuntu vm and Windows vm.
Upgraded via Homebrew today and am now experiencing this issue since going above 4.3.X. VM using Apple Virtualization running Ubuntu 23.04. For me it occurs when I click the forward button on my Logitech MX Ergo trackball (re-mapped to OS X Mission Control). Version information:
brew info utm ==> utm: 4.3.4 https://getutm.app/ /usr/local/Caskroom/utm/4.3.4 (117B) From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/utm.rb ==> Name UTM ==> Description Virtual machines UI using QEMU ==> Artifacts UTM.app (App) /Applications/UTM.app/Contents/MacOS/utmctl (Binary) ==> Analytics install: 1,676 (30 days), 6,413 (90 days), 9,725 (365 days)
Downgraded back to 4.2.5 and it's working fine https://github.com/Homebrew/homebrew-cask/blob/edface9e1fe33deb591e37b7662d5e75dc319bce/Casks/utm.rb
Apple fixed this in the latest macOS 14 beta. However I think you can workaround it by unchecking Trackpad https://docs.getutm.app/settings-apple/virtualization/#macos-13-trackpad
Thanks, but the workaround doesn't work. I had trackpad disabled already (in 4.2.5 I tried to enable it but it wouldn't stay checked).
Yeah, I just tried it too. FWIW, it's also broken for me in 4.2.5 so idk how it is working for you.
Coincidentally, although it's been working fine today through several hours of heavy use, 4.2.5 also just crashed on me after using the forward button on my trackball.
It's weird that it took so long though, 4.2.5 definitely seems more resilient in my case.
I don't think so. It's a bug Apple recently introduced in macOS 12 and has nothing to do with UTM. It will consistently crash every time you press mouse button > 3. Parallels suffers from it too.
Logitech Options has an option to configure buttons per-app. I have set the function of all the extra mouse buttons to 'None' for UTM. Testing with UTM 4.3.4 atm and so far it seems to work.
Not ideal but I guess that's my workaround for now until Sonoma is released.
I tested the issue with macOS Ventura 13.5 as both the host and guest OS on an M1 Mac mini running UTM 4.3.5 (87).
```
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: UTM [5711]
Path: /Users/USER/*/UTM.app/Contents/MacOS/UTM
Identifier: com.utmapp.UTM
Version: 4.3.5 (87)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 502
Date/Time: 2023-08-04 22:15:54.7473 -0700
OS Version: macOS 13.5 (22G74)
Report Version: 12
Anonymous UUID: 074BA196-9FD9-1DC1-7012-457E9B934EBF
Sleep/Wake UUID: AFDCE15A-1AB1-456C-8EEE-1F9C6CC3446A
Time Awake Since Boot: 8600 seconds
Time Since Wake: 1547 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000020ae7d100
Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process: exc handler [5711]
Application Specific Information:
assertion failed
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 Virtualization 0x20ae7d100 Base::assertion_trap() + 56
1 Virtualization 0x20ad961f8 -[_VZScreenCoordinatePointerEvent initWithEvent:view:] + 380
2 Virtualization 0x20ae1d910 -[VZVirtualMachineView sendPointerEventToVirtualMachine:] + 216
3 Virtualization 0x20ae1e104 -[VZVirtualMachineView otherMouseDown:] + 108
4 AppKit 0x1a321c610 forwardMethod + 252
5 AppKit 0x1a38cadb0 _routeOtherMouseDownEvent + 248
6 AppKit 0x1a31acc84 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 708
7 AppKit 0x1a31ac7ec -[NSWindow(NSEventRouting) sendEvent:] + 284
8 AppKit 0x1a31abb30 -[NSApplication(NSEvent) sendEvent:] + 1556
9 AppKit 0x1a33fbc48 -[NSApplication _handleEvent:] + 60
10 AppKit 0x1a3072fa0 -[NSApplication run] + 500
11 AppKit 0x1a304a3cc NSApplicationMain + 880
12 SwiftUI 0x1c816f5ec 0x1c80d2000 + 644588
13 SwiftUI 0x1c92d455c 0x1c80d2000 + 18883932
14 SwiftUI 0x1c8b51e8c 0x1c80d2000 + 11009676
15 UTM 0x1044ad06c 0x10449c000 + 69740
16 dyld 0x19fa23f28 start + 2236
Thread 1:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x19fd3bf54 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x19fd4e280 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x19fd44bb8 mach_msg_overwrite + 604
3 libsystem_kernel.dylib 0x19fd3c2d0 mach_msg + 24
4 SkyLight 0x1a4a6f714 CGSSnarfAndDispatchDatagrams + 160
5 SkyLight 0x1a4dad4d8 SLSGetNextEventRecordInternal + 344
6 SkyLight 0x1a4ba5dc8 SLEventCreateNextEvent + 16
7 HIToolbox 0x1a96b6364 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char, __CFMachPortBoost*) + 60
8 HIToolbox 0x1a96b62ec MessageHandler(__CFMachPort*, void*, long, void*) + 60
9 CoreFoundation 0x19fe8a254 __CFMachPortPerform + 248
10 CoreFoundation 0x19fe5abcc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
11 CoreFoundation 0x19fe5aaec __CFRunLoopDoSource1 + 520
12 CoreFoundation 0x19fe594cc __CFRunLoopRun + 2240
13 CoreFoundation 0x19fe584b8 CFRunLoopRunSpecific + 612
14 AppKit 0x1a31a9f54 _NSEventThread + 172
15 libsystem_pthread.dylib 0x19fd7bfa8 _pthread_start + 148
16 libsystem_pthread.dylib 0x19fd76da0 thread_start + 8
Thread 2:
0 libsystem_pthread.dylib 0x19fd76d8c start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x19fd76d8c start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x19fd76d8c start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x19fd76d8c start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x19fd76d8c start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x19fd76d8c start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0929e7d9a2880018 x9: 0x0929e7d9a2880018 x10: 0x0000000000000017 x11: 0x0000000000000001
x12: 0x000000016b963112 x13: 0x0000000000000000 x14: 0x0000000104c7e50f x15: 0x00000001fae18d80
x16: 0xfffffffffffffff4 x17: 0x00000001ff923ef8 x18: 0x0000000000000000 x19: 0x000000020ae9b6cf
x20: 0x000000010ef5d290 x21: 0x0000600001649060 x22: 0x00000001ef7529de x23: 0x000000010ef1cad0
x24: 0x000000023a4e6000 x25: 0x0000000000000102 x26: 0x00000001f8591000 x27: 0x0000000000000104
x28: 0x000000002bd80025 fp: 0x000000016b963340 lr: 0xa71600020ae7d100
sp: 0x000000016b963310 pc: 0x000000020ae7d100 cpsr: 0x60001000
far: 0x000000010f624000 esr: 0xf2000001 (Breakpoint) brk 1
Binary Images:
0x10449c000 - 0x104b87fff com.utmapp.UTM (4.3.5) <249226f0-772b-3f0d-b7ab-7cc1c2cc0b1b> /Users/USER/*/UTM.app/Contents/MacOS/UTM
0x104d70000 - 0x104d7bfff com.utmapp.usbredirhost.1 (1.0) <4c8dd746-418d-3555-b0cf-477540c237f1> /Users/USER/*/UTM.app/Contents/Frameworks/usbredirhost.1.framework/Versions/A/usbredirhost.1
0x104d8c000 - 0x104d93fff com.utmapp.usbredirparser.1 (1.0)
Issue still present on current beta 4.4.0 (88). Using macOS 13.5.1 as both host and VM on an M1 MacBook Pro
Yes this problem will happen on macos 13 “forever” because apple only updates the framework on new macos versions
Temporary fix:
Describe the issue
When pressing the back button on a mouse, or trackball, while working in a MacOS VM, UTM crashes. The MacOS VM is also 13.4. Crash also happened on 13.3. The trackball is a Kensington Trackball connected to a CalDigit dock and the mouse is a logitech wireless connected to usb dongle for receiver on laptop.
Configuration
Crash log
utm-crash-log.txt
If the app crashed, you need a crash log. To get your crash log, open Console.app, go to
Crash Reports
, and find the latest entry for either UTM, QEMU, QEMUHelper, or qemu-*. Right click and chooseReveal in Finder
. Attach the report here.