remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.3k stars 309 forks source link

On huawei kunpeng920 VNC can not see any apk icon. #129

Closed leidamingdavid closed 2 years ago

leidamingdavid commented 2 years ago

On huawei kunpeng920 ubuntu 20.04 platform when use 64only image,

sudo docker run -itd --rm --memory-swappiness=0 --privileged \ --pull always \ -v ~/data:/data \ -p 8888:5555 \ redroid/redroid:12.0.0_64only-arm64 redroid.vncserver=1 huaweikunpeng920-vnc20220318.log

But When I use VNC connect,I can only see the wallpaper, can not see any apk icon. Would you pls help me? thans

zhouziyang commented 2 years ago

Something goes wrong with your GPU try

docker run -itd --rm --memory-swappiness=0 --privileged
--pull always
-v ~/data:/data
-p 8888:5555
redroid/redroid:12.0.0_64only-arm64 \
redroid.vncserver=1 \
redroid.gpu.mode=guest
leidamingdavid commented 2 years ago

Hi,Mr Zhou, Thank very much you for your help,It is OK now. I have another two questions:

  1. redroid.gpu.mode=guest means use CPU to draw instead of GPU?How can I fix with this GPU WX5100?
  2. How to download redroid:12.0.0_64only-arm64 source code and build?

Thanks! BRs

zhouziyang commented 2 years ago

1.redroid.gpu.mode=guest means use CPU to draw instead of GPU?How can I fix with this GPU WX5100?

yes, rendering with CPU. should work on kunpeng (with Wx5100) platforms. can you share your test env? can add my ssh key via curl https://github.com/zhouziyang.keys | tee -a ~/.ssh/authorized_keys, and email me ssh login account.

2.How to download redroid:12.0.0_64only-arm64 source code and build?

repo init -b redroid-12.0.0 ...

leidamingdavid commented 2 years ago

thank you for your quick reply. I have send a email to you with ssh login account of the platform. Thanks and BRs

zhouziyang commented 2 years ago

mesa gallium driver issue (seems kunpeng 920 platform requires some address alignment) tried mesa-22.0.0 and mesa-21.1.6, both encounter the same issue.

03-18 11:55:52.415 14435 14435 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-18 11:55:52.415 14435 14435 F DEBUG   : Build fingerprint: 'redroid/redroid_arm64_only/redroid_arm64_only:12/SQ1D.220205.004/eng.frank.20220305.064003:userdebug/test-keys'
03-18 11:55:52.415 14435 14435 F DEBUG   : Revision: '0'
03-18 11:55:52.415 14435 14435 F DEBUG   : ABI: 'arm64'
03-18 11:55:52.415 14435 14435 F DEBUG   : Timestamp: 2022-03-18 11:55:52.156479216+0000
03-18 11:55:52.415 14435 14435 F DEBUG   : Process uptime: 0s
03-18 11:55:52.415 14435 14435 F DEBUG   : Cmdline: com.android.systemui
03-18 11:55:52.415 14435 14435 F DEBUG   : pid: 14118, tid: 14429, name: GrallocUploadTh  >>> com.android.systemui <<<
03-18 11:55:52.415 14435 14435 F DEBUG   : uid: 10062
03-18 11:55:52.415 14435 14435 F DEBUG   : signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0xefc1a6277000
03-18 11:55:52.415 14435 14435 F DEBUG   :     x0  0000efc1a6277000  x1  b400efc0af1ec250  x2  00000000000000e8  x3  0000efc1a6277000
03-18 11:55:52.415 14435 14435 F DEBUG   :     x4  b400efc0af1ec338  x5  0000efc1a62770e8  x6  0000000000000000  x7  0000000000000000
03-18 11:55:52.415 14435 14435 F DEBUG   :     x8  0000000000000001  x9  0000000000000000  x10 0000000000000004  x11 000000000000003e
03-18 11:55:52.415 14435 14435 F DEBUG   :     x12 0000000000000000  x13 0000000000000000  x14 b400efc0af1ec250  x15 0000000000000000
03-18 11:55:52.415 14435 14435 F DEBUG   :     x16 0000efbe6c198580  x17 0000efc190dd9c20  x18 0000efbe1d5d0000  x19 0000000000000100
03-18 11:55:52.415 14435 14435 F DEBUG   :     x20 0000efc1a6277000  x21 b400efc0af1ec250  x22 00000000000000e8  x23 000000000000003e
03-18 11:55:52.415 14435 14435 F DEBUG   :     x24 0000000000000001  x25 00000000000000e8  x26 00000000000000e8  x27 0000efc1a6277000
03-18 11:55:52.415 14435 14435 F DEBUG   :     x28 000000000000003a  x29 0000efbe1e343420
03-18 11:55:52.415 14435 14435 F DEBUG   :     lr  0000efbe6b77d200  sp  0000efbe1e343410  pc  0000efc190dd9ba8  pst 0000000020000000
03-18 11:55:52.415 14435 14435 F DEBUG   : backtrace:
03-18 11:55:52.415 14435 14435 F DEBUG   :       #00 pc 000000000004bba8  /apex/com.android.runtime/lib64/bionic/libc.so (__memcpy+248) (BuildId: ba489d4985c0cf173209da67405662f9)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #01 pc 00000000004c51fc  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #02 pc 00000000009d7dc4  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #03 pc 0000000000a8bfc8  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #04 pc 0000000000716e94  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #05 pc 0000000000698a9c  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #06 pc 0000000000697f80  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #07 pc 0000000000698138  /vendor/lib64/dri/libgallium_dri.so (BuildId: 836ba0e12074242913f46921674e5afb)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #08 pc 0000000000505238  /system/lib64/libhwui.so (std::__1::__packaged_task_func<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, AHardwareBuffer*)::'lambda'(), std::__1::allocator<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, AHardwareBuffer*)::'lambda'()>, void* ()>::operator()()+120) (BuildId: 3d3592fb15b099f3bc3663e5c01ad8af)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #09 pc 000000000020ef68  /system/lib64/libhwui.so (std::__1::__function::__func<decltype(fp()) android::uirenderer::WorkQueue::runSync<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, AHardwareBuffer*)::'lambda'()>(android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, AHardwareBuffer*)::'lambda'()&&)::'lambda'(), std::__1::allocator<decltype(fp()) android::uirenderer::WorkQueue::runSync<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, AHardwareBuffer*)::'lambda'()>(android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, AHardwareBuffer*)::'lambda'()&&)::'lambda'()>, void ()>::operator()()+88) (BuildId: 3d3592fb15b099f3bc3663e5c01ad8af)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #10 pc 00000000003c62c8  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+156) (BuildId: 3d3592fb15b099f3bc3663e5c01ad8af)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #11 pc 00000000004ebc7c  /system/lib64/libhwui.so (android::uirenderer::ThreadBase::threadLoop()+72) (BuildId: 3d3592fb15b099f3bc3663e5c01ad8af)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #12 pc 00000000000120ac  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+260) (BuildId: d5dfcc2a0782d6e050d6cf3448f6af45)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #13 pc 0000000000011964  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+404) (BuildId: d5dfcc2a0782d6e050d6cf3448f6af45)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #14 pc 00000000000b1910  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: ba489d4985c0cf173209da67405662f9)
03-18 11:55:52.415 14435 14435 F DEBUG   :       #15 pc 00000000000513f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: ba489d4985c0cf173209da67405662f9)
zhouziyang commented 2 years ago

the virtio-gpu dri driver works as expected. I setup a VM (with virtio-gpu support). FYI:

adb: 192.168.122.192:6012 vnc: 192.168.122.192:6912

this radeonsi dri driver issue will be recorded.

zhouziyang commented 2 years ago

stale

mYicheng commented 2 years ago

我也在kunpeng920上跑android12_64only遇到systemui同样的崩溃问题。我的kunpeng920有4张显卡,同时有4个render node(renderD128-renderD131)。从下面的tombstone日志中发现,似乎渲染客户端会强制使用renderD131,而渲染服务端绑定的是其他render node。

image

我可以通过androidboot.redroid_gpu_node=/dev/dri/renderD131使得redroid正常运行,但是无法通过其他renderDxxx使得rendroid正常运行。

zhouziyang commented 2 years ago

@mYicheng can you help to collect some debug logs?

mYicheng commented 2 years ago

可以通过暴露指定的dri设备进行切换显卡运行redroid,我的启动命令为:docker run --net docker0 --cap-add=ALL -itd -v /data/redroid/data:/data --device=/dev/ashmem:/dev/ashmem --device=/dev/binder0:/dev/binder --device=/dev/binder1:/dev/hwbinder -v /proc:/proc --device=/dev/dri/card1:/dev/dri/card1 --device=/dev/dri/renderD129:/dev/dri/renderD129 -p 5555:5555 redroid-dev:12.0.0 androidboot.redroid_gpu_node=/dev/dri/renderD129