Received: from eggs.gnu.org ([2001:4830:134:3::10]:33903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGqBt-00061q-6Y for qemu-devel@nongnu.org; Mon, 11 Aug 2014 10:03:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGqBk-0008Ne-DP for qemu-devel@nongnu.org; Mon, 11 Aug 2014 10:03:13 -0400 Received: from nm18-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.138]:43596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGqBk-0008NK-8E for qemu-devel@nongnu.org; Mon, 11 Aug 2014 10:03:04 -0400 References: Message-ID: <1407765783.39657.YahooMailNeo@web140702.mail.bf1.yahoo.com> Date: Mon, 11 Aug 2014 07:03:03 -0700 From: New B MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-589800495-177128391-1407765783=:39657" Subject: [Qemu-devel] Black screen on qemu launch Reply-To: New B List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-trivial@nongnu.org" , "qemu-devel@nongnu.org" ---589800495-177128391-1407765783=:39657 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AHere is my environment:=0A=0A1- qemu 1.7.1=0A2- MacOSX 10.9.4=0A3-= glib & friends 2.40.0=0A4- configure statement as copied from config.statu= s:=0Aexec './configure' '--enable-cocoa' '--target-list=3Darm-softmmu' '--d= isable-vnc' '--enable-debug'=0A5- The kernel image and rootfs are built via= yocto-project (standard, out of the box, no custom bitbake recipes or anyt= hing)=0A6- the command line arguments passed to the executable are:=0A-kern= el /Users/myhome/Projects/QEMU/FinalQEMUBuild/qemuarm/zImage--3.10.17-qemua= rm.bin -M versatilepb -hda /Users/myhome/Projects/QEMU/FinalQEMUBuild/qemua= rm/core-image-minimal-qemuarm.rootfs.ext3 -no-reboot -show-cursor -usb -usb= device wacom-tablet --append "root=3D/dev/sda rw console=3DttyAMAO console= =3Dtty ip=3D192.168.7.2::192.168.7.1:.55.255.255.0 mem=3D128M highres=3Doff= "=0A=A0=0A=0A=3D=3D=3D=3D> Results:=0A- a cocoa window shows up entirely wh= ite with absolutely nothing showing...=0A- when i refresh it (minimize, the= n show), it turns entirely black=0A- when i gdb-attach to the process, this= is the stack trace:=0A=0A(gdb) bt=0A#0=A0 0x00007fff84a129aa in select$DAR= WIN_EXTSN ()=0A#1=A0 0x00000001045a36d3 in g_poll ()=0A#2=A0 0x0000000103ae= be69 in qemu_poll_ns (fds=3D0x7fd10eb00100, nfds=3D4, timeout=3D29021000) a= t qemu-timer.c:319=0A#3=A0 0x0000000103a96bb3 in os_host_main_loop_wait (ti= meout=3D29021000) at main-loop.c:228=0A#4=A0 0x0000000103a96a0c in main_loo= p_wait (nonblocking=3D0) at main-loop.c:483=0A#5=A0 0x0000000103b34a86 in m= ain_loop () at vl.c:2015=0A#6=A0 0x0000000103b2ee86 in qemu_main (argc=3D14= , argv=3D0x7fff5c39c9c8, envp=3D0x7fff5c39ca40) at vl.c:4379=0A#7=A0 0x0000= 000103b1c629 in -[QemuCocoaAppController startEmulationWithArgc:argv:] (sel= f=3D0x7fd10be0c580, _cmd=3D0x103d7110c, argc=3D14, argv=3D0x7fff5c39c9c8) a= t ui/cocoa.m:815=0A#8=A0 0x0000000103b1c42f in -[QemuCocoaAppController app= licationDidFinishLaunching:] (self=3D0x7fd10be0c580, _cmd=3D0x7fff8587b240,= note=3D0x7fd10bd2a5c0) at ui/cocoa.m:793=0A#9=A0 0x00007fff8d870e0c in __C= FNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ ()=0A#10 0x00007fff8d76= 482d in _CFXNotificationPost ()=0A#11 0x00007fff8710d7ba in -[NSNotificatio= nCenter postNotificationName:object:userInfo:] ()=0A#12 0x00007fff8c447b69 = in -[NSApplication _postDidFinishNotification] ()=0A#13 0x00007fff8c44789c = in -[NSApplication _sendFinishLaunchingNotification] ()=0A#14 0x00007fff8c4= 44786 in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] ()=0A#1= 5 0x00007fff8c4441db in -[NSApplication(NSAppleEventHandling) _handleCoreEv= ent:withReplyEvent:] ()=0A#16 0x00007fff8712bf0a in -[NSAppleEventManager d= ispatchRawAppleEvent:withRawReply:handlerRefCon:] ()=0A#17 0x00007fff8712bd= 7d in _NSAppleEventManagerGenericHandler ()=0A#18 0x00007fff8dc34e1f in aeD= ispatchAppleEvent ()=0A#19 0x00007fff8dc34c32 in dispatchEventAndSendReply = ()=0A#20 0x00007fff8dc34b36 in aeProcessAppleEvent ()=0A#21 0x00007fff8aad4= 161 in AEProcessAppleEvent ()=0A#22 0x00007fff8c4400b6 in _DPSNextEvent ()= =0A#23 0x00007fff8c43f89b in -[NSApplication nextEventMatchingMask:untilDat= e:inMode:dequeue:] ()=0A#24 0x00007fff8c43399c in -[NSApplication run] ()= =0A#25 0x0000000103b1d48a in main (argc=3D14, argv=3D0x7fff5c39c9c8) at ui/= cocoa.m:952=0A(gdb)=A0=0A=0A- when i launch qemu from within gdb after disa= bling signal interception (nostop, noprint for SIGUSR1 and SIGUSR2), the bl= ack window just stays as is and nothing is loaded.=0A=0AThe configure scrip= t picked the sigaltstack as the =A0coroutine backend. =A0(I would love to s= witch it away from sigaltstack, and onto gthread, but I read enough to sugg= est that qemu is not stable with gthread... so i went with the defaults, fo= r the time being).=0A=A0=0AWhat am i doing wrong?=0A=0AI would appreciate s= ome pointers.=0A=0AThanks!=0ANancy=0A ---589800495-177128391-1407765783=:39657 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

