Anbox: Anbox cannot launch on Raspbian of RPi4

Created on 30 Dec 2019  路  4Comments  路  Source: anbox/anbox

  1. Please check that no similar bug is already reported. Have a look on the list of open bugs at https://github.com/anbox/anbox/issues
  2. Make sure you are running the latest version of Anbox before reporting an issue. Update snap to latest: snap refresh --devmode --edge anbox

snap "anbox" has no updates available

  1. Make sure you have debug logs enabled:
    sudo snap set anbox debug.enable=true
  2. Reproduce the error while debug logs enabled.

error: cannot perform the following tasks:

  • Run configure hook of "anbox" snap (snap "anbox" has no "configure" hook)
  1. Run the anbox logs collection utility and attach the tar file.
    `sudo /snap/bin/anbox.collect-bug-info
    container-manager.log
    system-info.log

system-info-log:
anbox: error while loading shared libraries: libpulsecommon-8.0.so: cannot open shared object file: No such file or directory

  1. * Please paste the result of anbox system-info below:*

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
libEGL warning: DRI2: failed to authenticate
version: 3
snap-revision: 91
os:
name: Raspbian GNU/Linux
version: 10 (buster)
snap-based: true
kernel:
version: Linux version 4.19.75-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 SMP Tue Sep 24 18:51:41 BST 2019
binder: true
ashmem: true
graphics:
egl:
vendor: Mesa Project
version: 1.4 (DRI2)
extensions:
- EGL_KHR_cl_event2
- EGL_KHR_config_attribs
- EGL_KHR_create_context
- EGL_KHR_create_context_no_error
- EGL_KHR_fence_sync
- EGL_KHR_get_all_proc_addresses
- EGL_KHR_gl_colorspace
- EGL_KHR_no_config_context
- EGL_KHR_reusable_sync
- EGL_KHR_surfaceless_context
- EGL_KHR_wait_sync
- EGL_MESA_configless_context
gles2:
vendor: VMware, Inc.
vendor: OpenGL ES-CM 1.1 Mesa 17.2.8
extensions:
- GL_EXT_blend_minmax
- GL_EXT_multi_draw_arrays
- 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_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_EXT_map_buffer_range
- GL_KHR_debug
- GL_OES_surfaceless_context
- GL_EXT_compressed_ETC1_RGB8_sub_texture
- GL_EXT_polygon_offset_clamp
- GL_KHR_no_error

anbox session-manager
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
libEGL warning: DRI2: failed to authenticate
[ 2019-12-30 00:53:58] [Renderer.cpp:190@initialize] Failed: Missing egl_image related extension(s)

anbox session-manager --gles-driver=translator
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[ 2019-12-30 00:22:23] [launch.cpp:234@operator()] Stopped waiting as we've already waited for too long. Something
[ 2019-12-30 00:22:23] [launch.cpp:235@operator()] is wrong with your setup or the container has failed to boot.
[ 2019-12-30 00:22:23] [launch.cpp:236@operator()] If you think you found a bug please don't hesitate to file on
[ 2019-12-30 00:22:23] [launch.cpp:237@operator()] at https://github.com/anbox/anbox/issues/new

What were you expecting?:

How to make a change and try it out?

Additional info:
seem to me the file is located in:
/snap/anbox/91/usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-8.0.so
and there is also a version of 12.2:
/usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-12.2.so

enhancement help wanted

Most helpful comment

I'm currently trying to get this running, please wait... II'll share the build

All 4 comments

no luck even if copy libpulsecommon-8.0.so into snap/anbox/91/lib/arm-linux-gnueabihf/ (copy the 91 folder to my disk then mount --bind the path)

there will be another warnings in the system-info-log:
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
Segmentation fault

tried to play with the commands & settings:
anbox session-manager --gles-driver=translator
anbox session-manager
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

Enable non-GL / GL(Fake KMS) Desktop Driver

The DRI2 warning remains.

I'm currently trying to get this running, please wait... II'll share the build

@RaspberryPiFan did you get it working?

In my case 1-5 is the same as in TS's report.

  1. * Please paste the result of anbox system-info below:*

Segmentation fault

Attempt to run system-info, session-manager issues in the Segmentation Fault. anbox launch throws Segmentation Fault after trying to start session manager.

Also each call of anbox first prints out

ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

zaoqi picture zaoqi  路  3Comments

harry-cpp picture harry-cpp  路  4Comments

GitSoftwareNow picture GitSoftwareNow  路  3Comments

Eskander picture Eskander  路  4Comments

lukedoomer picture lukedoomer  路  3Comments