utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.98k stars 1.35k forks source link

ubuntu gets stuck when running #5205

Open ody999 opened 1 year ago

ody999 commented 1 year ago

Describe the issue When running ubuntu20.04.5, chances are that the system gets totally stuck, which means I can only move the mouse cursor, and the system no longer responses to any keyboard or mouse click input. Does this has something to do with display cards with '-gl', since when choosing cards that do not support GPU acceleration, so far haven't met this situation.

Configuration (required)

Crash log n/a

Debug log setting share directory to /private/var/mobile/Containers/Shared/AppGroup/C6CF5C1D-3191-46B6-AF78-04F1295FD607/File Provider Storage/Oth/utmsys/ubuntu 2023-04-19 18:58:12.943 UTM[66101:11995297] setting share directory to /private/var/mobile/Containers/Shared/AppGroup/C6CF5C1D-3191-46B6-AF78-04F1295FD607/File Provider Storage/Oth/utmsys/ubuntu Running: -L /private/var/containers/Bundle/Application/C09DC3F4-E565-43E5-B534-28B893F4D60F/UTM.app/qemu -S -spice unix=on,addr=/private/var/mobile/Containers/Data/Application/E92EED9A-81B2-48A7-A149-F293BC859B88/tmp/ACEB3FE3-5B36-4466-900E-ED70E46EFA19.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device virtio-net-pci,mac=A6:63:AC:AA:D4:FC,netdev=net0 -netdev user,id=net0 -device virtio-gpu-gl-pci -cpu host -smp cpus=8,sockets=1,cores=8,threads=1 -machine virt-7.0,highmem=off -accel hvf -drive if=pflash,format=raw,unit=0,file=/private/var/containers/Bundle/Application/C09DC3F4-E565-43E5-B534-28B893F4D60F/UTM.app/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,unit=1,file=/private/var/mobile/Containers/Data/Application/E92EED9A-81B2-48A7-A149-F293BC859B88/Documents/Ubuntu.utm/Data/efi_vars.fd -m 4096 -device AC97 -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 qemu-xhci,id=usb-controller-0 -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 virtio-blk-pci,drive=driveA31003CD-DF58-4A5D-9422-D477869AE64C,bootindex=0 -drive if=none,media=disk,id=driveA31003CD-DF58-4A5D-9422-D477869AE64C,file=/private/var/mobile/Containers/Data/Application/E92EED9A-81B2-48A7-A149-F293BC859B88/Documents/Ubuntu.utm/Data/A31003CD-DF58-4A5D-9422-D477869AE64C.qcow2,discard=unmap,detect-zeroes=unmap -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 -name Ubuntu -uuid ACEB3FE3-5B36-4466-900E-ED70E46EFA19 -device virtio-rng-pci Loading qemu-aarch64-softmmu.framework/qemu-aarch64-softmmu 2023-04-19 18:58:13.000 UTM[66101:11995298] Running: -L /private/var/containers/Bundle/Application/C09DC3F4-E565-43E5-B534-28B893F4D60F/UTM.app/qemu -S -spice unix=on,addr=/private/var/mobile/Containers/Data/Application/E92EED9A-81B2-48A7-A149-F293BC859B88/tmp/ACEB3FE3-5B36-4466-900E-ED70E46EFA19.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device virtio-net-pci,mac=A6:63:AC:AA:D4:FC,netdev=net0 -netdev user,id=net0 -device virtio-gpu-gl-pci -cpu host -smp cpus=8,sockets=1,cores=8,threads=1 -machine virt-7.0,highmem=off -accel hvf -drive if=pflash,format=raw,unit=0,file=/private/var/containers/Bundle/Application/C09DC3F4-E565-43E5-B534-28B893F4D60F/UTM.app/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,unit=1,file=/private/var/mobile/Containers/Data/Application/E92EED9A-81B2-48A7-A149-F293BC859B88/Documents/Ubuntu.utm/Data/efi_vars.fd -m 4096 -device AC97 -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 qemu-xhci,id=usb-controller-0 -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 virtio-blk-pci,drive=driveA31003CD-DF58-4A5D-9422-D477869AE64C,bootindex=0 -drive if=none,media=disk,id=driveA31003CD-DF58-4A5D-9422-D477869AE64C,file=/private/var/mobile/Containers/Data/Application/E92EED9A-81B2-48A7-A149-F293BC859B88/Documents/Ubuntu.utm/Data/A31003CD-DF58-4A5D-9422-D477869AE64C.qcow2,discard=unmap,detect-zeroes=unmap -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 -name Ubuntu -uuid ACEB3FE3-5B36-4466-900E-ED70E46EFA19 -device virtio-rng-pci 2023-04-19 18:58:13.000 UTM[66101:11995298] Loading qemu-aarch64-softmmu.framework/qemu-aarch64-softmmu objc[66101]: Class SwapLayerEAGL is implemented in both /System/Library/PrivateFrameworks/WebCore.framework/Frameworks/libANGLE-shared.dylib (0x2067c7290) and /private/var/containers/Bundle/Application/C09DC3F4-E565-43E5-B534-28B893F4D60F/UTM.app/Frameworks/GLESv2.framework/GLESv2 (0x11d806570). One of the two will be used. Which one is undefined. vcpu_zone = 0x117f38000 vcpu_zone = 0x117f88000 vcpu_zone = 0x117fa0000 vcpu_zone = 0x11a3ac000 vcpu_zone = 0x11a43c000 vcpu_zone = 0x11a4dc000 vcpu_zone = 0x11a5d4000 vcpu_zone = 0x11a634000 vcpu_zone = 0x11c24c000 qemu-system: warning: GSpice: main-1:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: info: main channel: opened qemu-system: warning: GSpice: display-2:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: cursor-4:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: usbredir-9:2: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: usbredir-9:1: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: usbredir-9:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: playback-5:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: record-6:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: webdav-11:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: port-10:0: could not set sockopt TCP_NODELAY: Operation not supported on socket qemu-system: warning: GSpice: inputs-3:0: could not set sockopt TCP_NODELAY: Operation not supported on socket 2023-04-19T18:58:14+0800 info com.utmapp.UTM : Start location tracking to enable running in background 2023-04-19T18:58:14+0800 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background Location services are disabled in settings. 2023-04-19 18:58:14.188 UTM[66101:11994609] Location services are disabled in settings. Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" 2023-04-19 18:58:14.188 UTM[66101:11994609] Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 18:58:14.192 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 qemu-system: warning: Spice: playback:0 (0x10c8856d0): setsockopt failed, Operation not supported on socket qemu-system: warning: Spice: record:0 (0x10c885630): setsockopt failed, Operation not supported on socket Debug JSON recieved <- { QMP = { capabilities = ( ); version = { package = ""; qemu = { major = 7; micro = 0; minor = 2; }; }; }; } 2023-04-19 18:58:14.244 UTM[66101:11995206] Debug JSON recieved <- { QMP = { capabilities = ( ); version = { package = ""; qemu = { major = 7; micro = 0; minor = 2; }; }; }; } Got QMP handshake: { QMP = { capabilities = ( ); version = { package = ""; qemu = { major = 7; micro = 0; minor = 2; }; }; }; } qemuQmpDidConnect 2023-04-19 18:58:14.244 UTM[66101:11995433] Got QMP handshake: { QMP = { capabilities = ( ); version = { package = ""; qemu = { major = 7; micro = 0; minor = 2; }; }; }; } 2023-04-19 18:58:14.244 UTM[66101:11995433] qemuQmpDidConnect Debug JSON send -> { execute = "qmp_capabilities"; } 2023-04-19 18:58:14.244 UTM[66101:11995298] Debug JSON send -> { execute = "qmp_capabilities"; } Debug JSON recieved <- { return = { }; } 2023-04-19 18:58:14.245 UTM[66101:11995206] Debug JSON recieved <- { return = { }; } Debug JSON send -> { execute = cont; } 2023-04-19 18:58:14.245 UTM[66101:11995298] Debug JSON send -> { execute = cont; } Debug JSON recieved <- { event = RESUME; timestamp = { microseconds = 245581; seconds = 1681901894; }; } Debug JSON recieved <- { return = { }; } 2023-04-19 18:58:14.245 UTM[66101:11995433] Debug JSON recieved <- { event = RESUME; timestamp = { microseconds = 245581; seconds = 1681901894; }; } 2023-04-19 18:58:14.245 UTM[66101:11995433] Debug JSON recieved <- { return = { }; } qemuHasResumed 2023-04-19 18:58:14.245 UTM[66101:11995297] qemuHasResumed resizing to (1366.000000, 1024.000000) 2023-04-19 18:58:14.246 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) qemu-system: GSpice: spice_main_channel_send_monitor_config: assertion 'c->agent_connected' failed gl_version 30 - es profile enabled WARNING: running without ARB/KHR robustness in place may crash Debug JSON recieved <- { data = { path = "/machine/peripheral-anon/device[0]/virtio-backend"; }; event = "NIC_RX_FILTER_CHANGED"; timestamp = { microseconds = 749332; seconds = 1681901902; }; } 2023-04-19 18:58:22.749 UTM[66101:11995297] Debug JSON recieved <- { data = { path = "/machine/peripheral-anon/device[0]/virtio-backend"; }; event = "NIC_RX_FILTER_CHANGED"; timestamp = { microseconds = 749332; seconds = 1681901902; }; } GLSL feature level 130 qemu-system: warning: GLib-GObject: g_object_get_is_valid_property: object class 'GstAutoAudioSink' has no property named 'volume' qemu-system: warning: GLib-GObject: g_object_get_is_valid_property: object class 'GstAutoAudioSrc' has no property named 'volume' qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GLib-GObject: g_object_get_is_valid_property: object class 'GstAutoAudioSink' has no property named 'volume' qemu-system: warning: GLib-GObject: g_object_get_is_valid_property: object class 'GstAutoAudioSrc' has no property named 'volume' Switching mouse mode to server:1 for type:0 2023-04-19 18:58:29.099 UTM[66101:11994609] Switching mouse mode to server:1 for type:0 Debug JSON send -> { execute = "query-mice"; } 2023-04-19 18:58:29.099 UTM[66101:11995433] Debug JSON send -> { execute = "query-mice"; } Debug JSON recieved <- { return = ( { absolute = 1; current = 0; index = 1; name = "QEMU HID Tablet"; }, { absolute = 0; current = 1; index = 2; name = "QEMU HID Mouse"; } ); } 2023-04-19 18:58:29.100 UTM[66101:11995297] Debug JSON recieved <- { return = ( { absolute = 1; current = 0; index = 1; name = "QEMU HID Tablet"; }, { absolute = 0; current = 1; index = 2; name = "QEMU HID Mouse"; } ); } found index:2 absolute:0 Debug JSON send -> { arguments = { "command-line" = "mouse_set 2"; }; execute = "human-monitor-command"; } 2023-04-19 18:58:29.100 UTM[66101:11995433] found index:2 absolute:0 2023-04-19 18:58:29.100 UTM[66101:11995433] Debug JSON send -> { arguments = { "command-line" = "mouse_set 2"; }; execute = "human-monitor-command"; } Debug JSON recieved <- { return = ""; } 2023-04-19 18:58:29.101 UTM[66101:11995206] Debug JSON recieved <- { return = ""; } qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink GL error reported (1280) for context 6 qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink qemu-system: warning: GSpice: playback: ignoring volume change on audiosink qemu-system: warning: GSpice: playback: ignoring mute change on audiosink Debug JSON recieved <- { data = { offset = 1; "qom-path" = "/machine/unattached/device[11]"; }; event = "RTC_CHANGE"; timestamp = { microseconds = 828154; seconds = 1681901934; }; } 2023-04-19 18:58:54.828 UTM[66101:11995433] Debug JSON recieved <- { data = { offset = 1; "qom-path" = "/machine/unattached/device[11]"; }; event = "RTC_CHANGE"; timestamp = { microseconds = 828154; seconds = 1681901934; }; } GL error reported (1280) for context 6 resizing to (678.000000, 1024.000000) 2023-04-19 19:01:43.673 UTM[66101:11994609] resizing to (678.000000, 1024.000000) 2023-04-19T19:01:44+0800 info com.utmapp.UTM : Entering foreground! 2023-04-19T19:01:44+0800 info com.utmapp.UTM : [UTM] Entering foreground! resizing to (1366.000000, 1024.000000) 2023-04-19 19:01:47.118 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) mouseDidBecomeCurrent: 0x281bd69f0 mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:01:47.126 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:01:47.126 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19T19:01:47+0800 info com.utmapp.UTM : Start location tracking to enable running in background 2023-04-19T19:01:47+0800 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" 2023-04-19 19:01:47.138 UTM[66101:11994609] Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" mouseDidStopBeingCurrent: 0x281bd69f0 mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:01:50.702 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:01:50.702 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 resizing to (1366.000000, 1024.000000) 2023-04-19 19:01:52.469 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) mouseDidBecomeCurrent: 0x281bd69f0 mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:01:52.476 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:01:52.476 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19T19:01:52+0800 info com.utmapp.UTM : Start location tracking to enable running in background 2023-04-19T19:01:52+0800 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" 2023-04-19 19:01:52.484 UTM[66101:11994609] Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" resizing to (981.000000, 1024.000000) 2023-04-19 19:01:54.419 UTM[66101:11994609] resizing to (981.000000, 1024.000000) resizing to (375.000000, 1024.000000) 2023-04-19 19:01:54.424 UTM[66101:11994609] resizing to (375.000000, 1024.000000) resizing to (1366.000000, 1024.000000) 2023-04-19 19:01:59.410 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) 2023-04-19T19:01:59+0800 info com.utmapp.UTM : Entering background 2023-04-19T19:01:59+0800 info com.utmapp.UTM : [UTM] Entering background resizing to (1366.000000, 1024.000000) 2023-04-19 19:01:59.955 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) resizing to (1024.000000, 1366.000000) 2023-04-19 19:02:00.098 UTM[66101:11994609] resizing to (1024.000000, 1366.000000) resizing to (678.000000, 1024.000000) 2023-04-19 19:02:00.210 UTM[66101:11994609] resizing to (678.000000, 1024.000000) resizing to (375.000000, 1024.000000) 2023-04-19 19:02:00.280 UTM[66101:11994609] resizing to (375.000000, 1024.000000) mouseDidStopBeingCurrent: 0x281bd69f0 mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:02:01.565 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:02:01.565 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 resizing to (1366.000000, 1024.000000) 2023-04-19 19:02:03.892 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) mouseDidBecomeCurrent: 0x281bd69f0 mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:02:03.900 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:02:03.900 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19T19:02:03+0800 info com.utmapp.UTM : Start location tracking to enable running in background 2023-04-19T19:02:03+0800 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" 2023-04-19 19:02:03.909 UTM[66101:11994609] Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" mouseDidStopBeingCurrent: 0x281bd69f0 mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:02:10.136 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:02:10.137 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 resizing to (1366.000000, 1024.000000) 2023-04-19 19:02:12.189 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) mouseDidBecomeCurrent: 0x281bd69f0 mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:02:12.197 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:02:12.197 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19T19:02:12+0800 info com.utmapp.UTM : Start location tracking to enable running in background 2023-04-19T19:02:12+0800 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" 2023-04-19 19:02:12.205 UTM[66101:11994609] Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" mouseDidStopBeingCurrent: 0x281bd69f0 mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:02:14.466 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 2023-04-19 19:02:14.466 UTM[66101:11994609] mouseDidStopBeingCurrent: 0x281bd69f0 resizing to (1366.000000, 1024.000000) 2023-04-19 19:02:16.359 UTM[66101:11994609] resizing to (1366.000000, 1024.000000) mouseDidBecomeCurrent: 0x281bd69f0 mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:02:16.366 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19 19:02:16.366 UTM[66101:11994609] mouseDidBecomeCurrent: 0x281bd69f0 2023-04-19T19:02:16+0800 info com.utmapp.UTM : Start location tracking to enable running in background 2023-04-19T19:02:16+0800 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" 2023-04-19 19:02:16.375 UTM[66101:11994609] Location manager failed with: Error Domain=kCLErrorDomain Code=1 "(null)" resizing to (1024.000000, 1366.000000) 2023-04-19 19:02:22.016 UTM[66101:11994609] resizing to (1024.000000, 1366.000000) resizing to (678.000000, 1024.000000) 2023-04-19 19:02:22.122 UTM[66101:11994609] resizing to (678.000000, 1024.000000) resizing to (1366.000000, 1024.000000) 2023-04-19 19:02:22.183 UTM[66101:11994609] resizing to (1366.000000, 1024.000000)

Upload VM n/a

ody999 commented 1 year ago

interestingly,when the screen display stagnates, the website background music is still able to play.

jmzwcn commented 1 year ago

Yes, I have hit the same issue too, and have to reboot without any saved.

my env: Mac m1 air and ubuntu 20.04.

thedarb commented 1 year ago

Same. I'm on an M1 mac. Without any GL video options, the I can make it randomly from a few hours to up to around 4 days before I get such a hang. With any of the GL video options, I get minutes to a couple hours. When it finally does, it's the same. Audio keeps playing, and I can ssh into the vm. But attempting to kill and restart X or the dm completes the freeze, and nothing works.

I have the problem in X11 Cinammon, X11 KDE, and Wayland KDE. Running Ubuntu 22.04. Don't know about gnome desktop, I won't install that.

adanowitz commented 1 year ago

Same problem running an MBP 16" with M2. Ubuntu Desktop installed. Using Apple's virtualization back-end rather than qemu.

stuaxo commented 10 months ago

I made some progress - I tried looking into resetting the graphics device. I didn't manage that directly, but I did manage to disconnect and reconnect it - this does log out you, but you are back a the GUI and you can either log back in and continue, or you can cleanly shut down.

As root, run lspci to find theVirtio GPU device, then look at the device number on the left

lspci
00:00.0 Host bridge: Red Hat, Inc. QEMU PCIe Host bridge
00:01.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:02.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:03.0 Display controller: Red Hat, Inc. Virtio GPU (rev 01)
00:04.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
00:05.0 USB controller: Red Hat, Inc. QEMU XHCI Host Controller (rev 01)
00:06.0 SCSI storage controller: Red Hat, Inc. Virtio block device
00:07.0 Communication controller: Red Hat, Inc. Virtio console
00:08.0 Unclassified device [0002]: Red Hat, Inc. Virtio filesystem
00:09.0 Unclassified device [00ff]: Red Hat, Inc. Virtio RNG
00:0a.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon

Here it's 00:03.0

Remove the virtual gpu

echo 1 > /sys/bus/pci/devices/0000\:00\:03.0/remove

Rescan

 echo "1" > /sys/bus/pci/rescan

Without this bit the folder under /sys/bus/pci/devices/0000\:00\:03.0/ no longer exists.

At this point you may be at the login screen straight away, but I wasn't - I got there by getting gdm3 to restart

systemctl restart gdm3

An interesting thing is that performing the PCI removal step while things are running normally reproduces the bug I see exactly - mouse cursor moves but no interaction otherwise.

Instead of restarting gdm3 we might be able to do something with more finesse and actually get the desktop back, there is also currently work in gnome to survive GPU resets, once this lands that could help. Being able to reset the GPU directly would also help (a /reset node in the device directory)