imx6SL android crashes in libGAL.so

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6SL android crashes in libGAL.so

2,718 Views
ramd
Contributor I

imx6SL using android ICS version crashes (SEGFAULT) in libGAL.so in  gcoOS_GetBaseAddress.

was there any know fixes to libGAL.so in later versions to fix this ?

Labels (3)
0 Kudos
8 Replies

1,096 Views
ramd
Contributor I

Below is detailed stack trace:

Could you help understand why this would occur ?

#00  pc 00028302  /system/lib/libGAL.so (gcoOS_GetBaseAddress)

I/DEBUG   (19707):          #01  pc 000016fe  /system/lib/hw/gralloc_viv.imx6.so (_Z16gc_gralloc_allocP14alloc_device_tiiiiPPK13native_handlePi)

I/DEBUG   (19707):          #02  pc 00001304  /system/lib/hw/gralloc_viv.imx6.so

I/DEBUG   (19707):          #03  pc 00001228  /system/lib/hw/gralloc.imx6.so

I/DEBUG   (19707):          #04  pc 000100da  /system/lib/libui.so (_ZN7android23FramebufferNativeWindowC1Ev)

I/DEBUG   (19707):          #05  pc 0001b5ce  /system/lib/libsurfaceflinger.so (_ZN7android15DisplayHardwareC2ERKNS_2spINS_14SurfaceFlingerEEEj)

I/DEBUG   (19707):          #06  pc 0002213a  /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger10readyToRunEv)

0 Kudos

1,096 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

Hi Fetch, you can have a try with the lastest p13 GPU update:https://community.freescale.com/docs/DOC-101272

1,096 Views
ramd
Contributor I

Hello Qiang Li,

Does this work for Chromium support on IMX6SL Hardware ?

0 Kudos

1,096 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

What's the OS do you use? That update is for Android only.

0 Kudos

1,096 Views
ramd
Contributor I

I am using Android as well.

0 Kudos

1,096 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

What's the result after you updated the GPU?

0 Kudos

1,096 Views
ramd
Contributor I

After updating GPU , i get below errors:

On copying the libGAL.so , surfaceflinger errors out with below errors:

I/DEBUG   (  690): I/DEBUG   (  690):          #00  pc 0002c9cc  /system/lib/libGAL.so (gcoHAL_QuerySeparated3D2D)

I/DEBUG   (  690):          #01  pc 0001ff34  /system/lib/libGAL.soI/DEBUG   (  690):          #02  pc 0003356c  /system/lib/libGAL.so

I/DEBUG   (  690):          #03  pc 00034346  /system/lib/libGAL.so (gcoSURF_Construct)

I/DEBUG   (  690):          #04  pc 00002be4  /system/lib/hw/gralloc_viv.imx6.so (_Z15gc_gralloc_wrapP16private_handle_tiiiimPv)

I/DEBUG   (  690):          #05  pc 000015b6  /system/lib/hw/gralloc_viv.imx6.so (_Z25gralloc_alloc_framebufferP14alloc_device_tiiiiPPK13native_handlePi)


Using old libGAL.so , with all other binaries updated results in below error, it's trying to open IPU , IPU is not present in IMX6SL. could you share binaries for imx6SL ?


I/SurfaceFlinger(13700): # of configs : 8

I/SurfaceFlinger(13700): vendor    : Google Inc.

I/SurfaceFlinger(13700): version   : 1.2 Android Driver 1.2.0

I/SurfaceFlinger(13700): extensions: EGL_KHR_image_base EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer

I/SurfaceFlinger(13700): Client API: OpenGL ES

I/SurfaceFlinger(13700): EGLSurface: 5-6-5-0, config=0x0

I/SurfaceFlinger(13700): OpenGL informations:

I/SurfaceFlinger(13700): vendor    : Android

I/SurfaceFlinger(13700): renderer  : Android PixelFlinger 1.4

I/SurfaceFlinger(13700): version   : OpenGL ES-CM 1.0

I/SurfaceFlinger(13700): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap

I/SurfaceFlinger(13700): GL_MAX_TEXTURE_SIZE = 4096

I/SurfaceFlinger(13700): GL_MAX_VIEWPORT_DIMS = 4096 x 4096

I/SurfaceFlinger(13700): flags = 00060000

W/imx6.gralloc(13700): ****fb_post

E/imx6.gralloc(13700): invalid gralloc handle (at 0x14caa28)

I/imx6.gralloc(13700): validate buffer < 0

I/SurfaceFlinger(13700): ****************

I/SurfaceFlinger(13700): Initialize hardware composer

I/SurfaceFlinger(13700):

I/FslHwcomposer(13700): *********hw open********

