<div dir="ltr"><div><div>Hi All,<br><br></div><div>Modifying the view port as follows solves the issue 1. However still not getting what could be the cause of segmentation fault with direct usage of ILM apis.<br><br> //wl_viewport_set_destination (window->video_viewport, res.w, res.h);<br> wl_viewport_set_destination (window->video_viewport, 800, 480);<br><br></div>Thanks & Regards,<br></div>Vikash<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 24, 2017 at 3:28 PM, Vikas Patil <span dir="ltr"><<a href="mailto:vikasmpatil@gmail.com" target="_blank">vikasmpatil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear All,<br><br>I am trying to add support for wayland-ivi-extension 1.11.0 to waylandsink [1] (video sink plug-in from gstreamer1.0-plugins-bad package) for Jacinto6 SoC using following two methods.<br><br>1. Using ivi-application protocol similar to simple-egl.c (test from weston)<br>- This works.<br>- Here is video size is 1280x720 and screen resolution is 800x480 then only top left of video is visible. How should I fix this?<br><br><br>2. Using ilmClient and ilmControl APIs directly.<br>- This do not work and gives segmentation fault with below call stack. I have checked the calls and setup seems correct to me. <br>- I thought it might be wayland sink uses drm protocol to allocate buffers which will be attached to created surfaces and tried to disable thatpath and instead use SHM.<br>With this also the same behavior. <br><br>Any inputs? Attached here the patch for wayland sink which implements ilm support. <br><br>Any inputs after looking at the call stack? <br><br>#0 0xb6812928 in wl_proxy_marshal_constructor (proxy=0x150410, opcode=opcode@entry=1, interface=0xb6827714 <wl_registry_interface>)<br> at ../wayland-1.11.0/src/wayland-<wbr>client.c:729<br>#1 0xb6851e98 in wl_display_get_registry (wl_display=<optimized out>) at /usr/include/wayland-client-<wbr>protocol.h:957<br>#2 init_client () at /usr/src/debug/wayland-ivi-<wbr>extension/1.11.0-r1/git/ivi-<wbr>layermanagement-api/ilmClient/<wbr>src/ilm_client_wayland_<wbr>platform.c:207<br>#3 get_client_instance () at /usr/src/debug/wayland-ivi-<wbr>extension/1.11.0-r1/git/ivi-<wbr>layermanagement-api/ilmClient/<wbr>src/ilm_client_wayland_<wbr>platform.c:235<br>#4 0xb6852128 in wayland_surfaceCreate (nativehandle=3051387744, width=<optimized out>, height=<optimized out>, pixelFormat=<optimized out>, <br> pSurfaceId=0xb688fe04 <ilmSurfaceId>)<br> at /usr/src/debug/wayland-ivi-<wbr>extension/1.11.0-r1/git/ivi-<wbr>layermanagement-api/ilmClient/<wbr>src/ilm_client_wayland_<wbr>platform.c:273<br>#5 0xb687cb10 in create_ilm_surface (window=0xb5e05150, display=0x150410) at ../../../git/ext/wayland/<wbr>wlwindow.c:252<br>#6 gst_wl_window_new_internal (display=0x150410) at ../../../git/ext/wayland/<wbr>wlwindow.c:383<br>#7 0xb687d3b4 in gst_wl_window_new_toplevel (display=<optimized out>, info=info@entry=0x14fff0) at ../../../git/ext/wayland/<wbr>wlwindow.c:395<br>#8 0xb68787c0 in gst_wayland_sink_render (bsink=0x14fde8, buffer=0xb5504b68) at ../../../git/ext/wayland/<wbr>gstwaylandsink.c:658<br>#9 0xb691b134 in gst_base_sink_do_preroll () from /usr/lib/libgstbase-1.0.so.0<br>Cannot access memory at address 0x0<br>#10 0x0014fde8 in ?? ()<br>Cannot access memory at address 0x0<br>Backtrace stopped: previous frame identical to this frame (corrupt stack?)<br><br><br>[1] <a href="https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/wayland?id=1.6.3" target="_blank">https://cgit.freedesktop.org/<wbr>gstreamer/gst-plugins-bad/<wbr>tree/ext/wayland?id=1.6.3</a><br><br>Thanks you all in advance.<br><br>Thanks & Regards,<br>Vikash<br></div>
</blockquote></div><br></div>