-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 reordering disk images #3117
Comments
@osy I'm fairly certain the cause of the crash is the UTM/Platform/macOS/VMConfigDrivesView.swift Lines 59 to 61 in ac2efde
|
Yeah I think I dealt with this exact crash before but it’s pretty bad code. The new Monterey changes should fix this for Apple VMs but still need a good way for the QEMU ones. |
@osy I see what you mean. Should the drive be made an object instead of a dictionary? Just wondering, is this code from the early days of UTM or what? |
It was written before swiftui and so the swiftui code does not play well with a custom object wrapping around a dictionary of wrapped objects. |
I see. So should the UTMConfiguration+Drives code be refactored to have a Drive object? |
Reassigning to v3.0 because I forgot that the new UI basically already fixes this. |
@osy how does it fix it? |
Fixed in v3.0 redesign |
Describe the issue
I have a CD image, automatically-generated EFI vars, a kernel, and an initrd. I attempted to move the CD and EFI vars down below the kernel and initrd. The kernel managed to make it to the top but when I moved the CD below the EFI vars, UTM crashed.
Configuration
Crash log
Debug log
(There was no QEMU execution involved in this crash.)
Upload VM
The text was updated successfully, but these errors were encountered: