Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在甲骨文arm64服务器上用redroid12运行碧蓝航线(azur lane)闪退 #776

Open
2 tasks done
nihaodaming opened this issue Oct 26, 2024 · 3 comments
Open
2 tasks done

Comments

@nihaodaming
Copy link

nihaodaming commented Oct 26, 2024

Describe the bug
请详细描述问题(ZH_CN)
A clear and concise description of what the bug is.
我在甲骨文arm64服务器上安装了redroid12,在尝试用它运行碧蓝航线(azur lane)时黑屏并直接闪退.这是我创建docker容器的代码
docker run -itd --cap-add=ALL --security-opt=seccomp:unconfined --security-opt=apparmor:unconfined --device-cgroup-rule "c *:* rwm" --name redroid11 --memory-swappiness=0 --privileged --pull always -v ~/data11:/data -p 5555:5555 redroid/redroid:12.0.0_64only-latest -redroid.width=1280 -redroid.height=720 -redroid.gpu.mode=guest --rm androidboot.hardware=mt6891 ro.secure=0 ro.boot.hwc=GLOBAL ro.ril.oem.imei=861503068361145 ro.ril.oem.imei1=861503068361145 ro.ril.oem.imei2=861503068361148 ro.ril.miui.imei0=861503068361148 ro.product.manufacturer=Xiaomi ro.build.product=chopin
scrcpy使用的是别人的web端镜像,因为甲骨文不适合装图形界面,我听说远程adb调试不安全,最后是用cloudflare隧道实现web端访问.
我看到logcat.txt里面有几处关于scrcpy版本问题的提示(都提到了NetrisTV/ws-scrcpy#217),
不确定这是否和黑屏闪退有关.因为我还不会直接使用ws-scrcpy,只能用别人的镜像,但是尝试了几个arm的docker镜像,scrcpy都是同一版本( https://github.com/NetrisTV/scrcpy的1.19),
所以我暂时没有尝试新版本.
10-27 04:40:25.172 I/ActivityTaskManager( 230): Config changes=20000480 {1.0 ?mcc?mnc [en_US] ldltr sw360dp w360dp h568dp 320dpi nrml port -touch -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 720, 1280) mAppBounds=Rect(0, 0 - 720, 1184) mMaxBounds=Rect(0, 0 - 720, 1280) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} as.2 s.131 fontWeightAdjustment=0}
10-27 04:40:25.173 W/ActivityTaskManager( 230): Current config: {1.0 ?mcc?mnc [en_US] ldltr sw360dp w592dp h336dp 320dpi nrml land -touch -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1184, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mDisplayRotation=ROTATION_90 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} as.2 s.131 fontWeightAdjustment=0} unchanged for IME proc com.android.inputmethod.latin
10-27 04:40:25.174 I/WindowManager( 230): Override config changes=20000480 {1.0 ?mcc?mnc [en_US] ldltr sw360dp w360dp h568dp 320dpi nrml port -touch -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 720, 1280) mAppBounds=Rect(0, 0 - 720, 1184) mMaxBounds=Rect(0, 0 - 720, 1280) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} as.2 s.131 fontWeightAdjustment=0} for displayId=0
10-27 04:40:25.174 W/LocalDisplayAdapter( 230): Unable to find color mode 0, ignoring request.
10-27 04:40:25.174 E/scrcpy ( 1752): FIXME: Returning only default display.
10-27 04:40:25.174 E/scrcpy ( 1752): FIXME: Returning only default display.
10-27 04:40:25.175 E/scrcpy ( 1752): See NetrisTV/ws-scrcpy#217
10-27 04:40:25.175 E/scrcpy ( 1752): See NetrisTV/ws-scrcpy#217
make sure the required kernel modules present
确保必须的内核功能已开启(ZH_CN)

  • grep binder /proc/filesystems
  • grep ashmem /proc/misc (optional)
    sudo apt install linux-modules-extra-uname -rReading package lists... Done Building dependency tree Reading state information... Done linux-modules-extra-5.15.0-1067-oracle is already the newest version (5.15.0-1067.73~20.04.1). modprobe binder_linux devices="binder,hwbinder,vndbinder" modprobe ashmem_linux
    我下载了需要的模块且没有报错
    Collect debug logs
    收集调试日志(ZH_CN)
    curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER]
    omit CONTAINER if not exist any more.
    如容器已退出,可忽略CONTAINER参数(ZH_CN)
    redroid-debug.0z7BGhAl.tgz.zip

Screenshots
截图(ZH_CN)
If applicable, add screenshots to help explain your problem.

@nihaodaming
Copy link
Author

nihaodaming commented Oct 27, 2024

我更换了8.1.0的redroid,这一次我用了别人做的scrcpy gui进行远程adb调试,没有立刻闪退,有一个核的占用率几乎百分之百,其他的都很少.但是仍然是黑屏,点击一段时间还是会闪退.
我的甲骨文云服务器是4核24g内存,这是htop图
1E56DAD97EBD037F761D51540E6F95A1
B9E078A266273FBD92027E71CBA98802

@zhouziyang
Copy link
Member

Not sure it's gpu related or not.

12157:10-26 14:16:47.461   346   494 W ServiceManager: Permission failure: android.permission.HIGH_SAMPLING_RATE_SENSORS from uid=10070 pid=2097
12158:10-26 14:16:47.464   346   494 W ServiceManager: Permission failure: android.permission.HIGH_SAMPLING_RATE_SENSORS from uid=10070 pid=2097
12159:10-26 14:16:47.476  2097  2133 V MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
12160:10-26 14:16:47.476  2097  2133 I MediaRouter: Skip setBluetoothA2dpOn(): types=8388615, isPlaybackActive()=false, BT route=null
12164:10-26 14:16:47.596  2097  2268 F libc    : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xfe4a62504298)
12165:10-26 14:16:47.596  2097  2268 F libc    : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xfe49f255e6c4)
12166:10-26 14:16:47.596  2097  2268 F libc    : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xfe49f255e6c4)
12167:10-26 14:16:47.596  2097  2268 F libc    : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xfe49f255e6c4)
12168:10-26 14:16:47.596  2097  2268 F libc    : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xfe49f255e6c4)
12169:10-26 14:16:47.596  2097  2268 F libc    : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xfe49f255e6c4)
12187:10-26 14:16:47.798   346   647 I ActivityManager: Process com.bilibili.azurlane (pid 2097) has died: fg  TOP
12188:10-26 14:16:47.799   122   122 I Zygote  : Process 2097 exited due to signal 11 (Segmentation fault); core dumped

BTW: try ssh port forward to create a secure adb channel.

@Kiramei
Copy link

Kiramei commented Nov 3, 2024

Though my case is not same as yours, I tried opening Blue Archive on Redroid and found the game crashed after opening for 5 or 6 seconds, appearing like failure on loading the game assets. However, it works well for Azurlane. Notably, Blue Archive is programmed base on unity. I wonder whether Redroid is compatible with Unity based Games. In my case, the platform is Ubuntu 22.04 Desktop amd64 with no Wayland configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants