remote-android / redroid-doc

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

A game is crashing #123

Open unkusr007 opened 2 years ago

unkusr007 commented 2 years ago

I would like to play a game using redroid, but I have a crash on the game when I start it. I can see the crash using adb logcat, and it refers to an Unity library for the sound. How can I find what is crashing the game, or which component might be missing to properly launch this particular game ? Any hint would be super helpful. Thanks 🙏

zhouziyang commented 2 years ago

please provide the crash log adb logcat -b crash

and running environment, redroid version / GPU etc.

unkusr007 commented 2 years ago

redroid image: redroid/redroid:11.0.0-arm64 machine: AWS c6g.xlarge (arm) Ubuntu 18.04 with the modules properly installed No GPU (I'm fine with low FPS)

crash stacktrace:

--------- beginning of crash
03-15 04:10:24.317  2172  2241 E AndroidRuntime: FATAL EXCEPTION: UnityMain
03-15 04:10:24.317  2172  2241 E AndroidRuntime: Process: com.foxnextgames.m3, PID: 2172
03-15 04:10:24.317  2172  2241 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-15 04:10:24.317  2172  2241 E AndroidRuntime: Version '2020.3.18f1 (a7d1c678663c)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
03-15 04:10:24.317  2172  2241 E AndroidRuntime: Build fingerprint: 'Must use __system_property_read_callback() to read'03-15 04:10:24.317  2172  2241 E AndroidRuntime: Revision: '0'
03-15 04:10:24.317  2172  2241 E AndroidRuntime: ABI: 'arm64'
03-15 04:10:24.317  2172  2241 E AndroidRuntime: Timestamp: 2022-03-15 04:10:24+0000
03-15 04:10:24.317  2172  2241 E AndroidRuntime: pid: 2172, tid: 2532, name: NativeThread  >>> com.foxnextgames.m3 <<<
03-15 04:10:24.317  2172  2241 E AndroidRuntime: uid: 10116
03-15 04:10:24.317  2172  2241 E AndroidRuntime: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb480e4e931a6edfd
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x0  b480e4e931a6ed59  x1  252f6bcfb4053152  x2  b400ffd331271df0  x3  b400ffd3312791d0
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x4  b400ffd331271df0  x5  0000ffd75335b2b0  x6  0000000000000000  x7  0000000000000372
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x8  252f6bcfb4053152  x9  0000000000000008  x10 0000000000000000  x11 0000000000000000
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x12 0000000000000008  x13 000000003f800000  x14 00000000000006e4  x15 00000000000003c0
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x16 0000000000000000  x17 0000000000000372  x18 b400ffd33127e320  x19 0000000000000000
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x20 0000000000000000  x21 b480e4e931a6ed59  x22 0000ffd44671c000  x23 0000ffd44671cd59
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x24 0000ffd446700000  x25 0000ffd446700000  x26 0000ffd446700000  x27 0000ffd446700000
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     x28 0000ffd446700000  x29 0000ffd4af713b60
03-15 04:10:24.317  2172  2241 E AndroidRuntime:     sp  0000ffd4af713b60  lr  0000ffd4465196c4  pc  0000ffd446526f50
03-15 04:10:24.317  2172  2241 E AndroidRuntime:
03-15 04:10:24.317  2172  2241 E AndroidRuntime: backtrace:
03-15 04:10:24.317  2172  2241 E AndroidRuntime:       #00 pc 00000000003cdf50  <anonymous:0000ffd446159000>
03-15 04:10:24.317  2172  2241 E AndroidRuntime:
03-15 04:10:24.317  2172  2241 E AndroidRuntime:        at Unknown.0xffd446526f50(Unknown Source:0)

But there's more info in the complete log:

03-15 04:14:00.304  2635  2809 E AndroidRuntime: FATAL EXCEPTION: UnityMain
03-15 04:14:00.304  2635  2809 E AndroidRuntime: Process: com.foxnextgames.m3, PID: 2635
03-15 04:14:00.304  2635  2809 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-15 04:14:00.304  2635  2809 E AndroidRuntime: Version '2020.3.18f1 (a7d1c678663c)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
03-15 04:14:00.304  2635  2809 E AndroidRuntime: Build fingerprint: 'Must use __system_property_read_callback() to read'
03-15 04:14:00.304  2635  2809 E AndroidRuntime: Revision: '0'
03-15 04:14:00.304  2635  2809 E AndroidRuntime: ABI: 'arm64'
03-15 04:14:00.304  2635  2809 E AndroidRuntime: Timestamp: 2022-03-15 04:14:00+0000
03-15 04:14:00.304  2635  2809 E AndroidRuntime: pid: 2635, tid: 3014, name: NativeThread  >>> com.foxnextgames.m3 <<<
03-15 04:14:00.304  2635  2809 E AndroidRuntime: uid: 10116
03-15 04:14:00.304  2635  2809 E AndroidRuntime: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb480e4e914605201
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x0  b480e4e91460515d  x1  252f6bcfb4053152  x2  b400ffd313e08df0  x3  b400ffd313e101d0
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x4  b400ffd313e08df0  x5  0000ffd75335b2b0  x6  0000000000000000  x7  0000000000000372
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x8  252f6bcfb4053152  x9  0000000000000008  x10 0000000000000000  x11 0000000000000000
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x12 0000000000000008  x13 000000003f800000  x14 00000000000006e4  x15 00000000000003c0
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x16 0000000000000000  x17 0000000000000372  x18 b400ffd313e15320  x19 0000000000000000
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x20 0000000000000000  x21 b480e4e91460515d  x22 0000ffd319a8e000  x23 0000ffd319a8ed59
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x24 0000ffd319a72000  x25 0000ffd319a72000  x26 0000ffd319a72000  x27 0000ffd319a72000
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     x28 0000ffd319a72000  x29 0000ffd3423c6b60
03-15 04:14:00.304  2635  2809 E AndroidRuntime:     sp  0000ffd3423c6b60  lr  0000ffd31988b6c4  pc  0000ffd319898f50
03-15 04:14:00.304  2635  2809 E AndroidRuntime:
03-15 04:14:00.304  2635  2809 E AndroidRuntime: backtrace:
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #00 pc 000000000018ef50  /data/app/~~1ZvZ1hS162LYxp3et77tug==/com.foxnextgames.m3-EBOjEz--rQO4Pk2xWVKCJQ==/lib/arm64/libAkSoundEngine.so (BuildId: a99963071bfa84928257a023c2ee8950c0917463)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #01 pc 00000000001816c0  /data/app/~~1ZvZ1hS162LYxp3et77tug==/com.foxnextgames.m3-EBOjEz--rQO4Pk2xWVKCJQ==/lib/arm64/libAkSoundEngine.so (BuildId: a99963071bfa84928257a023c2ee8950c0917463)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #02 pc 00000000001839b4  /data/app/~~1ZvZ1hS162LYxp3et77tug==/com.foxnextgames.m3-EBOjEz--rQO4Pk2xWVKCJQ==/lib/arm64/libAkSoundEngine.so (BuildId: a99963071bfa84928257a023c2ee8950c0917463)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #03 pc 0000000000195218  /data/app/~~1ZvZ1hS162LYxp3et77tug==/com.foxnextgames.m3-EBOjEz--rQO4Pk2xWVKCJQ==/lib/arm64/libAkSoundEngine.so (BuildId: a99963071bfa84928257a023c2ee8950c0917463)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #04 pc 00000000000f0428  /data/app/~~1ZvZ1hS162LYxp3et77tug==/com.foxnextgames.m3-EBOjEz--rQO4Pk2xWVKCJQ==/lib/arm64/libAkSoundEngine.so (BuildId: a99963071bfa84928257a023c2ee8950c0917463)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #05 pc 000000000017eb88  /data/app/~~1ZvZ1hS162LYxp3et77tug==/com.foxnextgames.m3-EBOjEz--rQO4Pk2xWVKCJQ==/lib/arm64/libAkSoundEngine.so (BuildId: a99963071bfa84928257a023c2ee8950c0917463)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #06 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:       #07 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libAkSoundEngine.0x18ef50(Native Method)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libAkSoundEngine.0x1816c0(Native Method)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libAkSoundEngine.0x1839b4(Native Method)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libAkSoundEngine.0x195218(Native Method)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libAkSoundEngine.0xf0428(Native Method)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libAkSoundEngine.0x17eb88(Native Method)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libc.__pthread_start(void*)(__pthread_start:64)
03-15 04:14:00.304  2635  2809 E AndroidRuntime:        at libc.__start_thread(__start_thread:64)

Thanks for your help!

unkusr007 commented 2 years ago

Note that GApps is saying that the game is not compatible with the device, I'm not sure it's relevant or not.

image

zhouziyang commented 2 years ago

seems invoke some audio features redroid not supported. can you test this game on Android Emulator? ... And compare logs adb logcat --pid xxx

redroid lack some feature claims that's why Google Play complains not compatible. try extract AndroidManifest.xml from that game, and check what features required. redroid store features under /system/etc/permissions, and only small slice of Android features are added.

glennvdb commented 2 years ago

How would one implement the missing features? I have the same situation with another .apk. I have extracted the AndroidManifest.xml, and indeed, some things are missing.

unkusr007 commented 2 years ago

I looked into AndroidManifest.xml, and compared the permission added in the different files inside /system/etc/permissions. I'm not sure I'm properly doing what you've said, but it seems that android.permission.VIBRATE is missing, and also com.android.vending.BILLING and a few others. Any help to add those would be super appreciated!

zhouziyang commented 2 years ago

I'm not plan to support full CTS-compatible Android environment. better to use Android Emulator based solutions if want such environment. Google Play examine several things (required Google Service / required Android features) before list compatible games / apps.

kevinzs2048 commented 2 years ago

@bastiflew Have you solve this issue? I'm also encounter with this issue, the Game crashed at the same libAksound.so which is based on Unity. And I report a bug here: https://github.com/remote-android/redroid-doc/issues/173

unkusr007 commented 2 years ago

Nope I didn't dig into the issue, I'm not familiar with Android builds.

kevinzs2048 commented 2 years ago

Thanks all the same @bastiflew

zhouziyang commented 2 years ago

someone in slack channel already report this, and I guess it’s due to redroid lack some feature claims. Check /system/etc/permissions BTW, Can install apk via apkpure or adb directly.

Sent from my iPhone

On Mar 18, 2022, at 10:31 PM, bastiflew @.***> wrote:



Note that GApps is saying that the game is not compatible with the device, I'm not sure it's relevant or not.

[image]https://user-images.githubusercontent.com/16416882/159022032-f532c4ba-a0ca-4e3d-a1b1-529a870e0df9.png

— Reply to this email directly, view it on GitHubhttps://github.com/remote-android/redroid-doc/issues/123#issuecomment-1072467170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAP5VMQLVIY6YCZRA52ZV2LVASHTHANCNFSM5QXLMFJA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>