<div dir="ltr">O thanks for the hint about mailing list,<div>and for clarification on the dispatching logic(I'm not original English speaker and assume "havok" is like behavior? )</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-07-27 21:33 GMT+02:00 Giulio Camuffo <span dir="ltr"><<a href="mailto:giuliocamuffo@gmail.com" target="_blank">giuliocamuffo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FIY, You dropped the mailing list in your reply.<br>
<br>
2014-07-27 22:15 GMT+03:00 Eugen Friedrich <<a href="mailto:friedrix@gmail.com">friedrix@gmail.com</a>>:<br>
<div class="">> The problem is the app never calls  wl_display_distpath(_pending)<br>
> it just creates native handles and then uses EGL for rendering and the<br>
> events on the main wayland display queue are never dispatched<br>
><br>
> I think if EGL triggers the event(ba calling wl_diplay_sync) it should be<br>
> also responsible for dispatching<br>
<br>
</div>EGL should not dispatch the main queue, that would break havok in the<br>
apps. What you should do is dispatch the main queue in your app's main<br>
loop.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
><br>
> 2014-07-27 20:42 GMT+02:00 Giulio Camuffo <<a href="mailto:giuliocamuffo@gmail.com">giuliocamuffo@gmail.com</a>>:<br>
><br>
>> 2014-07-27 21:14 GMT+03:00 Eugen Friedrich <<a href="mailto:friedrix@gmail.com">friedrix@gmail.com</a>>:<br>
>> > Hi all,<br>
>> ><br>
>> > after debugging a memory consumption issue in simple wayland application<br>
>> > i<br>
>> > found a issue in our wayland graphics backend. Then i took a look into<br>
>> > the<br>
>> > mesa implementation and found the quite similar implementation there.<br>
>> ><br>
>> > Our graphics stack creates it's own wayland queue and uses this queue<br>
>> > for<br>
>> > all wayland objects and only this queue will be dispatched. Our graphics<br>
>> > stack calls also wl_display_sync api and the issue is that the wayland<br>
>> > library will send a delete event which will go to the default queue of<br>
>> > wayland display but this is never dispatched from the driver and the<br>
>> > memory<br>
>> > consumption increases.<br>
>> ><br>
>> > So should the graphics stack dispatch also the default queue or should<br>
>> > application call somewhere wl_display_dispatch_pending?<br>
>><br>
>> I don't see why the memory consumption should increase. The app should<br>
>> call wl_display_distpath(_pending) in its main loop, but I'm afraid i<br>
>> don't quite understand your problem.<br>
>><br>
>> --<br>
>> Giulio<br>
>><br>
>><br>
>> ><br>
>> > _______________________________________________<br>
>> > wayland-devel mailing list<br>
>> > <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
>> > <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>