remote-android / redroid-doc

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

Honkai: Star Rail crashes on login window #601

Open jerrita opened 5 months ago

jerrita commented 5 months ago

Describe the bug 应用能正常启动,到输入帐密登录登录的界面时就会闪退,不知道是什么原因

make sure the required kernel modules present

root@ubuntu:~# grep binder /proc/filesystems
nodev   binder
root@ubuntu:~# grep ashmem /proc/misc
root@ubuntu:~#

应用跑在 LXC 中,由于启用了 memfd 于是没开 ashmem。docker 参数如下:

docker run -itd --rm --privileged \
    -v ${PWD}/data:/data \
    --name android \
    -p 5555:5555 \
    redroid/redroid:12.0.0-latest \
    androidboot.redroid_width=1280 \
    androidboot.redroid_height=720 \
    androidboot.redroid_dpi=220 \
    androidboot.use_memfd=1 \
    androidboot.redroid_gpu_mode=host \
    androidboot.redroid_net_ndns=1 \
    androidboot.redroid_net_dns1=192.168.5.1 \
    ro.secure=0

LXC 参数如下:

unprivileged: 0
lxc.apparmor.profile: unconfined
lxc.mount.auto: proc:rw sys:rw
lxc.cgroup2.devices.allow: c 10:229 rwm  # fuse
lxc.cgroup2.devices.allow: c 234:* rwm    # binder
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/fuse dev/fuse none default,bind,create=file
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file

collect debug logs tmp.4WorDyAfY3.tgz

Screenshots

image

dev info 中有显卡信息,游戏加载过程动画很流畅,在这个界面闪退:

image
zhouziyang commented 5 months ago

The native bridge (libndk_translation) may introduce compatibility issues. Try on aarch64 platforms (with GPU installed).