Windows 11 VM black screen when expanded to Full Screen mode
- Dominant language
- Swift
- Stars
- 35.5k
- Forks
- 1.8k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 7
Description
**Describe the issue**
https://user-images.githubusercontent.com/1547081/154188833-f975600c-419b-401d-a0ef-d8c75a6281b6.mov
I have Windows 11 21H2 VM with SPICE 0.164.3 running. Resolution changes as I resize the VM window without issues. However when I expand the window into Full Screen mode (Globe+F or 🟢 button) the screen goes black and will not adapt to my monitor's full resolution (3840x2160). When I exit Full Screen mode the VM comes back to normal.
**Configuration**
* UTM Version:
* OS Version: macOS 12.2.1
* Intel or Apple Silicon?: Apple Silicon
* spice-guest-tools-0.164.3
* Windows 11 21H2 (22000.527)
* 3840x2160 (60hz) 4K Monitor
**Crash log**
No crashes.
**Debug log**
```
Running: -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4001,server,nowait -nodefaults -vga none -spice "unix=on,addr=/Users/yeowool/Library/Group Containers/WDNLXAD4W8.com.utmapp.UTM/DACB7AD3-3E50-4767-B633-669CC4319FA0.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on" -device virtio-ramfb-gl -device virtio-rng-pci -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -accel hvf -accel tcg,tb-size=1536 -drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,format=raw,unit=1,file=/Users/yeowool/Library/Containers/com.utmapp.UTM/Data/Documents/Windows.utm/Images/efi_vars.fd -boot menu=on -m 6144 -device intel-hda -device hda-duplex -name Windows -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device ich9-usb-ehci1,id=usb-controller-0 -device ich9-usb-uhci1,masterbus=usb-controller-0.0,firstport=0,multifunction=on -device ich9-usb-uhci2,masterbus=usb-controller-0.0,firstport=2,multifunction=on -device ich9-usb-uhci3,masterbus=usb-controller-0.0,firstport=4,multifunction=on -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device usb-storage,drive=cdrom0,removable=true,bootindex=0,bus=usb-bus.0 -drive if=none,media=cdrom,id=cdrom0 -device nvme,drive=drive0,serial=drive0,bootindex=1 -drive if=none,media=disk,id=drive0,file=/Users/yeowool/Library/Containers/com.utmapp.UTM/Data/Documents/Windows.utm/Images/data.qcow2,cache=writethrough -device virtio-net-pci,mac=9A:14:F7:21:BF:F5,netdev=net0 -netdev vmnet-macos,mode=shared,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -uuid DACB7AD3-3E50-4767-B633-669CC4319FA0 -rtc base=localtime
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: Started vmnet interface with configuration:
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: MTU: 1500
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: Max packet size: 1514
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: MAC: ea:f3:90:b6:f2:1f
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: DHCP IPv4 start: 192.168.64.1
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: DHCP IPv4 end: 192.168.64.254
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: IPv4 subnet mask: 255.255.255.0
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: info: UUID: 8B8293F2-CC04-4221-871F-DF582A6B0680
qemu-aarch64-softmmu: warning: Spice: playback:0 (0x1508d3140): setsockopt failed, Operation not supported on socket
qemu-aarch64-softmmu: warning: Spice: record:0 (0x1508d31f0): setsockopt failed, Operation not supported on socket
gl_version 30 - es profile enabled
WARNING: running without ARB/KHR robustness in place may crash
qemu-aarch64-softmmu: Spice: red-qxl.c:807:spice_qxl_gl_scanout: condition `qxl_state->gl_draw_cookie == GL_DRAW_COOKIE_INVALID' failed
```
**Upload VM**
```
ConfigurationVersion
2
Debug
Display
ConsoleFont
Menlo
ConsoleFontSize
12
ConsoleOnly
ConsoleTheme
Default
DisplayCard
virtio-ramfb-gl
DisplayDownscaler
linear
DisplayRetina
DisplayUpscaler
nearest
Drives
DriveName
cdrom0
ImageType
cd
InterfaceType
usb
Removable
DriveName
drive0
ImagePath
data.qcow2
ImageType
disk
InterfaceType
nvme
DriveName
drive04BA9D5F-DA13-49F2-9B56-63C105CF2AC4
ImagePath
efi_vars.fd
ImageType
none
InterfaceType
Info
Icon
windows 11 start button 4x.png
IconCustom
Input
InputInvertScroll
InputLegacy
Networking
NetworkCard
virtio-net-pci
NetworkCardMAC
9A:14:F7:21:BF:F5
NetworkMode
shared
Printing
Sharing
ClipboardSharing
DirectoryReadOnly
DirectorySharing
Usb3Support
UsbRedirectMax
3
Sound
SoundCard
intel-hda
SoundEnabled
System
Architecture
aarch64
BootDevice
BootUefi
CPU
default
CPUCount
4
MachineProperties
highmem=off
Memory
6144
RngEnabled
SystemUUID
DACB7AD3-3E50-4767-B633-669CC4319FA0
Target
virt
UseHypervisor
```
Contributor guide
Assessment
This issue has not been assessed yet.