Here is my environment:

1- qemu 1.7.1
2- MacOSX 10.9.4
3- glib &a= mp; friends 2.40.0
4- co= nfigure=0A statement as copied from config.status:
exec './configure' '--enable-cocoa' '--target-li= st=3Darm-softmmu' '--disable-vnc' '--enable-debug'
5- The kernel image and rootfs are built via yoc= to-project (standard, out of the box, no custom bitbake recipes or anything= )
6- the command line arguments passed to the executable are:
-kernel /Users/myhome/Projects/QEMU/FinalQEMUBuild/qemuarm/zImage--3.10.17-qemuarm= .bin -M versatilepb -hda=0A /Users/myhome/Projects/QEMU/FinalQEMUBuild/qemu= arm/core-image-minimal-qemuarm.rootfs.ext3 -no-reboot -show-cursor -usb -us= bdevice wacom-tablet --append "root=3D/dev/sda rw console=3DttyAMAO console= =3Dtty ip=3D192.168.7.2::192.168.7.1:.55.255.255.0 mem=3D128M highres=3Doff= "
 

=3D=3D=3D=3D> Results:
- a cocoa window shows up entirely white with absolutely nothing showing...
- when i refresh it (minimize, then show), it turns entir= ely black
- when i gdb-a= ttach to the process, this is the stack trace:

(gdb) bt
#0 =0A 0x00007fff84a129aa in select$DARWI= N_EXTSN ()
#1  0x00000001045a36d3 in g_poll ()
#2  0x0000000103aebe69 in qemu_poll_ns (fds=3D0x7fd10= eb00100, nfds=3D4, timeout=3D29021000) at qemu-timer.c:319
#3  0x0000000103a96bb3 in os_host_main_loop_wait (timeout=3D29021000) at main-loop.c:228
#4  0x0000000103a96a0c in main_loop_wait (nonblocking=3D0) at= main-loop.c:483
#5  0x0000000103b34a86 in main_lo= op () at vl.c:2015
#6  0x00= 00000103b2ee86 in qemu_main (argc=3D14, argv=3D0x7fff5c39c9c8, envp=3D0x7ff= f5c39ca40) at vl.c:4379
#7  0x0000000103b1c629 in -[QemuCocoaAppC= ontroller startEmulationWithArgc:argv:] (self=3D0x7fd10be0c580, _cmd=3D0x10= 3d7110c, argc=3D14, argv=3D0x7fff5c39c9c8) at ui/cocoa.m:815
#8  0x0000000103b1c42f in -[QemuCocoaAppController applicationDi= dFinishLaunching:] (self=3D0x7fd10be0c580, _cmd=3D0x7fff8587b240, note=3D0x= 7fd10bd2a5c0) at ui/cocoa.m:793
#9  0x00007fff8d870e0c in __CF= NOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ ()
#= 10 0x00007fff8d76482d in _CFXNotificationPost ()
#11 0x= 00007fff8710d7ba in -[NSNotificationCenter postNotificationName:object:user= Info:] ()
#12 0x00007fff8c447b69= in -[NSApplication _postDidFinishNotification] ()
#13 = 0x00007fff8c44789c in=0A -[NSApplication _sendFinishLaunchingNotification] = ()
#14 0x00007fff8c444786 in -[NSApplication(NSAppleEve= ntHandling) _handleAEOpenEvent:] ()
#15 0x00007fff8c444= 1db in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEven= t:] ()
#16 0x00007fff8712bf0a in -[NSAppleEventManager dispatchRawAppleEvent:withRawR= eply:handlerRefCon:] ()
#17 0x00007fff8712bd7d in _NSAp= pleEventManagerGenericHandler ()
#18 0x00007fff8dc34e1f= in aeDispatchAppleEvent ()
#19 0x00007fff8dc34c32 in dispatchEventAndSendReply ()
#20 0x00007fff8dc34b36 in= aeProcessAppleEvent ()
#21 0x00007fff8aad4161 in AEPro= cessAppleEvent ()
#22 0x00007fff8c4400b6 in _DPSNextEve= nt ()
#23 0x00007fff8c43f89b = in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#24 0x00007fff8c43399c in -[NSApplic= ation run] ()
#25 0x0000000103b1d48a in main (argc=3D14= , argv=3D0x7fff5c39c9c8) at ui/cocoa.m:952
(gdb) 

- when i launch qemu from within gdb aft= er disabling signal interception (nostop, noprint for SIGUSR1 and SIGUSR2),= the black window just stays as is and nothing is loaded.

The configure=0A script picked the sigaltstack as the  = ;coroutine backend.  (I would love to switch it away from sigaltstack,= and onto gthread, but I read enough to suggest that qemu is not stable wit= h gthread... so i went with the defaults, for the time being).
 
What am i doing wrong?

I would appreciate some pointers.

Thanks!
Nancy

=
---589800495-177128391-1407765783=:39657--