View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#94
Originally Posted by coderus View Post
i have 0.0.5.34 on my XA2

what can be debugged?
OK, then something is broken. As we seem to have AOSP9 devices (Sony Tama family and Pro1?) working so far, maybe its due to the other base.

Let's start with the simple test (assuming that all got installed and you did reboot after that):

Code:
flatpak run --command=sh org.kde.mobile.angelfish
That should bring you to the command prompt. As its not depending on hybris, it will show if the flatpak is running at all.

I wonder if you run flatpak-runner without any arguments (just from launcher) to initialize hybris extension? It is maybe easy to miss in the instructions.

If flatpak is working (shell in it is accessible), flatpak-runner has generated extension (ls -l ~/.local/share/flatpak/extension/org.freedesktop.Platform.GL.host), then we probably miss somethin in extension.

Check whether I miss any filesystem that should be there for libhybris in https://github.com/sailfishos-flatpa...runner.cpp#L83 for your device.

Next, we can run strace on angelfish and see where it breaks. For that, install Sdk:

Code:
flatpak install --user org.kde.Sdk//5.14
Then close flatpak-runner and let's start with the plain flatpak for simplicity (windows minimization will not work, but its not a problem as we don't have any window to start with). Command line is based on what flatpak-runner is composing and showing you in its terminal output as well as addition of -d --command=sh to get into development env

Code:
flatpak run --env=QT_WAYLAND_FORCE_DPI=335 --filesystem=/system:ro --filesystem=/vendor:ro --filesystem=/odm:ro --device=all --talk-name=org.maliit.server --env=QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu-compositing --num-raster-threads=1 --enable-viewport --disable-composited-antialiasing" --env=QTWEBENGINE_DISABLE_GPU_THREAD=1 --env=QT_QUICK_CONTROLS_MOBILE=1 --env=QT_QUICK_CONTROLS_STYLE=Plasma --env=HYBRIS_EGLPLATFORM_DIR=/usr/lib/arm-linux-gnueabihf/GL/host/lib/libhybris --env=HYBRIS_LINKER_DIR=/usr/lib/arm-linux-gnueabihf/GL/host/lib/libhybris/linker --env=HYBRIS_LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/GL/host/libexec/droid-hybris/system/lib:/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib --env=LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/GL/host/lib --command=sh -d org.kde.mobile.angelfish
In Flatpak environment, check if you can get any useful info from strace:

Code:
strace /app/bin/angelfish
Hopefully, strace will get stuck on some hybris call.
 

The Following 6 Users Say Thank You to rinigus For This Useful Post: