Trying to make anbox work on Solus (git build)


#1

Hi,
I had some issues earlier trying to get Anbox snap run on Solus,
i.e, Failed to start container etc. (can’t start session-manager but the loading screen stays for some time)
So i’m trying to go with a git build instead(disabled snap anbox/using android.img from the snap).
binder/ashmem are all in place and build process went fine.
but now the issue seems like something with graphical front.
Here’s output for anbox session-manager

i965_dri.so does not support the 0xffffffff PCI ID.
[ 2017-09-21 09:06:01] [Renderer.cpp:138@initialize] Failed to create context: error=0x3005

And for anbox system-info (many extensions are missing/no gles2)

    i965_dri.so does not support the 0xffffffff PCI ID.
    version: local-df774db
    os:
      name: Solus
      version: 3
      snap-based: false
    kernel:
      version: Linux version 4.12.12-19.current (root@builder.solus-project.com) (gcc version 6.4.0 (Solus) ) #1 SMP Mon Sep 11 00:14:44 UTC 2017
      binder: true
      ashmem: true
    graphics:
      egl:
        vendor: Mesa Project
        version: 1.4 (DRI2)
        extensions:
          - EGL_EXT_buffer_age
          - EGL_EXT_image_dma_buf_import
          - EGL_KHR_cl_event2
          - EGL_KHR_config_attribs
          - EGL_KHR_create_context
          - EGL_KHR_fence_sync
          - EGL_KHR_get_all_proc_addresses
          - EGL_KHR_gl_renderbuffer_image
          - EGL_KHR_gl_texture_2D_image
          - EGL_KHR_gl_texture_cubemap_image
          - EGL_KHR_image
          - EGL_KHR_image_base
          - EGL_KHR_image_pixmap
          - EGL_KHR_no_config_context
          - EGL_KHR_reusable_sync
          - EGL_KHR_surfaceless_context
          - EGL_KHR_wait_sync
          - EGL_MESA_configless_context
          - EGL_MESA_image_dma_buf_export
      gles2:
        vendor: n/a
        vendor: n/a
        extensions: []

Below is the anbox system-info output for the Snap installation which seems ok

version: 3
snap-revision: 60
os:
  name: Solus
  version: 3
  snap-based: true
kernel:
  version: Linux version 4.12.12-19.current (root@builder.solus-project.com) (gcc version 6.4.0 (Solus) ) #1 SMP Mon Sep 11 00:14:44 UTC 2017
  binder: true
  ashmem: true
graphics:
  egl:
    vendor: Mesa Project
    version: 1.4 (DRI2)
    extensions:
      - EGL_CHROMIUM_sync_control
      - EGL_EXT_buffer_age
      - EGL_EXT_create_context_robustness
      - EGL_EXT_image_dma_buf_import
      - EGL_KHR_config_attribs
      - EGL_KHR_create_context
      - EGL_KHR_fence_sync
      - EGL_KHR_get_all_proc_addresses
      - EGL_KHR_gl_renderbuffer_image
      - EGL_KHR_gl_texture_2D_image
      - EGL_KHR_gl_texture_3D_image
      - EGL_KHR_gl_texture_cubemap_image
      - EGL_KHR_image
      - EGL_KHR_image_base
      - EGL_KHR_image_pixmap
      - EGL_KHR_no_config_context
      - EGL_KHR_reusable_sync
      - EGL_KHR_surfaceless_context
      - EGL_KHR_wait_sync
      - EGL_MESA_configless_context
      - EGL_MESA_drm_image
      - EGL_MESA_image_dma_buf_export
      - EGL_NOK_texture_from_pixmap
      - EGL_WL_bind_wayland_display
  gles2:
    vendor: Intel Open Source Technology Center
    vendor: OpenGL ES-CM 1.1 Mesa 17.0.7
    extensions:
      - GL_EXT_blend_minmax
      - GL_EXT_multi_draw_arrays
      - GL_EXT_texture_filter_anisotropic
      - GL_EXT_texture_lod_bias
      - GL_OES_byte_coordinates
      - GL_OES_fixed_point
      - GL_OES_stencil_wrap
      - GL_OES_compressed_paletted_texture
      - GL_OES_query_matrix
      - GL_OES_read_format
      - GL_OES_single_precision
      - GL_EXT_texture_compression_dxt1
      - GL_OES_draw_texture
      - GL_OES_point_size_array
      - GL_OES_point_sprite
      - GL_EXT_texture_format_BGRA8888
      - GL_OES_compressed_ETC1_RGB8_texture
      - GL_OES_depth24
      - GL_OES_element_index_uint
      - GL_OES_fbo_render_mipmap
      - GL_OES_framebuffer_object
      - GL_OES_mapbuffer
      - GL_OES_rgb8_rgba8
      - GL_OES_stencil8
      - GL_OES_texture_env_crossbar
      - GL_OES_texture_mirrored_repeat
      - GL_OES_texture_npot
      - GL_OES_EGL_image
      - GL_OES_packed_depth_stencil
      - GL_OES_texture_cube_map
      - GL_APPLE_texture_max_level
      - GL_EXT_discard_framebuffer
      - GL_EXT_read_format_bgra
      - GL_OES_blend_equation_separate
      - GL_OES_blend_func_separate
      - GL_OES_blend_subtract
      - GL_OES_EGL_image_external
      - GL_OES_EGL_sync
      - GL_OES_vertex_array_object
      - GL_ANGLE_texture_compression_dxt3
      - GL_ANGLE_texture_compression_dxt5
      - GL_EXT_map_buffer_range
      - GL_KHR_debug
      - GL_OES_surfaceless_context
      - GL_EXT_polygon_offset_clamp

Would be appreciated if someone could further assist & point me what went wrong and with possible solutions… :slight_smile:
also let me know if more info/logs are needed.

P.S. I’m using an HP laptop with no nvidia/amd.
specs: Core i3-5010U CPU and HD Graphics 5500 (Broadwell GT2)

Thanks!


#2

Here is log output for sudo tail -80 /var/lib/anbox/data/system.log

