qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1675108] [NEW] Cocoa UI always crashes on startup
@ 2017-03-22 17:26 Brendan Shanks
  2017-03-23  9:46 ` Peter Maydell
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Brendan Shanks @ 2017-03-22 17:26 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Commit 8bb93c6f99a42c2e0943bc904b283cd622d302c5 ("ui/console: ensure
graphic updates don't race with TCG vCPUs") causes the graphic update to
run on a non-main thread, which Cocoa is not happy with. It crashes
immediately after startup.

$ i386-softmmu/qemu-system-i386 
2017-03-22 10:09:25.113 qemu-system-i386[15968:9538245] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff91e72e7b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fffa6a5ccad objc_exception_throw + 48
	2   AppKit                              0x00007fff900953fd -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4471
	3   qemu-system-i386                    0x0000000104f75a49 cocoa_refresh + 233
	4   qemu-system-i386                    0x0000000104e0312c process_queued_cpu_work + 140
	5   qemu-system-i386                    0x0000000104d1a73c qemu_tcg_rr_cpu_thread_fn + 284
	6   libsystem_pthread.dylib             0x00007fffa7557aab _pthread_body + 180
	7   libsystem_pthread.dylib             0x00007fffa75579f7 _pthread_body + 0
	8   libsystem_pthread.dylib             0x00007fffa75571fd thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

System: macOS 10.12.3, Xcode 8.2.1

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1675108

Title:
  Cocoa UI always crashes on startup

Status in QEMU:
  New

Bug description:
  Commit 8bb93c6f99a42c2e0943bc904b283cd622d302c5 ("ui/console: ensure
  graphic updates don't race with TCG vCPUs") causes the graphic update
  to run on a non-main thread, which Cocoa is not happy with. It crashes
  immediately after startup.

  $ i386-softmmu/qemu-system-i386 
  2017-03-22 10:09:25.113 qemu-system-i386[15968:9538245] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'
  *** First throw call stack:
  (
  	0   CoreFoundation                      0x00007fff91e72e7b __exceptionPreprocess + 171
  	1   libobjc.A.dylib                     0x00007fffa6a5ccad objc_exception_throw + 48
  	2   AppKit                              0x00007fff900953fd -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4471
  	3   qemu-system-i386                    0x0000000104f75a49 cocoa_refresh + 233
  	4   qemu-system-i386                    0x0000000104e0312c process_queued_cpu_work + 140
  	5   qemu-system-i386                    0x0000000104d1a73c qemu_tcg_rr_cpu_thread_fn + 284
  	6   libsystem_pthread.dylib             0x00007fffa7557aab _pthread_body + 180
  	7   libsystem_pthread.dylib             0x00007fffa75579f7 _pthread_body + 0
  	8   libsystem_pthread.dylib             0x00007fffa75571fd thread_start + 13
  )
  libc++abi.dylib: terminating with uncaught exception of type NSException
  Abort trap: 6

  System: macOS 10.12.3, Xcode 8.2.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1675108/+subscriptions

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-03-29 18:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-22 17:26 [Qemu-devel] [Bug 1675108] [NEW] Cocoa UI always crashes on startup Brendan Shanks
2017-03-23  9:46 ` Peter Maydell
2017-03-23 11:13   ` Alex Bennée
2017-03-23 11:16     ` Peter Maydell
2017-03-23 11:31       ` Alex Bennée
2017-03-27 13:29         ` Gerd Hoffmann
2017-03-27 15:18           ` Alex Bennée
2017-03-27 15:19             ` Peter Maydell
2017-03-24  6:29 ` [Qemu-devel] [Bug 1675108] " Brendan Shanks
2017-03-24  7:52   ` Alex Bennée
2017-03-24  6:38 ` Brendan Shanks
2017-03-27 18:52 ` Brendan Shanks
2017-03-27 19:25   ` Alex Bennée
2017-03-29 17:50 ` Brendan Shanks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).