Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when starting a VM with its window still open after it has shut down #2622

Closed
conath opened this issue Jun 17, 2021 · 6 comments
Closed
Labels
crash Application crashes macOS macOS issues
Milestone

Comments

@conath
Copy link
Contributor

conath commented Jun 17, 2021

UTM crashed when I had just shut down a VM using the power button in the toolbar. Then I clicked the play button it crashed. The same happened twice, once with the large play button and once with the one in the toolbar.

This VM config is special because it uses custom EFI and EFI Vars images to retain a 1280x720 resolution across reboots. This might be a factor here because the crash seems to be related to the VM window resizing.

Configuration

  • UTM Version: 2.1.2 (31)
  • OS Version: 11.3.1 (20E241)
  • Intel or Apple Silicon? Intel

Crash log

Process:               UTM [34086]
Path:                  /Applications/UTM-new.app/Contents/MacOS/UTM
Identifier:            com.utmapp.UTM
Version:               2.1.2 (31)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           UTM [34086]
User ID:               501

Date/Time:             2021-06-17 10:53:25.884 +0200
OS Version:            macOS 11.3.1 (20E241)
Report Version:        12
Bridge OS Version:     5.3 (18P4556)
Anonymous UUID:        3BB14DA2-2689-BDD3-6F43-286058B7D17D


