Description of problem:
Trying to figure out what is causing this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1951173 (Auto resize VM with window does not work)
Version-Release number of selected component:
cmdline: spice-vdagent -d
runlevel: N 5
Thread no. 1 (3 frames)
#0 vdagent_x11_do_read at src/vdagent/x11.c:627
#1 x11_io_channel_cb at src/vdagent/display.c:267
#4 g_main_context_iterate.constprop.0 at ../glib/gmain.c:4131
Created attachment 1799800 [details]
Created attachment 1799801 [details]
Created attachment 1799802 [details]
Created attachment 1799803 [details]
Created attachment 1799804 [details]
Created attachment 1799805 [details]
Created attachment 1799806 [details]
Created attachment 1799807 [details]
Created attachment 1799808 [details]
Created attachment 1799809 [details]
Created attachment 1799810 [details]
Created attachment 1799811 [details]
*** Bug 2012270 has been marked as a duplicate of this bug. ***
*** Bug 2016376 has been marked as a duplicate of this bug. ***
FEDORA-2021-1babdf4b97 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1babdf4b97
Hi Jan, sorry I missed the original bug 1951173 - there was the comment 12 there  about agent's unit that was merged a few months ago .
The patch was backported to Fedora 34 but a build was not made, so I just did it 
Please try it out, for this crash and the resising issue too.
FEDORA-2021-1babdf4b97 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-1babdf4b97`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-1babdf4b97
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-1babdf4b97 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.