qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] This patch fixes hanging up Cocoa display on macOS 10.15 (Ca


From: Peter Maydell
Subject: Re: [PATCH] This patch fixes hanging up Cocoa display on macOS 10.15 (Catalina)
Date: Mon, 14 Oct 2019 14:13:16 +0100

On Mon, 14 Oct 2019 at 13:53, <address@hidden> wrote:
>
> From: Hikaru Nishida <address@hidden>
>
> An NSEvent is fired before applicationDidFinishLaunching on macOS
> Catalina. This causes deadlock of iothread_lock by calling
> bool_with_iothread_lock in handleEvent while its already locked.
> This patch prevents to call bool_with_iothread_lock until the
> app_started_sem is released to prevent this deadlock.

Thanks for this analysis and patch.

Do you know what the event that gets fired is?
I'm wondering if it's something we need to handle
(or if other events might in future fire in this window
that matter to us).

Incidentally, getting an NSEvent before applicationDidFinishLaunching
seems to contradict the OSX API docs:

https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching

which say "This method is called after the application's main
run loop has been started but before it has processed any events."

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]