remote-android / redroid-doc

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

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

Open nihaodaming opened 2 weeks ago

nihaodaming commented 2 weeks ago

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版本问题的提示(都提到了https://github.com/NetrisTV/ws-scrcpy/issues/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 https://github.com/NetrisTV/ws-scrcpy/issues/217 10-27 04:40:25.175 E/scrcpy ( 1752): See https://github.com/NetrisTV/ws-scrcpy/issues/217 make sure the required kernel modules present 确保必须的内核功能已开启(ZH_CN)

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

nihaodaming commented 2 weeks ago

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

zhouziyang commented 2 weeks ago

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 commented 1 week ago

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.