Time Awake Since Boot: 340000 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot remove an observer <_TtCC10Foundation21NSKeyValueObservationP33_6DA0945A07226B3278459E9368612FF46Helper 0x60000ce12840> for the key path "vmDisplay.displaySize" from <UTM.VMDisplayMetalWindowController 0x7fee1c4c20c0>, most likely because the value for the key "vmDisplay" has changed without an appropriate KVO notification being sent. Check the KVO-compliance of the UTM.VMDisplayMetalWindowController class.'
terminating with uncaught exception of type NSException
abort() called

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff2054c98b __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007fff20284d92 objc_exception_throw + 48
2   Foundation                          0x00007fff2127f6fc -[NSKeyValueNestedProperty object:didRemoveObservance:recurse:] + 696
3   Foundation                          0x00007fff2124eef3 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 248
4   Foundation                          0x00007fff2124edb0 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 74
5   Foundation                          0x00007fff2124ea8d -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 190
6   libswiftFoundation.dylib            0x00007fff3047d54c $s10Foundation21NSKeyValueObservationC6Helper33_6DA0945A07226B3278459E9368612FF4LLC10invalidateyyF + 156
7   libswiftFoundation.dylib            0x00007fff3047d958 $s10Foundation21NSKeyValueObservationCfDTo + 56
8   UTM                                 0x0000000108fb2963 $s3UTM30VMDisplayMetalWindowControllerC19displaySizeObserver33_20252E2C589844CFAC1742453D63B8DDLL10Foundation21NSKeyValueObservationCSgvs + 147
9   UTM                                 0x0000000108fb7a4a $s3UTM30VMDisplayMetalWindowControllerC9enterLiveyyF + 986
10  UTM                                 0x0000000109098055 $s3UTM25VMDisplayWindowControllerC14virtualMachine_12transitionToySo010UTMVirtualF0C_So10UTMVMStateVtF + 773
11  UTM                                 0x000000010909810c $s3UTM25VMDisplayWindowControllerC14virtualMachine_12transitionToySo010UTMVirtualF0C_So10UTMVMStateVtFTo + 76
12  UTM                                 0x0000000108e0eef3 __33-[UTMVirtualMachine changeState:]_block_invoke + 83
13  libdispatch.dylib                   0x00007fff2022e603 _dispatch_call_block_and_release + 12
14  libdispatch.dylib                   0x00007fff2022f7e6 _dispatch_client_callout + 8
15  libdispatch.dylib                   0x00007fff2023bb2f _dispatch_main_queue_callback_4CF + 940
16  CoreFoundation                      0x00007fff2050f6f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
17  CoreFoundation                      0x00007fff204d18e2 __CFRunLoopRun + 2755
18  CoreFoundation                      0x00007fff204d075c CFRunLoopRunSpecific + 563
19  HIToolbox                           0x00007fff286f2203 RunCurrentEventLoopInMode + 292
20  HIToolbox                           0x00007fff286f1f65 ReceiveNextEventCommon + 587
21  HIToolbox                           0x00007fff286f1d03 _BlockUntilNextEventMatchingListInModeWithFilter + 70
22  AppKit                              0x00007fff22cccb32 _DPSNextEvent + 864
23  AppKit                              0x00007fff22ccb305 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
24  AppKit                              0x00007fff22cbd679 -[NSApplication run] + 586
25  AppKit                              0x00007fff22c9185c NSApplicationMain + 816
26  SwiftUI                             0x00007fff41bd1bbd $s7SwiftUI6runAppys5NeverOSo21NSApplicationDelegate_pFTf4e_nAA07TestingdG0C_Tg5 + 100
27  SwiftUI                             0x00007fff42403378 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 162
28  SwiftUI                             0x00007fff41fecf2d $s7SwiftUI3AppPAAE4mainyyFZ + 61
29  UTM                                 0x0000000108efc8b1 $s3UTM4MainC4mainyyFZ + 2225
30  UTM                                 0x0000000108efe56b $s3UTM4MainC5$mainyyFZ + 43
31  UTM                                 0x0000000108efe679 main + 41
32  libdyld.dylib                       0x00007fff203f4f3d start + 1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff203aa946 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff203d9615 pthread_kill + 263
2   libsystem_c.dylib             	0x00007fff2032e411 abort + 120
3   libc++abi.dylib               	0x00007fff2039cef2 abort_message + 241
4   libc++abi.dylib               	0x00007fff2038e5fd demangling_terminate_handler() + 266
5   libobjc.A.dylib               	0x00007fff2028758d _objc_terminate() + 96
6   libc++abi.dylib               	0x00007fff2039c307 std::__terminate(void (*)()) + 8
7   libc++abi.dylib               	0x00007fff2039c2a9 std::terminate() + 41
8   libdispatch.dylib             	0x00007fff2022f7fa _dispatch_client_callout + 28
9   libdispatch.dylib             	0x00007fff2023bb2f _dispatch_main_queue_callback_4CF + 940
10  com.apple.CoreFoundation      	0x00007fff2050f6f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11  com.apple.CoreFoundation      	0x00007fff204d18e2 __CFRunLoopRun + 2755
12  com.apple.CoreFoundation      	0x00007fff204d075c CFRunLoopRunSpecific + 563
13  com.apple.HIToolbox           	0x00007fff286f2203 RunCurrentEventLoopInMode + 292
14  com.apple.HIToolbox           	0x00007fff286f1f65 ReceiveNextEventCommon + 587
15  com.apple.HIToolbox           	0x00007fff286f1d03 _BlockUntilNextEventMatchingListInModeWithFilter + 70
16  com.apple.AppKit              	0x00007fff22cccb32 _DPSNextEvent + 864
17  com.apple.AppKit              	0x00007fff22ccb305 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
18  com.apple.AppKit              	0x00007fff22cbd679 -[NSApplication run] + 586
19  com.apple.AppKit              	0x00007fff22c9185c NSApplicationMain + 816
20  com.apple.SwiftUI             	0x00007fff41bd1bbd specialized runApp(_:) + 100
21  com.apple.SwiftUI             	0x00007fff42403378 runApp<A>(_:) + 162
22  com.apple.SwiftUI             	0x00007fff41fecf2d static App.main() + 61
23  com.utmapp.UTM                	0x0000000108efc8b1 static Main.main() + 2225 (Main.swift:52)
24  com.utmapp.UTM                	0x0000000108efe56b static Main.$main() + 43 (Main.swift:32)
25  com.utmapp.UTM                	0x0000000108efe679 main + 41
26  libdyld.dylib                 	0x00007fff203f4f3d start + 1
@conath conath added crash Application crashes macOS macOS issues labels Jun 17, 2021
@conath conath changed the title Crash when clicking in the window of a VM that is resizing while starting up Crash when clicking Play button in a VM window that has shut down Jun 17, 2021
@conath conath changed the title Crash when clicking Play button in a VM window that has shut down Crash when starting a VM with its window still open after it has shut down Jun 17, 2021
@osy osy added this to the v2.2 milestone Jul 5, 2021
@osy osy modified the milestones: v2.2, v2.1.2 Jul 5, 2021
@osy osy closed this as completed in 9998477 Jul 10, 2021
@muratdk23
Copy link

Issue still there in 2.1.2 version.

@osy
Copy link
Contributor

osy commented Jul 12, 2021

@muratdk23 can you get a new crash log? I don’t see it on my side anymore.

@muratdk23
Copy link

debug.log

@osy
Copy link
Contributor

osy commented Jul 12, 2021

Sorry I mean crash log from Console when it crashes. (You can look at the template when creating a new issue if you need directions.)

@muratdk23
Copy link

I meant when I shutdown windows 10 on arm and try start again it trying to boot but shows BSOD.

@osy
Copy link
Contributor

osy commented Jul 12, 2021

Then it’s not the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Application crashes macOS macOS issues
Projects
None yet
Development

No branches or pull requests

3 participants