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

Some apps constantly crash (e.g. Skyshowtime) #1022

Open
michaldybczak opened this issue Jul 28, 2023 · 9 comments
Open

Some apps constantly crash (e.g. Skyshowtime) #1022

michaldybczak opened this issue Jul 28, 2023 · 9 comments

Comments

@michaldybczak
Copy link

michaldybczak commented Jul 28, 2023

Describe the bug
I manged to run Waydroid without issues on Manjaro. I installed Aurora shop from apk. It run with the setup steps, I logged in to Google and then it crashed. It looks like it opens the usual, main app screen but it doesn't load fully, because it crashes before any app or graphic shows up.

I also wanted to run Skyshowtime app (streaming TV) and it let me to log in and the main screen, but when clicking on any of the show or movie icons, it minimizes and on second try it crashes.

Apps installed via F-Droid work. There is some additional problem with F-Droid not updating repos on the next launch, but that is a different issue that we can ignore here.

During crashes, I get in log:

(015983) [09:51:03] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(015983) [09:51:03] *** output passed to waydroid stdout, not to this log ***

The path above is the path to the general log, but it still doesn't have the details. So where is this output passed and how to access it? When I use waydroid --details-to-stdout log it just show the usual log entries, nothing more (see the log below).

General information (please complete the following information):

Desktop (please complete the following information):
Operating System: Manjaro Linux
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.6-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Manufacturer: Alienware
Product Name: Alienware 17 R3
System Version: 1.13.1

Additional context
Add any other context about the problem here.

Logs (please upload as file)

 michaldybczak  alienware-PC  ~  waydroid --details-to-stdout log
(016283) [09:55:16] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(016283) [09:55:16] *** output passed to waydroid stdout, not to this log ***
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

(002288) [08:36:13] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
(002288) [08:36:13] % systemctl is-active -q nfcd
(002288) [08:36:13] % chmod 777 -R /dev/dri
(002288) [08:36:13] % chmod 777 -R /dev/fb0
(002288) [08:36:13] % chmod 777 -R /dev/video1
(002288) [08:36:13] % chmod 777 -R /dev/video0
(002288) [08:36:13] % mv /var/lib/waydroid/config_session /var/lib/waydroid/lxc/waydroid
(002288) [08:36:13] % mount -o ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
(002288) [08:36:13] % mount -t overlay -o ro,lowerdir=/var/lib/waydroid/overlay:/var/lib/waydroid/rootfs,upperdir=/var/lib/waydroid/overlay_rw/system,workdir=/var/lib/waydroid/overlay_work/system,xino=off overlay /var/lib/waydroid/rootfs
(002288) [08:36:13] % mount -o ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
(002288) [08:36:13] % mount -t overlay -o ro,lowerdir=/var/lib/waydroid/overlay/vendor:/var/lib/waydroid/rootfs/vendor,upperdir=/var/lib/waydroid/overlay_rw/vendor,workdir=/var/lib/waydroid/overlay_work/vendor,xino=off overlay /var/lib/waydroid/rootfs/vendor
(002288) [08:36:13] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(002288) [08:36:13] Save config: /var/lib/waydroid/waydroid.cfg
(002288) [08:36:13] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(002288) [08:36:13] New background process: pid=5771, output=background
(002288) [08:36:13] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
RUNNING
(005723) [08:36:23] waydroidusermonitor: Received transaction: 1
(005723) [08:36:23] Android with user 0 is ready
(005723) [08:36:23] % adb start-server
(005723) [08:36:23] % adb connect 192.168.240.112
already connected to 192.168.240.112:5555
(005723) [08:36:23] Established ADB connection to Waydroid device at 192.168.240.112.
(002288) [08:36:39] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
RUNNING
(005723) [09:14:56] waydroidusermonitor: Received transaction: 2
(005723) [09:16:21] waydroidusermonitor: Received transaction: 2
(005723) [09:18:56] waydroidusermonitor: Received transaction: 2
(005723) [09:19:39] waydroidusermonitor: Received transaction: 2
(005723) [09:20:51] waydroidclipboard: Received transaction: 2
(005723) [09:20:51] Could not setup clipboard
(005723) [09:20:54] waydroidclipboard: Received transaction: 2
(005723) [09:20:54] Could not setup clipboard
(005723) [09:20:54] waydroidclipboard: Received transaction: 2
(005723) [09:20:54] Could not setup clipboard
(005723) [09:24:21] waydroidclipboard: Received transaction: 2
(005723) [09:24:21] Could not setup clipboard
(005723) [09:24:21] waydroidclipboard: Received transaction: 2
(005723) [09:24:21] Could not setup clipboard
(005723) [09:24:23] waydroidclipboard: Received transaction: 2
(005723) [09:24:23] Could not setup clipboard
(005723) [09:24:23] waydroidclipboard: Received transaction: 2
(005723) [09:24:23] Could not setup clipboard
(005723) [09:27:17] waydroidclipboard: Received transaction: 2
(005723) [09:27:17] Could not setup clipboard
(005723) [09:32:54] waydroidclipboard: Received transaction: 2
(005723) [09:32:54] Could not setup clipboard
(005723) [09:37:57] waydroidclipboard: Received transaction: 2
(005723) [09:37:57] Could not setup clipboard
(005723) [09:41:05] waydroidusermonitor: Received transaction: 2
(005723) [09:42:57] waydroidusermonitor: Received transaction: 2
(014768) [09:44:39] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(014768) [09:44:39] *** output passed to waydroid stdout, not to this log ***
(015983) [09:51:03] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(015983) [09:51:03] *** output passed to waydroid stdout, not to this log ***