E/FslHwcomposer(13700): init:63,open ipu dev failed

E/HAL     (13700): load: module=/system/lib/hw/hwcomposer_viv.imx6.so

E/HAL     (13700): Cannot load library: reloc_library[1285]: 13700 cannot locate 'gcoSURF_GetBankOffsetBytes'...

E/FslHwcomposer(13700): Error! hw_get_module viv_hwc failed

I/SurfaceFlinger(13700): create shared block

I/SurfaceFlinger(13700): initialize primary display

I/        (13701): ServiceManager: 0x1a01958

0 Kudos

1,096 Views
ramd
Contributor I

I missed to apply kernel patches in my previous try.

I applied the kernel patches and used the libraries in ICS-13.4.1-GPU-upgrade-to-p13-Ver4.Rendering of text fails (+ IMX6 gralloc buffer call fails at validate level). Could you please help identify the problem here ?

Rendering of text fails at OpenGL level: Error Below:

D/libEGL  ( 3616): loaded /system/lib/egl/libEGL_VIVANTE.so

D/libEGL  ( 3616): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so

D/libEGL  ( 3616): loaded /system/lib/egl/libGLESv2_VIVANTE.so

I/libEGL ( 3616): EGL AFTER INIT EGL TRACE LEVEL

I/libEGL ( 3616): EGL INITIALIZE AND QUERY

I/libEGL ( 3616): EGL INITIALIZE AND QUERY

D/OpenGLRenderer( 3616): Enabling debug mode 0

E/OpenGLRenderer( 3616): Error while compiling shader:

E/OpenGLRenderer( 3616): Error while compiling shader:

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Error while compiling shader:

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Error while compiling shader:

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Error while compiling shader:

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

E/OpenGLRenderer( 3616): Font renderer unable to draw, attribute slots undefined

D/OpenGLRenderer( 3616): GL error from OpenGLRenderer: 0x502


Also , imx6 gralloc validate buffer call fails mismatch of params.

E/imx6.gralloc( 2617): invalid gralloc handle (at 0x191d940) version:12-12 , numInts:34-13, numFds:1-1, magic:51647890-1885827189

I/imx6.gralloc( 2617): validate buffer < 0 - not returning


Complete SurfaceFlinger logs with OpenGL invocation:

I/SurfaceFlinger( 2617): SurfaceFlinger is starting

I/SurfaceFlinger( 2617): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

I/SurfaceFlinger( 2617): initialize main display

I/SurfaceFlinger( 2617): display hardware call

I/SurfaceFlinger( 2617):

I/SurfaceFlinger( 2617): display hardware fsl imx display

W/imx6.gralloc( 2617): ****Error -1! Cannot open /sys/class/graphics/fb0/mode

W/imx6.gralloc( 2617): using (fd=10)

W/imx6.gralloc( 2617): id           = mxc_epdc_fb

W/imx6.gralloc( 2617): xres         = 758 px

W/imx6.gralloc( 2617): yres         = 1024 px

W/imx6.gralloc( 2617): xres_virtual = 768 px

W/imx6.gralloc( 2617): yres_virtual = 4096 px

W/imx6.gralloc( 2617): bpp          = 16

W/imx6.gralloc( 2617): r            = 11:5

W/imx6.gralloc( 2617): g            = 5:6

W/imx6.gralloc( 2617): b            = 0:5

W/imx6.gralloc( 2617): widthasdasdasdasdasdasdasd= 91

W/imx6.gralloc( 2617): width        = 91 mm (211.573624 dpi)

W/imx6.gralloc( 2617): height       = 122 mm (213.193436 dpi)

W/imx6.gralloc( 2617): refresh rate = 0.03 Hz

E/imx6.gralloc( 2617): fbSize is (3149824)

E/imx6.gralloc( 2617): fbSize is (3145728)

I/SurfaceFlinger( 2617): Display Hardware

I/SurfaceFlinger( 2617): Initialize EGL

D/libEGL ( 2617): loaded /system/lib/egl/libGLES_android.so

D/libEGL ( 2617): loaded /system/lib/egl/libEGL_VIVANTE.so

D/libEGL ( 2617): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so

D/libEGL ( 2617): loaded /system/lib/egl/libGLESv2_VIVANTE.so

I/SurfaceFlinger( 2617): display proper

I/libEGL ( 2617): EGL AFTER INIT EGL TRACE LEVEL

I/libEGL ( 2617): EGL INITIALIZE AND QUERY

I/libEGL ( 2617): EGL INITIALIZE AND QUERY

I/SurfaceFlinger( 2617): egl working as it supposed to

I/SurfaceFlinger( 2617): major=(1), minor=(4)

I/SurfaceFlinger( 2617): Number of configs= (48)

I/SurfaceFlinger( 2617): select config pixel format

I/SurfaceFlinger( 2617):

I/SurfaceFlinger( 2617): numconfigs n =(48)

I/SurfaceFlinger( 2617):

I/SurfaceFlinger( 2617): native visual id=(4), config=(0)

I/SurfaceFlinger( 2617): select pixel format err (0)

I/SurfaceFlinger( 2617): red=(5)

I/SurfaceFlinger( 2617): alpha=(0)

E/imx6.gralloc( 2617): invalid gralloc handle (at 0x191db50) version:12-12 , numInts:34-13, numFds:1-1, magic:51647890-1885827189

I/imx6.gralloc( 2617): validate buffer < 0 - not returning

W/imx6.gralloc( 2617): ****update to display

W/imx6.gralloc( 2617): ****update_to_display:left=0, top=0, width=758, height=1024 updatemode=4

W/imx6.gralloc( 2617): retval MXCFB_SEND_UPDATE 0

I/SurfaceFlinger( 2617): we can draw now !!!!

I/SurfaceFlinger( 2617): egl queried, width=(758), height=(1024)

I/SurfaceFlinger( 2617): don't preserve back buffer, partial updates

I/SurfaceFlinger( 2617): Egl Query surface

W/SurfaceFlinger( 2617): ro.sf.lcd_density not defined, using 160xxxxxxxx212 dpi by default.

I/SurfaceFlinger( 2617): mdensity=(1.000000)

I/SurfaceFlinger( 2617): egl context passed

I/SurfaceFlinger( 2617): eglMakeCurrent

I/SurfaceFlinger( 2617): make current successful

I/SurfaceFlinger( 2617): EGL informations:

I/SurfaceFlinger( 2617): # of configs : 48

I/SurfaceFlinger( 2617): vendor    : Vivante Corporation

I/SurfaceFlinger( 2617): version   : 1.4

I/SurfaceFlinger( 2617): extensions: EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_lock_surface EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_blob_cache EGL_ANDROID_recordable

I/SurfaceFlinger( 2617): Client API: OpenGL_ES OpenVG

I/SurfaceFlinger( 2617): EGLSurface: 5-6-5-0, config=0x1c

I/SurfaceFlinger( 2617): OpenGL informations:

I/SurfaceFlinger( 2617): vendor    : Vivante Corporation

I/SurfaceFlinger( 2617): renderer  : Vivante GC320

I/SurfaceFlinger( 2617): version   : OpenGL ES-CM 1.1

I/SurfaceFlinger( 2617): extensions: GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_byte_coordinates GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_extended_matrix_palette GL_OES_fixed_point GL_OES_framebuffer_object GL_OES_matrix_get GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_query_matrix GL_OES_read_format GL_OES_single_precision GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_mirrored_repeat GL_OES_EGL_image GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil1 GL_OES_stencil4 GL_OES_stencil8 GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_user_clip_plane GL_APPLE_texture_2D_limited_npot GL_EXT_texture_lod_bias GL_EXT_blend_minmax GL_EXT_read_format_bgra GL_EXT_multi_draw_arrays GL_OES_EGL_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_A

I/SurfaceFlinger( 2617): GL_MAX_TEXTURE_SIZE = 8192

I/SurfaceFlinger( 2617): GL_MAX_VIEWPORT_DIMS = 8192 x 8192

I/SurfaceFlinger( 2617): flags = 00020000

I/SurfaceFlinger( 2617): ****************

I/SurfaceFlinger( 2617): Initialize hardware composer

I/SurfaceFlinger( 2617):

I/FslHwcomposer( 2617): *********hw open********

E/FslHwcomposer( 2617): init:63,open ipu dev failed

I/v_hwc ( 2617): Vivante HWComposer v2.4

I/v_hwc ( 2617): Device: 0x191f9c8

I/v_hwc ( 2617): Separated 2D:         YES

I/v_hwc ( 2617): 2D PE20:              YES

I/v_hwc ( 2617): Filter-stretch blit:  NO

I/v_hwc ( 2617): 2D dither enabled :   NO

I/v_hwc ( 2617): Multi-source blit:    NO

I/v_hwc ( 2617): Multi-source blit Ex: NO

I/v_hwc ( 2617): OPF/YUV blit/Tiling : NO

I/v_hwc ( 2617): Filter stretch      : NO

I/SurfaceFlinger( 2617): create shared block

I/SurfaceFlinger( 2617): initialize primary display

E/imx6.gralloc( 2617): invalid gralloc handle (at 0x191d940) version:12-12 , numInts:34-13, numFds:1-1, magic:51647890-1885827189


0 Kudos