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

android.hardware.graphics.composer@2.1-service crashes on Ubuntu Touch #32

Closed
JamiKettunen opened this issue Aug 30, 2022 · 4 comments · Fixed by #33
Closed

android.hardware.graphics.composer@2.1-service crashes on Ubuntu Touch #32

JamiKettunen opened this issue Aug 30, 2022 · 4 comments · Fixed by #33

Comments

@JamiKettunen
Copy link

JamiKettunen commented Aug 30, 2022

Adding as a tracking issue so this isn't forgotten about, @dos1 you've been doing a lot of hwcomposer related work recently so you should know about this I believe. What were those patches tested on?

I tested this on a Volla Phone 22 / Halium 11 running Ubuntu Touch 16.04 (2022-08-22 / devel channel) with Waydroid 1.2.0 and Android 11 images (so using lineage-18.1 branch here) provided by @aleasto.

He suspected Mir (2.9.0 even) is missing some required Wayland protocol support, specifically https://wayland.app/protocols/viewporter, so my question is: should I be able to see a similar crash on x86_64 when running the Mir 2.9.0 test compositor as seen in the logcat from the phone attached below?
waydroid-logcat.log
waydroid-log.log

Fwiw Ubuntu Touch uses a patched Mir 1.8.2 version and testing that outside of a device running Ubuntu Touch might be tricky or not possible (I've not tried yet).

Related(?): #12

@JamiKettunen
Copy link
Author

Got Waydroid working on Mir 2.9.0 miral-kiosk (official Android 10 images) after packaging Mir for Void Linux, that's a start :)
miral-kiosk-2 9 0-waydroid
Will take a look tomorrow if the same issue can be observed on latest x86_64 Android 11 images from @aleasto.

@dos1
Copy link
Contributor

dos1 commented Aug 30, 2022

See #12 (comment)

What were those patches tested on?

I'm testing them on a Librem 5 phone with phoc 0.21 (using wlroots 0.15.1).

Anyway, I'll make a patch that makes viewporter usage optional later today.

dos1 added a commit to dos1/android_hardware_waydroid that referenced this issue Aug 30, 2022
dos1 added a commit to dos1/android_hardware_waydroid that referenced this issue Aug 30, 2022
dos1 added a commit to dos1/android_hardware_waydroid that referenced this issue Aug 30, 2022
@JamiKettunen
Copy link
Author

Yea the Android 11 images are also broken on unpatched Mir 2.9.0's miral-shell as tested on my desktop with 5.19.4 kernel:
waydroid-logcat-miral-kiosk-2.9.0.log

Running the same images under weston --shell=kiosk-shell.so worked perfectly fine, so it's definitely a Mir upstream issue with protocols; would you @dos1 like to file an issue since you might know the details better or should I do that? I would definitely like this to work on Mir as well so that those patches eventually benefit Ubuntu Touch as well when upgrade to Mir 2.x takes place.

@dos1
Copy link
Contributor

dos1 commented Aug 30, 2022

Filled as canonical/mir#2599

FWIW, #33 should already make Waydroid work on compositors that don't support wp_viewporter again, although they're going to miss surface cropping fixes.

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

Successfully merging a pull request may close this issue.

2 participants