Additional info:

 michaldybczak  alienware-PC  ~  zgrep -i -e android -e memfd -e ashmem /proc/config.gz
CONFIG_X86_ANDROID_TABLETS=m
# Android
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# end of Android
CONFIG_MEMFD_CREATE=y

EDIT: I tried Disney+ from APK and it runs, but when I try to play the video, it informs me that it plays in full screen mode, I hear the sound (very quietly thou) but the screen is black, as if the output was to some other screen.
waydroidusermonitor: Received transaction: 2

It looks like Manjaro kernel is compatible, but the issue lies elsewhere.

@michaldybczak michaldybczak changed the title Some apps constantly crash (e.g. Aurora) Some apps constantly crash (e.g. Skyshowtime) Jul 28, 2023
@michaldybczak
Copy link
Author

I installed Aurora from F-Droid and it finally works. However, Skyshowtime (installed via Aurora) is still crashing, but since this is an only app that does that, I assume this is something specific to that app.

I checked other streaming apps like: Disney+, HBO Max and they have similar issue: they work, but when trying to get to the video, I can see only subtitles and low or no voice, and black screen. So no video is displayed.

Is it something specific to Waydroid on arch = x86_64, or is it just me?

@JW10234
Copy link

JW10234 commented Aug 2, 2023

The app is probably crashing due to the lack of play services or google services framework. You can either switch to the release with GAPPS or try to install microG which may or may not solve the problem as the waydroid images don't have signature spoofing support.

@michaldybczak
Copy link
Author

Thanks. I'll try to switch to GAPPS version (when I find some time) and will let you know if that helped.

@cipitaua
Copy link

You can either switch to the release with GAPPS

how can I remove a container and install the one with gapps?

@blaueente
Copy link

I installed Aurora from F-Droid and it finally works. However, Skyshowtime (installed via Aurora) is still crashing, but since this is an only app that does that, I assume this is something specific to that app.

I did a fresh installation of Aurora from F-Droid, and it crashes with the same symptoms as you described. How did you resolve that problem?

@michaldybczak
Copy link
Author

I didn't :(. I had to give up for now, but someone above suggested to install the version with Google, which should work, but from lack of time, I haven't checked it out.

@filuslolol
Copy link

filuslolol commented Nov 8, 2023

I installed the gapps version of waydroid, but unfortunately the same problem happens, logcat reports

Process: com.aurora.store, PID: 2194
java.lang.IncompatibleClassChangeError: Class 'java.lang.String' does not implement interface 'java.util.List' in call to 'boolean java.util.List.add(java.lang.Object)

which is followed by

Process com.aurora.store (pid 2194) has died: prcp CRE

a few lines later. This is from a manual install through the f-droid store, but same results happen with sideloading the application.

As a sidenote: I'm trying to get libhoudini installed right now to get arm>x86 translation, maybe that'll help with some crashes. I'm baffled this isn't included with waydroid by default

@blaueente
Copy link

I found this: https://gitlab.com/AuroraOSS/AuroraStore/-/issues/998

@wilsontulus
Copy link

As a sidenote: I'm trying to get libhoudini installed right now to get arm>x86 translation, maybe that'll help with some crashes.

Aurora Store is actually a Java & Kotlin software. There's no native libraries in aurorastore's apk. (from auroraoss)
image

I'm baffled this isn't included with waydroid by default

It's not surprising in Waydroid's case of being FOSS: other than QEMU-User and AArch64-TCG, the most used translators like libhoudini and libndk_translation are both completely proprietary. It's just obvious enough that Waydroid is not shipped with architecture translation support in the first place, and why you need a 3rd-party tool such as waydroid_script to install one of them.

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

6 participants