Cocoa display hangs on macOS 10.15 (Catalina)

Bug #1847906 reported by Shachar Itzhaky
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

I have downloaded the latest stable source tarball 4.1.0 and compiled it (i386-softmmu target).

After opening a black window, QEMU hangs (spinning beach ball).
When building with `--disable-cocoa --enable-sdl`, display seems to work fine.

The same happened when I tried to build QEMU through HomeBrew and MacPorts.

Revision history for this message
zenojevski (zenojevski) wrote :

I am also affected by this after upgrading to 10.15 Catalina.

I experience the same behavior using `qemu-system-x86_64`, but I can't confirm whether other systems are also affected.

Building with SDL also fixed it for me so far:

* `brew edit`
* add `depends_on "sdl2"` among other dependencies
* replace `--enable-cocoa` with `--disable-cocoa`
* replace `--disable-sdl` with `--enable-sdl`
* save, quit, and `brew install --build-from-source qemu`

Revision history for this message
Shachar Itzhaky (corwin-amber) wrote :

I tried with `--enable-gtk` and it hangs as well.
Using gtk3 build from MacPorts with `+quartz`. Now, this may be a systemwide problem with Gtk, I am yet to test other Gtk apps on Catalina.

Revision history for this message
Peter Maydell (pmaydell) wrote :

Investigation/patches would be welcome. Only one or two active upstream QEMU devs use OSX, and certainly personally I don't propose to upgrade to Catalina for at least six months to a year or so.

Revision history for this message
Peter Maydell (pmaydell) wrote :

Hikaru Nishida kindly wrote a patch which should fix this:
https://<email address hidden>/

Revision history for this message
Shachar Itzhaky (corwin-amber) wrote :

This is wonderful! Thank you Peter and Hikaru for this patch. I will try it ASAP and confirm.

Revision history for this message
Shachar Itzhaky (corwin-amber) wrote :

Yes, works perfectly!

Revision history for this message
Peter Maydell (pmaydell) wrote :

Hikaru's patch is now in master as commit dff742ad27efa4, and will be in the next QEMU release.

Changed in qemu:
status: New → Fix Committed
Thomas Huth (th-huth)
Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.