<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 29, 2019 at 9:41 AM Ikshwaku Chauhan <<a href="mailto:ikshwaku.ec2004@gmail.com">ikshwaku.ec2004@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello All, <div><br></div><div><br></div><div>We are using Xorg version 1.14 and layermanger 1.1 with chromium browser on NXP i.MX6 platform. </div><div>In one of our usecase chromium browser is crashing and we have found that, this happens after XMapWindow api is called and browser is waiting for MapNotify event with XWindowEvent call. Browser is waiting for MapNotify event but XWindowEvent is not returning and which results browser crash after sometime.</div><div>In our environment multiple X based apps are working</div><div><br></div><div>Could anyone know about this issue? or having same insight about this behavior? </div><div>Please provide you inputs.</div></div></div></div></blockquote><div><br></div><div>Waiting for the first MapNotify event before drawing to the window is the correct way (e.g. [1]).</div><div><br></div><div>You can easily check that the MapNotify event is emitted after the initial MapRequest using xev, e.g.:</div><div><br></div><div>```<br></div><div>    $ xev<br>    Outer window is 0x1000001, inner window is 0x1000002<br>    [...]<br>    CreateNotify event, serial 11, synthetic NO, window 0x1000001,<br>        parent 0x1000001, window 0x1000002, (10,10), width 50, height 50<br>    border_width 4, override NO<br><br>    PropertyNotify event, serial 14, synthetic NO, window 0x1000001,<br>        atom 0xff (WM_PROTOCOLS), time 931817426, state PropertyNewValue<br><br>    MapNotify event, serial 15, synthetic NO, window 0x1000001,<br>        event 0x1000001, window 0x1000002, override NO<br><br>    ConfigureNotify event, serial 28, synthetic NO, window 0x1000001,</div><div>    [...]</div><div>```<br></div><div></div><div><br></div><div>If you get that MapNotify event with xev on first map request, then chances are the bug is not in the Xserver (I would be surprised if it were).</div><div><br></div><div>HTH,<br></div><div>Cheers,</div><div>Olivier<br></div><div><br></div><div>[1] <a href="https://tronche.com/gui/x/xlib-tutorial/">https://tronche.com/gui/x/xlib-tutorial/</a><br></div></div></div></div></div>