I have the same issue. The patch (which is already included in my git source) did not help. I can use the command line solution but it's not ideal as I connect to the VM from multiple computers with different resolutions.
Also if I use "Auto resize VM to window" the VM immediately crashes with the error: qemu-system-x86_64: /root/qemu/ui/egl-headless.c:136: egl_scanout_flush: Assertion `surface_width(edpy->ds) == edpy->guest_fb.width' failed. Otherwise it is working better than I had hoped, just this small resolution issue. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1805697 Title: egl-headless crashes Status in QEMU: New Bug description: egl-headless crashes when it is trying change the resolution. After XFCE login, for example. I tryed it on 2.12, 3.0 and 3.1.0-rc2 versions. # qemu-system-x86_64 -enable-kvm -enable-kvm -M q35 -smp 8 -vga virtio -spice port=59011,addr=0.0.0.0,disable-ticketing -hda image.qcow2 -m 4G -display egl-headless -chardev spicevmc,name=vdagent,id=vdagent main_channel_link: add main channel client main_channel_client_handle_pong: net test: latency 6.942000 ms, bitrate 8497925311 bps (8104.253112 Mbps) inputs_connect: inputs channel client create red_qxl_set_cursor_peer: gl_version 31 - compat profile qemu-system-x86_64: ui/egl-headless.c:128: egl_scanout_flush: Assertion `surface_width(edpy->ds) == edpy->guest_fb.width' failed. Aborted (core dumped) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1805697/+subscriptions