<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Segmentation fault when calling eglMakeCurrent in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/506007#M82213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it is using p7.4 according to the kernel-module-imx-gpu-viv_5.0.11.p7.4+fslc.bb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tested this problem on two platforms. One on a custom board running 3.14.52_1.1.0_ga and p7.4. Then we try the same thing on a Sabre running 4.1.15-1.1.0_ga and p8.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So eventually, we want the fix to be on 3.14.52_1.1.0_ga and p7.4. But so far it seems to be okay running this 3.14.52_1.1.0_ga and p8.4+patch combo except the issue that I mentioned on libGAL.so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 18:29:09 GMT</pubDate>
    <dc:creator>charlesung</dc:creator>
    <dc:date>2016-06-16T18:29:09Z</dc:date>
    <item>
      <title>Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505944#M82150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using OpenVG with X11 on the imx6 and we encounter a problem that eglMakeCurrent will occasionally crash with segmentation fault. Not very sure on the cause. The input parameters seem to be valid at the time of the call. Below is the call stack when it dies.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;==4346== Process terminating with default action of signal 11 (SIGSEGV)&lt;/P&gt;&lt;P&gt;==4346==&amp;nbsp; Access not within mapped region at address 0x394&lt;/P&gt;&lt;P&gt;==4346==&amp;nbsp;&amp;nbsp;&amp;nbsp; at 0x5E9DF64: gcoSURF_ReferenceSurface (gc_hal_user_surface.c:12505)&lt;/P&gt;&lt;P&gt;==4346==&amp;nbsp;&amp;nbsp;&amp;nbsp; by 0x5F90CC7: _CreateSurfaceObjects (gc_egl_surface.c:604)&lt;/P&gt;&lt;P&gt;==4346==&amp;nbsp;&amp;nbsp;&amp;nbsp; by 0x5F917CF: veglResizeSurface (gc_egl_surface.c:1389)&lt;/P&gt;&lt;P&gt;==4346==&amp;nbsp;&amp;nbsp;&amp;nbsp; by 0x5F8D34B: veglMakeCurrent (gc_egl_context.c:2508)&lt;/P&gt;&lt;P&gt;==4346==&amp;nbsp;&amp;nbsp;&amp;nbsp; by 0x5F8DD43: eglMakeCurrent (gc_egl_context.c:2633)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached the valgrind output that shows the steps that lead to this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336946"&gt;eglmakecurrent_bad.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 17:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505944#M82150</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-05T17:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505945#M82151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, charles,&lt;/P&gt;&lt;P&gt;could you tell me which version of gpu driver you are using? which bsp&amp;nbsp; such as 3.10.17, 3.14.52 or 4.1.15 etc.&lt;/P&gt;&lt;P&gt;which hardware imx6q, 6dl, 6sl or 6sx?&lt;/P&gt;&lt;P&gt;I believe you are using x11 backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it will be helpful if you can share your openvg application that encounters segmentation fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 20:30:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505945#M82151</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-05-05T20:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505946#M82152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We first notice this on a custom board using imx6q running 3.14.52-1.1.0 with x11. Then we try this on a Sabre board running the latest yocto release (4.1.15-1.1.0) hoping the new release may have this fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the app side, we have our own custom QT qpa that is similar to xcb but has a VG paint engine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 20:43:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505946#M82152</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-05T20:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505947#M82153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The latest yocto release in community is 4.1.15-1.0.0_ga so far,&amp;nbsp; where did you get the release 4.1.15-1.1.0?&lt;/P&gt;&lt;P&gt;I built from here &lt;A href="http://git.freescale.com/git/cgit.cgi/imx/fsl-arm-yocto-bsp.git/?h=imx-4.1.15-1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/fsl-arm-yocto-bsp.git/?h=imx-4.1.15-1.0.0_ga"&gt;fsl-arm-yocto-bsp.git - Freescale i.MX Yocto Project manifests&lt;/A&gt; &lt;/P&gt;&lt;P&gt;So, in your case, it is x11 backend with QT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 22:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505947#M82153</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-05-05T22:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505948#M82154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/i.mx-6quad-processors-high-performance-3d-graphics-hd-video-arm-cortex-a9-core:i.MX6Q?fpsp=1&amp;amp;tab=Documentation_Tab"&gt;http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/i.mx-6quad-processors-high-performance-3d-graphics-hd-video-arm-cortex-a9-core:i.MX6Q?fpsp=1&amp;amp;tab=Documentation_Tab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see the release notes for 4.1.15-1.1.0_ga near the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are not using the normal xcb qpa backend provided by QT since that does not use OpenVG. We have our own custom qpa that interfaces with x11 but has a custom paint engine that use VG for rendering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 22:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505948#M82154</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-05T22:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505949#M82155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is your gpu driver version?&amp;nbsp; p8.4_ga or p8.4_rc2 or p8.3,&amp;nbsp; from gpu commits, there are some fixes for openvg memory leak in gpu p8.4_ga release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot reproduce this issue using our openvg sample application although I tried many times. The eglMakeCurrent() api works OK.&lt;/P&gt;&lt;P&gt;From your debug message, it seems the rendering surface access is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I need your app to reproduce it if the newest p8.4 gpu driver cannot fix your issue.&lt;/P&gt;&lt;P&gt;But, I need to sync waht you said your qpa interface with x11.&amp;nbsp;&amp;nbsp; I don't know if I can run your apps in our qt enviroment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 00:31:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505949#M82155</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-05-06T00:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505950#M82156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The gpu driver being used should be p8.3 based on the yocto content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 16:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505950#M82156</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-06T16:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505951#M82157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get p8.4 in external mirror&amp;nbsp; &lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Flgfiles%2FNMG%2FMAD%2FYOCTO%2Fimx-gpu-viv-5.0.11.p8.4-hfp.bin" rel="nofollow" target="_blank"&gt;http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-gpu-viv-5.0.11.p8.4-hfp.bin&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;You may try is gpu driver first to see if it can fix your problem&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 21:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505951#M82157</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-05-06T21:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505952#M82158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run into an error during unpacking. Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do you accept the EULA you just read? (y/N) y&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EULA has been accepted. The files will be unpacked at 'imx-gpu-viv-5.0.11.p8.4-hfp'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Unpacking file .......................................................................................................................................................................................................................................................................................................................................................................................................................................ERROR: &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.Signal caught, cleaning up&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 16:42:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505952#M82158</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-09T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505953#M82159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, y.&lt;/P&gt;&lt;P&gt;I can get it without any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will pack it for you.&amp;nbsp; I replaced it , It seems it passed the eglMakeCurrent(0 without seg fault.&amp;nbsp; But, I got some error of undefined symblol in lib you sent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 00:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505953#M82159</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-05-10T00:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505954#M82160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I transweb the file to you.&amp;nbsp; It is too large to be attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 00:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505954#M82160</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-05-10T00:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505955#M82161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied most of the .so files in gpu-core folder that are relevant to my target and the problem still exists. The valgrind looks almost identical with slight difference in some line numbers but that is about it. I have attached the valgrind output that shows the steps that lead to the seg fault after it enters the eglMakeCurrent function. The output is captured with the new gpu driver in place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505955#M82161</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-11T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505956#M82162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any code that you use to verify OpenVG on X11 that you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505956#M82162</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-05-11T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505957#M82163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If gpu 8.4 cannot fix your issue,&amp;nbsp; I have no clue so far what causes the seg fault.&amp;nbsp; Yes, We do have openvg samples we can share.&amp;nbsp; in /opt/fsl-gpu-sdk/OpenVG, it has all the openvg sample applications.&amp;nbsp; And you can download demo framework to built it.&amp;nbsp; demo framework is release in every version of yocto release.&amp;nbsp; &lt;/P&gt;&lt;P&gt;You can also download from git stash sw-stash.freescale.net/scm/gtec/demo-framework.git, it also released as stand alone package in nxp website.&lt;/P&gt;&lt;P&gt;Demo framework sample are all C++,&amp;nbsp;&amp;nbsp; Do you need sample application in c for openVG?&amp;nbsp; I can package for you.&amp;nbsp; They are also in old release like 3.10.17 bsp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 00:13:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505957#M82163</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-06-01T00:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505958#M82164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the numerous reported issues "Conditional jump or move depends on uninitialised value" from Charles' report?&amp;nbsp; These include source file and line numbers for you to confirm.&amp;nbsp; These are scattered across gc_hal_user_os.c gc_hal_user_hardware_vg.c gc_egl_surface.c etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These should be the starting point to investigating the reported issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 22:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505958#M82164</guid>
      <dc:creator>sebastient</dc:creator>
      <dc:date>2016-06-01T22:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505959#M82165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/chinglingwang"&gt;chinglingwang&lt;/A&gt;​ please continue with the follow up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505959#M82165</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2016-06-08T21:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505960#M82166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put email watch for this thread, But, it seems not coming to my mailbox.&amp;nbsp; Sorry about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked into the output, it seems openvg cannot allocate the egl surface memory specified by your app.&lt;/P&gt;&lt;P&gt;From your log,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native win geometry after resize 0,48,1280,672&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Number of queued expose event 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expose region 0,0,1280,672&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if region is&amp;nbsp; 0,48,1280,672, the surface actually size is 1280x(672-48), I think 0, 48 means the staring point,&amp;nbsp; why expors region 0,0, 1280, 672,&amp;nbsp; the surface size is 1280x672? it is becoming bigger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. 672 is not 16 bits aligned,&amp;nbsp; could you pass your surface parameter as 16 bits aligned?&amp;nbsp; is your display 1280x720?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I also attached our sample openvg applications that you can take it as reference for openvg egl setup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505960#M82166</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-06-09T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505961#M82167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Yes, it is a rect of x,y,w,h.&amp;nbsp; Otherwise it is not clear what the question is?&amp;nbsp; This is an X11 surface, a window could be anywhere on the screen.&lt;/LI&gt;&lt;LI&gt;1280 is 16-byte aligned, any value for height will therefore also be 16-byte aligned.&lt;/LI&gt;&lt;LI&gt;The issue is not on setup, it's really while handling window resize that the issue is seen.&lt;/LI&gt;&lt;LI&gt;Have you looked at the Valgrind output which points to conditional branches on uninitialized variables within the driver?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:09:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505961#M82167</guid>
      <dc:creator>sebastient</dc:creator>
      <dc:date>2016-06-09T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505962#M82168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of the examples demonstrates the case that the X11 window being resize dafter surface creation, which is where we think the problem is. Our guess is that there is something in the driver that handles that but we really do not know without the source code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505962#M82168</guid>
      <dc:creator>charlesung</dc:creator>
      <dc:date>2016-06-09T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault when calling eglMakeCurrent</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505963#M82169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When resize, you need to destroy the old surface you created before, then eglCreateSurface again.&amp;nbsp;&amp;nbsp; I didn't see it in your log.&lt;/P&gt;&lt;P&gt;The reason you got valgind output pointing to conditional branches is that in the drvier, gpu check the buffer size, it thinks that what you want is bigger than what it is for max buffer size it has, so it returns out of mememory error, and it exits and do some cleaning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the width and height both better to be 16 bits aligned when creating egl surface.&lt;/P&gt;&lt;P&gt;usually, 8 bits is ok, but, I talked to driver engineer, it is better to be 16 bits aligned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to see if I can get some resize sample for openvg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Segmentation-fault-when-calling-eglMakeCurrent/m-p/505963#M82169</guid>
      <dc:creator>chingling_wang</dc:creator>
      <dc:date>2016-06-09T17:14:59Z</dc:date>
    </item>
  </channel>
</rss>

