remote-android / redroid-doc

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

x86_64 Ubuntu Redroid14 Arknights Screen Freeze #602

Closed minecraftfen closed 8 months ago

minecraftfen commented 8 months ago

Host Device


Remote Device with scrcpy on it

Win11 23H2 Home scrcpy zip file name: 2024-01-30-18-27-29-scrcpy-scrcpy-win64-v2.3.1


Problem reproduction

The script with prefix $ runs on the host device, while the script with prefix > runs on the remote device.

Host

$ sudo docker run -itd --privileged -v ~/redroid:/data -p 5555:5555 --name redroid14 redroid/redroid:14.0.0-latest

Remote

> ./adb -s 192.168.***.***:5555 install "C:\Users\minec\Downloads\arknights-hg-2141.apk"
> ./scrcpy --tcpip=192.168.***.***:5555 --verbosity=info --no-audio --max-fps=60

GUI

Desktop -> Notifications -> Settings -> All Apps -> Arknights The screen freezes when the animation for switching the application to Arknights is completed, touch and return/home keys doesn't respond

Remote

Scrcpy was interrupted through Ctrl + C

On Kubuntu Labtop

$ adb -s localhost:5555 logcat *:V > ~/Desktop/redroid.log
$ tar -czvf ~/Desktop/redroid.tar.gz ~/Desktop/redroid.log

Log

redroid.tar.gz

minecraftfen commented 8 months ago

I have randomly chosen a set of apps to test, all of other app cannot reproduce this problem official link to my version of Arknights Hashes of APK:

minecraftfen commented 8 months ago

I've executed commands provided in doc before deploy:

apt install linux-modules-extra-`uname -r`
modprobe binder_linux devices="binder,hwbinder,vndbinder"
zhouziyang commented 8 months ago

01-31 05:11:14.758 3187 3187 F chromium: [FATAL:jni_android.cc(289)] Please include Java exception stack in crash report

Seems something wrong with the WebView. I'm not sure whether it works by upgrading this component (or fallback to use AOSP stock version).

minecraftfen commented 8 months ago

01-31 05:11:14.758 3187 3187 F chromium: [FATAL:jni_android.cc(289)] Please include Java exception stack in crash report

Seems something wrong with the WebView. I'm not sure whether it works by upgrading this component (or fallback to use AOSP stock version).

@zhouziyang I'm using latest version of redroid, and it seems like there are not any upgrades available for my deploy. Maybe I should try that AOSP stock version you mentioned but I don't know what is it and where to find it. I have been searching in Repo for a while but have no idea at all. Can you help me explain about this?

minecraftfen commented 8 months ago

I analyzed the APK using some devtools, and it seems that the Target SDK is 29 (Android 9 Pie). I think I should try Android 9 or the 11 version that often appears in tutorials

minecraftfen commented 8 months ago

@zhouziyang I have successfully launched Arknights with redroid11, Thanks for your help!