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
Run: QEMU crashes on "GLib: Too many handles to wait for!" when using WSL2 with Windows-native QEMU #6422
Comments
|
So wait, in order to reproduce this and check whether my recent change updating Serenity's built-in QEMU version to the latest release candidate; Is this being caused by the recent |
|
Yes, this is running on 6.0.0-rc3 |
|
Just reproduced on 5.2.0 |
|
Results of testing on a windows virtual machine: This is due to the newly added VirtIO drivers. Since they work just fine on linux i think this is most likely a problem in QEMU's windows builds (as virtio is completely host agnostic). |
|
Thanks for this quick info. I'll be submitting this to their bug tracker. @IdanHo How do I specify this command-line flag? |
well ill first have to add said commandline flag before you can use it :) |
QEMU has no official Windows builds. Did you use the QEMU for Windows installer from my website? |
|
Using this version from your website here: https://qemu.weilnetz.de/w64/2020/ I am able to repro the issue, yes. It seems like the other people in this thread are using the binaries from there as well? The instructions for WSL2 point to the qemu link that has a link to your site, anyway. |
I didn't even realize that they aren't official but yes, I used these installers from the dates that matched the announcements for specific versions. |
|
QEMU works nicely when I remove |
Well yes, but that removes the VirtIO devices, so thats not very surprising :^) |
|
I did not remove the other VirtIO devices... |
I see, you didnt remove the VirtRNG device, so that narrows down the problem a bit, but both virtrng and virtconsole devices are handled by the same code in serenity, so im not entirely sure why there would be any difference in behaviour |
|
@stweil It seems the limit we're running into (MAXIMUM_WAIT_OBJECTS) was overcome/avoided in glib version Commit: https://gitlab.gnome.org/GNOME/glib/-/commit/33158c86c102eccb197bd60918ce1ecebc62ac3f PR: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/535 How involved would it be to bump the version of glib shipped with your QEMU binaries? It looks like the current version is |
|
I use packages from Cygwin (which are sometimes much behind the official stable releases) for cross compilation on Debian. Building my own glib would require some work and – which is worse – more disk space on my server. As far as I know Fedora provides recent cross packages, so maybe I have to switch my Linux distribution and use that. |
Running SerenityOS on Windows 10 20H2 with WSL2 Debian 10.9. Debian's QEMU can start just fine with an X Server on the host machine. However, when switching over to native QEMU (newest version) and setting the options as required:
QEMU will start up but hang at the following message:
The hang is so severe that even Ctrl-C doesn't do something. The QEMU window appears but is reported as not responding almost immediately by Windows and needs to be force closed.
The text was updated successfully, but these errors were encountered: