Waydroid: Failed to get service waydroidplatform, trying again

I’m trying to run waydroid on my Pinephone Pro. I installed waydroid and waydroid-image, enabled the container and ran the setup as root, then rebooted. After boot, I started the session in a terminal, which told me:
[gbinder] Service manager /dev/binder has appeared

Since then I’m trying to see which apps are installed using:
$ waydroid app list

But all I see is:
[22:21:48] Failed to get service waydroidplatform, trying again...
One line each second.

When I click the waydroid icon in the starter, I get a splash screen that just sits there indefinitely. Meanwhile, I can ping the container and two processes called bootanimation and surfaceflinger are constantly taking ~20% CPU, so I’m guessing it’s doing something, but I don’t get to use it.

Can someone tell me what I’m missing here, or how I could find out?

Perhaps the log has some more info.
$ waydroid log

1 Like

Try restartating lxc container and waydroid session, starting Waydroid session, and then starting Waydroid UI

sudo systemctl restart lxc
sudo systemctl start waydroid-container
waydroid session start
waydroid show-full-ui
1 Like

When I restart lxc, the container and the session, I still get the same problem. The logs show:

(022069) [20:19:13] Save session config: /var/lib/waydroid/session.cfg
(022069) [20:19:13] UserMonitor service is not even started
(022069) [20:19:13] Clipboard service is not even started
(022161) [20:19:36] % chmod 666 -R /dev/binder
(022161) [20:19:36] % chmod 666 -R /dev/vndbinder
(022161) [20:19:36] % chmod 666 -R /dev/hwbinder
(022161) [20:19:36] Container manager is waiting for session to load
(022161) [20:19:36] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
(022161) [20:19:36] % mount /usr/share/waydroid-extra/images/system.img /var/lib/waydroid/rootfs
(022161) [20:19:36] % mount -o remount,ro /usr/share/waydroid-extra/images/system.img /var/lib/waydroid/rootfs
(022161) [20:19:36] % mount /usr/share/waydroid-extra/images/vendor.img /var/lib/waydroid/rootfs/vendor
(022161) [20:19:36] % mount -o remount,ro /usr/share/waydroid-extra/images/vendor.img /var/lib/waydroid/rootfs/vendor
(022161) [20:19:36] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
(022161) [20:19:36] % mount -o bind /home/diederick/.local/share/waydroid/data /var/lib/waydroid/data
(022161) [20:19:37] % umount -l /sys/fs/cgroup/schedtune
umount: /sys/fs/cgroup/schedtune: no mount point specified.
(022161) [20:19:37] % chmod 777 -R /dev/ashmem
(022161) [20:19:37] % chmod 777 -R /dev/dri
(022161) [20:19:37] % chmod 777 -R /dev/fb0
(022161) [20:19:37] % chmod 777 -R /dev/video7
(022161) [20:19:37] % chmod 777 -R /dev/video6
(022161) [20:19:37] % chmod 777 -R /dev/video5
(022161) [20:19:37] % chmod 777 -R /dev/video4
(022161) [20:19:37] % chmod 777 -R /dev/video3
(022161) [20:19:37] % chmod 777 -R /dev/video2
(022161) [20:19:37] % chmod 777 -R /dev/video1
(022161) [20:19:37] % chmod 777 -R /dev/video0
(022161) [20:19:37] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
(022161) [20:19:37] New background process: pid=22245, output=background
(022161) [20:19:37] waiting 10 seconds for container to start...
(022161) [20:19:38] Save session config: /var/lib/waydroid/session.cfg
(022689) [20:19:55] Failed to get service waydroidplatform, trying again...
(022689) [20:19:56] Failed to get service waydroidplatform, trying again...
(022689) [20:19:57] Failed to get service waydroidplatform, trying again...

There isn’t really something here that shines a light on this problem for me. What could be my next step?

Yeah, Waydroid is kinda messy :S
When i tried it out, i had this issue many times, using these commands usually solved it to me, but sometimes doesn’t. When it didn’t, i simply restarted my whole system and tried to start it again with:

sudo systemctl start waydroid-container
waydroid session start

And tried the following command in another shell, lefting the last one open with waydroid session running

waydroid show-full-ui

:fox_face: ¿Did you tried it?

1 Like

Perhaps dmesg will tell you more.

1 Like

When look at dmesg while the "Failed to get service … " lines fill my screen, I saw this, repeated just as often:

[ 9585.182805] init: Received control message 'interface_start' for 'android.hardware.sensors@1.0::ISensors/default' from pid: 15 (/system/bin/hwservicemanager)
[ 9585.182884] init: Could not find 'android.hardware.sensors@1.0::ISensors/default' for ctl.interface_start

What sensors is it missing, and is there a way to solve this?

I think that’s a issue on the Android image

The problem was caused by two ^@ characters in /var/lib/waydroid/waydroid_base.prop, so that the rest of the file /var/lib/waydroid/waydroid_base.prop, generated after starting the session, could not be generated entirely.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.