<?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>i.MX ProcessorsのトピックRe: surfaceflinger keeps restarting - fb buffer 0 allocation failed err=Out of memory</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316421#M41914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using boundary devices 4.0.4 build and all I did was tweaked the u-boot, kernel, and init.rc scripts to bring up Android on my custom board. The boundary devices build works on the sabrelite board (I don't get the SurfaceFlinger error on the sabrelite board), so I feel like I am missing a step when porting this to my custom board. When I do lsmod, I don't see any kernel modules loaded on my custom board. Shouldn't the vivante drivers be loaded as kernel modules? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 15:35:13 GMT</pubDate>
    <dc:creator>varsmolta</dc:creator>
    <dc:date>2014-07-08T15:35:13Z</dc:date>
    <item>
      <title>surfaceflinger keeps restarting - fb buffer 0 allocation failed err=Out of memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316419#M41912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am porting android 4.0.4 (based on freescale 13.4-ga release) to a custom board and surfaceflinger keeps shutting down and restarting. Here is the error I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I/ServiceManager( 2477): Waiting for service SurfaceFlinger...&lt;/P&gt;&lt;P&gt;I/ServiceManager( 2477): Waiting for service SurfaceFlinger...&lt;/P&gt;&lt;P&gt;I/SurfaceFlinger( 2499): SurfaceFlinger is starting&lt;/P&gt;&lt;P&gt;I/SurfaceFlinger( 2499): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...&lt;/P&gt;&lt;P&gt;I/imx6.gralloc( 2499): primary display name lcd&lt;/P&gt;&lt;P&gt;I/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( 2499): XmlTool()&lt;/P&gt;&lt;P&gt;I/imx6.gralloc( 2499): colordepth is 0&lt;/P&gt;&lt;P&gt;I/imx6.gralloc( 2499): disp_mode is&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): using (fd=12)&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DISP3 BG&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): xres&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 480 px&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): yres&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 272 px&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): xres_virtual = 480 px&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): yres_virtual = 1152 px&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): bpp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 16&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): r&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 11:5&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): g&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; 5:6&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; 0:5&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): width&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 76 mm (160.421051 dpi)&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): height&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 43 mm (160.669769 dpi)&lt;/P&gt;&lt;P&gt;W/imx6.gralloc( 2499): refresh rate = 179.54 Hz&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E/FramebufferNativeWindow( 2499): fb buffer 0 allocation failed w=480, h=272, err=Out of memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E/FramebufferNativeWindow( 2499): fb buffer 1 allocation failed w=480, h=272, err=Out of memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E/FramebufferNativeWindow( 2499): fb buffer 2 allocation failed w=480, h=272, err=Out of memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;D/libEGL&amp;nbsp; ( 2499): loaded /system/lib/egl/libGLES_android.so&lt;/P&gt;&lt;P&gt;D/libEGL&amp;nbsp; ( 2499): loaded /system/lib/egl/libEGL_VIVANTE.so&lt;/P&gt;&lt;P&gt;D/libEGL&amp;nbsp; ( 2499): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so&lt;/P&gt;&lt;P&gt;D/libEGL&amp;nbsp; ( 2499): loaded /system/lib/egl/libGLESv2_VIVANTE.so&lt;/P&gt;&lt;P&gt;W/SurfaceFlinger( 2499): ro.sf.lcd_density not defined, using 160 dpi by default.&lt;/P&gt;&lt;P&gt;E/libagl&amp;nbsp; ( 2499): connect() failed to lock buffer 0x1786548 (480x272)&lt;/P&gt;&lt;P&gt;E/libEGL&amp;nbsp; ( 2499): eglMakeCurrent:680 error 3002 (EGL_BAD_ACCESS)&lt;/P&gt;&lt;P&gt;E/SurfaceFlinger( 2499): Couldn't create a working GLES context. check logs. exiting...&lt;/P&gt;&lt;P&gt;I/ServiceManager( 2288): service 'power' died&lt;/P&gt;&lt;P&gt;I/ServiceManager( 2288): service 'entropy' died&lt;/P&gt;&lt;P&gt;I/ServiceManager( 2288): service 'sensorservice' died&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My kernel command line is:&lt;/P&gt;&lt;P&gt;enable_wait_mode=off console=ttymxc0,115200 vmalloc=400M consoleblank=0 rootdelay=3 video=mxcfb0:dev=lcd,DTECH,if=RGB666 fbmem=28M androidboot.bootdev=sdhci-esdhc-&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;imx.0 androidboot.hardware=freescale androidboot.console=ttymxc0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The kernel boot lines of interest are:&lt;/P&gt;&lt;P&gt;MIPI DSI driver module loaded&lt;/P&gt;&lt;P&gt;mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver lcd&lt;/P&gt;&lt;P&gt;pwm_config: pwm freq = 32786, clk_select=2 clock_rate=6000000&lt;/P&gt;&lt;P&gt;pwm_config: pwm freq = 20000, clk_select=2 clock_rate=6000000&lt;/P&gt;&lt;P&gt;mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver lcd&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mxc_sdc_fb mxc_sdc_fb.1: ipu0-di0 already in use&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mxc_sdc_fb: probe of mxc_sdc_fb.1 failed with error -16&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver ldb&lt;/P&gt;&lt;P&gt;_regulator_get: get() with no identifier&lt;/P&gt;&lt;P&gt;imx-ipuv3 imx-ipuv3.1: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)&lt;/P&gt;&lt;P&gt;pwm_config: pwm freq = 32786, clk_select=2 clock_rate=6000000&lt;/P&gt;&lt;P&gt;pwm_config: pwm freq = 20000, clk_select=2 clock_rate=6000000&lt;/P&gt;&lt;P&gt;mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here is the repeated logs of surfaceflinger shutting down and restarting:&lt;/P&gt;&lt;P&gt;root@android:/ # init: starting 'surfaceflinger'&lt;/P&gt;&lt;P&gt;init: waitpid returned pid 2470, status = 00000000&lt;/P&gt;&lt;P&gt;init: process 'surfaceflinger', pid 2470 exited&lt;/P&gt;&lt;P&gt;init: process 'surfaceflinger' killing any children in process group&lt;/P&gt;&lt;P&gt;init: service 'zygote' is being killed&lt;/P&gt;&lt;P&gt;init: starting 'zygote'&lt;/P&gt;&lt;P&gt;init: waitpid returned pid 2445, status = 00000009&lt;/P&gt;&lt;P&gt;init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'&lt;/P&gt;&lt;P&gt;init: untracked pid 2445 exited&lt;/P&gt;&lt;P&gt;init: waitpid returned pid 2453, status = 00000009&lt;/P&gt;&lt;P&gt;init: untracked pid 2453 exited&lt;/P&gt;&lt;P&gt;init: starting 'surfaceflinger'&lt;/P&gt;&lt;P&gt;init: waitpid returned pid 2499, status = 00000000&lt;/P&gt;&lt;P&gt;init: process 'surfaceflinger', pid 2499 exited&lt;/P&gt;&lt;P&gt;init: process 'surfaceflinger' killing any children in process group&lt;/P&gt;&lt;P&gt;init: service 'zygote' is being killed&lt;/P&gt;&lt;P&gt;init: starting 'zygote'&lt;/P&gt;&lt;P&gt;init: waitpid returned pid 2473, status = 00000009&lt;/P&gt;&lt;P&gt;init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'&lt;/P&gt;&lt;P&gt;init: untracked pid 2473 exited&lt;/P&gt;&lt;P&gt;init: waitpid returned pid 2477, status = 00000009&lt;/P&gt;&lt;P&gt;init: untracked pid 2477 exited&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:49:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316419#M41912</guid>
      <dc:creator>varsmolta</dc:creator>
      <dc:date>2014-07-07T06:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: surfaceflinger keeps restarting - fb buffer 0 allocation failed err=Out of memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316420#M41913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi varsmolta&lt;/P&gt;&lt;P&gt;please apply latest GPU fixes on link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-101272"&gt;Upgrade GPU to p13 and include some other critical fixes for ICS R13.4.1 release&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general seems there is no sufficient memory, please check optimization&lt;/P&gt;&lt;P&gt;hints below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93591"&gt;Memory Management on i.MX6 Android&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it is highly recommended to migrate to latest Android, since&lt;/P&gt;&lt;P&gt;it has already all GPU fixes implemented and older kernels have some memory&lt;/P&gt;&lt;P&gt;management issues unresolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;nodeId=018rH3ZrDRB24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;IMX6_JB43_110_ANDROID_SOURCE_BSP&lt;/A&gt; &lt;IMG alt="" class="jiveImage" src="http://www.freescale.com/files/graphic/SECURITYINFOIMAGE.gif" /&gt; : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite,&lt;/P&gt;&lt;P&gt;i.MX 6Solo and i.MX 6Sololite Android jb4.3_1.1.0 0 BSP, Documentation and Source Code for BSP and Codecs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 06:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316420#M41913</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-07-08T06:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: surfaceflinger keeps restarting - fb buffer 0 allocation failed err=Out of memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316421#M41914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using boundary devices 4.0.4 build and all I did was tweaked the u-boot, kernel, and init.rc scripts to bring up Android on my custom board. The boundary devices build works on the sabrelite board (I don't get the SurfaceFlinger error on the sabrelite board), so I feel like I am missing a step when porting this to my custom board. When I do lsmod, I don't see any kernel modules loaded on my custom board. Shouldn't the vivante drivers be loaded as kernel modules? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 15:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316421#M41914</guid>
      <dc:creator>varsmolta</dc:creator>
      <dc:date>2014-07-08T15:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: surfaceflinger keeps restarting - fb buffer 0 allocation failed err=Out of memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316422#M41915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi varsmolta&lt;/P&gt;&lt;P&gt;I think better to post this to Boundary Devices &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://boundarydevices.com/community/" title="http://boundarydevices.com/community/"&gt;http://boundarydevices.com/community/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316422#M41915</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-07-08T23:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: surfaceflinger keeps restarting - fb buffer 0 allocation failed err=Out of memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316423#M41916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: This error got fixed when I moved to boundary devices android 4.2.2 JB build. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 03:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/surfaceflinger-keeps-restarting-fb-buffer-0-allocation-failed/m-p/316423#M41916</guid>
      <dc:creator>varsmolta</dc:creator>
      <dc:date>2014-07-10T03:33:33Z</dc:date>
    </item>
  </channel>
</rss>