09-22 04:33:21.813   104   104 F DEBUG   : Revision: '0'
09-22 04:33:21.813   104   104 F DEBUG   : ABI: 'x86_64'
09-22 04:33:21.813   104   104 F DEBUG   : pid: 96, tid: 96, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
09-22 04:33:21.813   104   104 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-22 04:33:21.814   104   104 F DEBUG   : Abort message: 'no suitable EGLConfig found, giving up'
09-22 04:33:21.814   104   104 F DEBUG   :     rax 0000000000000000  rbx 00007ff27dc01be8  rcx 00007ff27d799a07  rdx 0000000000000006
09-22 04:33:21.814   104   104 F DEBUG   :     rsi 0000000000000060  rdi 0000000000000060
09-22 04:33:21.814   104   104 F DEBUG   :     r8  0000000000000000  r9  00007ff27da29090  r10 0000000000000008  r11 0000000000000206
09-22 04:33:21.814   104   104 F DEBUG   :     r12 0000000000000060  r13 0000000000000006  r14 00007ff27d92ba9a  r15 00007ffe0baf7fe0
09-22 04:33:21.814   104   104 F DEBUG   :     cs  0000000000000033  ss  000000000000002b
09-22 04:33:21.814   104   104 F DEBUG   :     rip 00007ff27d799a07  rbp 0000000000000016  rsp 00007ffe0baf78a8  eflags 0000000000000206
09-22 04:33:21.816   104   104 F DEBUG   : 
09-22 04:33:21.816   104   104 F DEBUG   : backtrace:
09-22 04:33:21.816   104   104 F DEBUG   :     #00 pc 000000000008da07  /system/lib64/libc.so (tgkill+7)
09-22 04:33:21.816   104   104 F DEBUG   :     #01 pc 000000000008a4a1  /system/lib64/libc.so (pthread_kill+65)
09-22 04:33:21.816   104   104 F DEBUG   :     #02 pc 00000000000302c1  /system/lib64/libc.so (raise+17)
09-22 04:33:21.816   104   104 F DEBUG   :     #03 pc 00000000000287fd  /system/lib64/libc.so (abort+77)
09-22 04:33:21.816   104   104 F DEBUG   :     #04 pc 000000000001011f  /system/lib64/libcutils.so (__android_log_assert+287)
09-22 04:33:21.816   104   104 F DEBUG   :     #05 pc 000000000003d91d  /system/lib64/libsurfaceflinger.so
09-22 04:33:21.816   104   104 F DEBUG   :     #06 pc 000000000003d335  /system/lib64/libsurfaceflinger.so
09-22 04:33:21.816   104   104 F DEBUG   :     #07 pc 0000000000043268  /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+936)
09-22 04:33:21.816   104   104 F DEBUG   :     #08 pc 000000000000130d  /system/bin/surfaceflinger
09-22 04:33:21.816   104   104 F DEBUG   :     #09 pc 000000000001c954  /system/lib64/libc.so (__libc_init+84)
09-22 04:33:21.816   104   104 F DEBUG   :     #10 pc 00000000000011c4  /system/bin/surfaceflinger
09-22 04:33:21.816   104   104 F DEBUG   :     #11 pc 0000000000000000  <unknown>
09-22 04:33:21.831    15    15 W         : debuggerd: resuming target 96
09-22 04:33:26.856   121   121 I Netd    : Netd 1.0 starting
09-22 04:33:26.856   121   121 D TetherController: Setting IP forward enable = 0
09-22 04:33:26.860   122   122 E DispSync: Couldn't set SCHED_FIFO for DispSyncThread
09-22 04:33:26.860   122   122 I SurfaceFlinger: SurfaceFlinger is starting
09-22 04:33:26.860   122   122 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
09-22 04:33:26.860   122   122 D libEGL  : Emulator has host GPU support, qemu.gles is set to 1.
09-22 04:33:26.860   122   122 E libEGL  : load_driver(/system/lib64/egl/libGLES_emulation.so): dlopen failed: library "/system/lib64/egl/libGLES_emulation.so" not found
09-22 04:33:26.861   122   122 D libEGL  : loaded /system/lib64/egl/libEGL_emulation.so
09-22 04:33:26.861   122   122 D libEGL  : loaded /system/lib64/egl/libGLESv1_CM_emulation.so
09-22 04:33:26.867   122   122 D libEGL  : loaded /system/lib64/egl/libGLESv2_emulation.so
09-22 04:33:26.874   122   122 D         : HostConnection::get() New Host Connection established 0x7f8e8343f0c0, tid 122
09-22 04:33:26.875   122   122 W libEGL  : eglInitialize(0x7f8e83828030) failed (EGL_SUCCESS)
09-22 04:33:26.875   122   122 E SurfaceFlinger: Couldn't set SCHED_FIFO for SFEventThread
09-22 04:33:26.876   122   122 D hwcomposer: int hwc_device_open(const hw_module_t *, const char *, hw_device_t **)
09-22 04:33:26.876   122   122 I SurfaceFlinger: Using composer version 1.0
09-22 04:33:26.876   122   122 E EGL_emulation: tid 122: eglGetConfigs(553): error 0x3001 (EGL_NOT_INITIALIZED)
09-22 04:33:26.876   122   122 E EGL_emulation: tid 122: eglChooseConfig(575): error 0x3001 (EGL_NOT_INITIALIZED)
09-22 04:33:26.876   122   122 E EGL_emulation: tid 122: eglGetConfigs(553): error 0x3001 (EGL_NOT_INITIALIZED)
09-22 04:33:26.876   122   122 E EGL_emulation: tid 122: eglChooseConfig(575): error 0x3001 (EGL_NOT_INITIALIZED)
09-22 04:33:26.876   122   122 W SurfaceFlinger: no suitable EGLConfig found, trying a simpler query
09-22 04:33:26.876   122   122 E EGL_emulation: tid 122: eglGetConfigs(553): error 0x3001 (EGL_NOT_INITIALIZED)
09-22 04:33:26.876   122   122 E EGL_emulation: tid 122: eglChooseConfig(575): error 0x3001 (EGL_NOT_INITIALIZED)
09-22 04:33:26.876   122   122 F SurfaceFlinger: no suitable EGLConfig found, giving up
09-22 04:33:26.876   122   122 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 122 (surfaceflinger)
09-22 04:33:26.876    15    15 W         : debuggerd: handling request: pid=122 uid=1000 gid=1003 tid=122
09-22 04:33:26.877   131   131 E         : debuggerd: Unable to connect to activity manager (connect failed: No such file or directory)
09-22 04:33:26.927   131   131 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-22 04:33:26.927   131   131 F DEBUG   : Build fingerprint: 'Android/anbox_x86_64/x86_64:7.1.1/N6F26Q/ubuntu07131118:userdebug/test-keys'
09-22 04:33:26.927   131   131 F DEBUG   : Revision: '0'
09-22 04:33:26.927   131   131 F DEBUG   : ABI: 'x86_64'
09-22 04:33:26.927   131   131 F DEBUG   : pid: 122, tid: 122, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
09-22 04:33:26.927   131   131 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-22 04:33:26.928   131   131 F DEBUG   : Abort message: 'no suitable EGLConfig found, giving up'
09-22 04:33:26.928   131   131 F DEBUG   :     rax 0000000000000000  rbx 00007f8e8416ebe8  rcx 00007f8e83d09a07  rdx 0000000000000006
09-22 04:33:26.928   131   131 F DEBUG   :     rsi 000000000000007a  rdi 000000000000007a
09-22 04:33:26.928   131   131 F DEBUG   :     r8  0000000000000000  r9  00007f8e83f96090  r10 0000000000000008  r11 0000000000000202
09-22 04:33:26.928   131   131 F DEBUG   :     r12 000000000000007a  r13 0000000000000006  r14 00007f8e83ef8a9a  r15 00007fffe61f39e0
09-22 04:33:26.928   131   131 F DEBUG   :     cs  0000000000000033  ss  000000000000002b
09-22 04:33:26.928   131   131 F DEBUG   :     rip 00007f8e83d09a07  rbp 0000000000000016  rsp 00007fffe61f32a8  eflags 0000000000000202
09-22 04:33:26.930   131   131 F DEBUG   : 
09-22 04:33:26.930   131   131 F DEBUG   : backtrace:
09-22 04:33:26.930   131   131 F DEBUG   :     #00 pc 000000000008da07  /system/lib64/libc.so (tgkill+7)
09-22 04:33:26.930   131   131 F DEBUG   :     #01 pc 000000000008a4a1  /system/lib64/libc.so (pthread_kill+65)
09-22 04:33:26.930   131   131 F DEBUG   :     #02 pc 00000000000302c1  /system/lib64/libc.so (raise+17)
09-22 04:33:26.930   131   131 F DEBUG   :     #03 pc 00000000000287fd  /system/lib64/libc.so (abort+77)
09-22 04:33:26.930   131   131 F DEBUG   :     #04 pc 000000000001011f  /system/lib64/libcutils.so (__android_log_assert+287)
09-22 04:33:26.930   131   131 F DEBUG   :     #05 pc 000000000003d91d  /system/lib64/libsurfaceflinger.so
09-22 04:33:26.930   131   131 F DEBUG   :     #06 pc 000000000003d335  /system/lib64/libsurfaceflinger.so
09-22 04:33:26.930   131   131 F DEBUG   :     #07 pc 0000000000043268  /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+936)
09-22 04:33:26.930   131   131 F DEBUG   :     #08 pc 000000000000130d  /system/bin/surfaceflinger
09-22 04:33:26.930   131   131 F DEBUG   :     #09 pc 000000000001c954  /system/lib64/libc.so (__libc_init+84)
09-22 04:33:26.930   131   131 F DEBUG   :     #10 pc 00000000000011c4  /system/bin/surfaceflinger
09-22 04:33:26.930   131   131 F DEBUG   :     #11 pc 0000000000000000  <unknown>
09-22 04:33:26.949    15    15 W         : debuggerd: resuming target 122