maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Flatpak on Sailfish OS (https://talk.maemo.org/showthread.php?t=100909)

coderus 2020-02-28 09:09

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565745)
Right now, as of today, its

Code:

sleep 48h
Hopefully, by that time KDE 5.12 is sorted or new Angelfish is released.

i am using with 5.14, still not clearly understand how to update application and stuff

rinigus 2020-02-28 09:25

Re: Flatpak on Sailfish OS
 
Looks like Angelfish has been updated in the repos.

To update:

Code:

flatpak update
Follow the questions and respond to them accordingly. Usually, just Y is sufficient.

To remove unused runtimes

Code:

flatpak uninstall --unused
If you are using Angelfish only and had it before as well, that should remove KDE 5.12

With 5.14 KDE and new Angelfish, install also

Code:

flatpak install --user org.freedesktop.Platform.ffmpeg-full
For new keyboard plugin, install

Code:

flatpak install --user org.kde.PlatformInputContexts.MaliitSailfishOS
Tonight I plan to release Flatpak Runner which would drop the support for older Maliit plugin and will configure environment for better WebEngine support.

edp17 2020-02-28 11:09

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565754)
The best I can come up is to grep inside flatpak platform. As in

flatpak run --command=sh org.kde.mobile.angelfish

then in the opened shell, try to grep files in /usr

As for patch, I don't know who to ask. I am mainly in contact with some KDE developers. That type of question should probably belong to freedesktop-sdk IRC/Matrix channel or their issue tracker in gitlab. But try to see first which file has the error message and proceed from there.

I probably have misunderstood you. I thought you were in contact with the Flatpak developers.
I'll try to do my best to find out where the error was coming from and then we will see the further options. Thanks.

edp17 2020-02-28 11:11

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565753)
No, flatpak-libs is not needed on device. Have you rebooted after installation? Other than that, I am out of ideas on why that xdg- missing error is issued

Yes, I did reboot. I have tried to strace it but in that case I got another error and the angelfish didn't even start. I'll play with it more once I am at home with pc.

rinigus 2020-02-28 11:35

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1565761)
Yes, I did reboot. I have tried to strace it but in that case I got another error and the angelfish didn't even start. I'll play with it more once I am at home with pc.

Then it's hard to say what's wrong. You can try to run

flatpak run --command=sh org.kde.Platform

and see if you get the prompt inside flatpak. It could be a manifestation of using old kernel, but I am speculating here.

Note that neochapay started working on Qt 5.12 builds for Nemo. If he pulls it off, assuming that we can install it in parallel with Qt 5.6, we can probably run 5.12 apps via similar solution as Flatpak Runner even without Silica support. Maybe its more realistic to wait for this solution than trying to fight requirements with old kernels.

edp17 2020-02-28 13:46

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565762)
Then it's hard to say what's wrong. You can try to run

flatpak run --command=sh org.kde.Platform

and see if you get the prompt inside flatpak. It could be a manifestation of using old kernel, but I am speculating here.

Note that neochapay started working on Qt 5.12 builds for Nemo. If he pulls it off, assuming that we can install it in parallel with Qt 5.6, we can probably run 5.12 apps via similar solution as Flatpak Runner even without Silica support. Maybe its more realistic to wait for this solution than trying to fight requirements with old kernels.

I have ran that (flatpak run --command=sh org.kde.Platform) on my S2 and got:
Code:

FATAL: kernel too old
error: ldconfig failed, exit status 34304

It seems this is a no go for the S2. :(
How good could have been, if it worked. Anyway, thanks for your hard work.

On the Nexus 5, I got:
Code:

bwrap: execvp xdg-dbus-proxy: No such file or directory
and it didn't give the cursor back until I terminated with a CTRL+C

You are probably right when saying better to wait for the newer Qt.
With that (Qt 5.12) we might will be able to install/compile Linphone. And with that finally we can have video calls on Sailfish. That would be so :cool:

coderus 2020-02-28 17:07

Re: Flatpak on Sailfish OS
 
btw, where is "Usage: gpg-connect-agent [options] (-h for help)" come from? can it be suppressed?

about angelfish - is there way to change video quality in youtube?

rinigus 2020-02-28 18:21

Re: Flatpak on Sailfish OS
 
Flatpak Runner 0.6.0 is released with the environment variables set for Qt WebEngine. As its SFOS app, update with zypper or any other tool you prefer, as usual. Not in OpenRepos yet, probably should upload soon.

Please also uninstall flatpak-maliit-plugin-qt (SFOS package) and install org.kde.PlatformInputContexts.MaliitSailfishOS (Flatpak package) instead.

As Angelfish has been updated as well, you can update that as well (some of you probably did already). Please note it will pull KDE 5.14, you can remove 5.12 after.

For keyboard install, ffmpeg install (required for video playback), uninstall of unused packages, see http://talk.maemo.org/showpost.php?p...6&postcount=82

If you are short in storage, instead of update, remove Angelfish and other flatpak packages (unused ones), and install Angelfish with the new runtime.


Re gpg messages: as far as I remember, its due to old GPG used in SFOS. Seems you can ignore it.

Re Youtube video quality, other select actions: Select action on most websites lead to opening overlayed window. As the composer implemented in Flatpak Runner is properly primitive, its not able to do so. I would prefer not to spend time on it and wait till we get newer QtWayland on SFOS. As we use QtWayland 5.4, whatever we do, is very temporary. Before that Qt update it makes more sense to spend time on making the browser and other projects. Just remember that limitation and stay away from those drop down comboboxes on such sites as TMO.

Jedibeeftrix 2020-02-29 09:43

Re: Flatpak on Sailfish OS
 
have we had anything from Jolla to indicate when the Qt update for SFOS is coming? It has been coming 'soon' for years now.

and are we presuming that a new qt-wayland version will arrive with a new Qt version?

thank you for all your work on this, would love to see it made official.

rinigus 2020-02-29 10:17

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Jedibeeftrix (Post 1565775)
have we had anything from Jolla to indicate when the Qt update for SFOS is coming? It has been coming 'soon' for years now.

and are we presuming that a new qt-wayland version will arrive with a new Qt version?

thank you for all your work on this, would love to see it made official.

They mentioned it in one of the last IRC meetings, but are afraid of setting the date for it. Not sure whether the work on 5.12 has started yet. In the public branches, we have https://git.sailfishos.org/mer-core/qtbase/tree/mer-5.9 , but it stalled about a year ago.

I would expect that Qt Wayland will be updated as well. But your guess is as good as mine.

coderus 2020-02-29 11:28

Re: Flatpak on Sailfish OS
 
Just installed flatpak to my XA2
Code:

[nemo@Sailfish ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-1
WAYLAND_DISPLAY="../../display/wayland-1" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-hxDgBBD9wQ,guid=aabaee73b085b4a4461ed6015e5a4a22" flatpak run --env=QT_WAYLAND_FORCE_DPI=289 --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 org.kde.mobile.angelfish
[D] onCompleted:424 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[W] unknown:52 - file:///usr/share/flatpak-runner/qml/main.qml:52:26: Unable to assign [undefined] to bool

i see window with angelfish logo, spinning busyindicator, and nothing happens

rinigus 2020-02-29 11:50

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565778)
Just installed flatpak to my XA2
Code:

[nemo@Sailfish ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-1
WAYLAND_DISPLAY="../../display/wayland-1" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-hxDgBBD9wQ,guid=aabaee73b085b4a4461ed6015e5a4a22" flatpak run --env=QT_WAYLAND_FORCE_DPI=289 --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 org.kde.mobile.angelfish
[D] onCompleted:424 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[W] unknown:52 - file:///usr/share/flatpak-runner/qml/main.qml:52:26: Unable to assign [undefined] to bool

i see window with angelfish logo, spinning busyindicator, and nothing happens

It depends on whether you have libhybris version >= 0.0.5.34 on XA2. Unless it's some kind of development device with future SFOS version running on it, you are out luck on XA2. Hopefully, next SFOS release will include that libhybris.

As for spinning disk, logo and absence of action. Don't forget that we have SFOS app (flatpak-runner) which starts first, then flatpak app is started with Wayland display pointing to the display created by flatpak-runner. Hence, spinning disk is just provided by flatpak-runner itself. I guess in XA2 case, it gets stuck with some hybris trouble and never finishes the flatpak process.

coderus 2020-03-01 08:18

Re: Flatpak on Sailfish OS
 
i have 0.0.5.34 on my XA2

what can be debugged?

rinigus 2020-03-01 10:59

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565798)
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.

coderus 2020-03-01 13:15

Re: Flatpak on Sailfish OS
 
GL was generated after install then rebooted, shell works okay

not sure what to do with filesystems?

strace is full of ENOENT: https://gist.github.com/CODeRUS/add4...c89520736ab9e9

rinigus 2020-03-01 13:55

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565811)
GL was generated after install then rebooted, shell works okay

not sure what to do with filesystems?

strace is full of ENOENT: https://gist.github.com/CODeRUS/add4...c89520736ab9e9

As long as it finds library later, ENOENT is OK.

Looks like something is off with egl:

Code:

writev(6, [{iov_base="\0\7\0w\264[^\327C+!", iov_len=11}, {iov_base="\5", iov_len=1}, {iov_base="libEGL\0", iov_len=7}, {iov_base="eglInitialize(0x3726b78) failed "..., iov_len=48}], 4) = 67
Anything relevant in dmesg/journal?

As for filesystems, which ones are mounted on device? (df)

coderus 2020-03-01 15:31

Re: Flatpak on Sailfish OS
 
both journal and dmesg are silent.

Code:

[nemo@Sailfish ~]$ df
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sailfish/root    2488624  1366160  1080532  56% /
devtmpfs              1263452      312  1263140  0% /dev
tmpfs                  1351608        0  1351608  0% /dev/shm
tmpfs                  1351608    21356  1330252  2% /run
tmpfs                  1351608        0  1351608  0% /sys/fs/cgroup
tmpfs                  1351608        8  1351600  0% /tmp
tmpfs                  1351608        0  1351608  0% /mnt
/dev/mmcblk0p71        840320    276924    538772  34% /opt
/dev/mmcblk0p68        380360    211172    156900  57% /odm
/dev/mmcblk0p42        112592    97936    14656  87% /firmware
/dev/mmcblk0p40          65488      496    64992  1% /bt_firmware
/dev/mmcblk0p2          28144      444    27048  2% /persist
/dev/mmcblk0p44          12016      7484      4208  64% /dsp
/dev/mapper/sailfish-home
                      18131468  4322680  13612804  24% /home
tmpfs                  270324      820    269504  0% /run/user/100000
/dev/mmcblk1p1        15549952      8128  15541824  0% /run/media/nemo/3334-3431


rinigus 2020-03-01 18:38

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565819)
both journal and dmesg are silent.

Code:

[nemo@Sailfish ~]$ df
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sailfish/root    2488624  1366160  1080532  56% /
devtmpfs              1263452      312  1263140  0% /dev
tmpfs                  1351608        0  1351608  0% /dev/shm
tmpfs                  1351608    21356  1330252  2% /run
tmpfs                  1351608        0  1351608  0% /sys/fs/cgroup
tmpfs                  1351608        8  1351600  0% /tmp
tmpfs                  1351608        0  1351608  0% /mnt
/dev/mmcblk0p71        840320    276924    538772  34% /opt
/dev/mmcblk0p68        380360    211172    156900  57% /odm
/dev/mmcblk0p42        112592    97936    14656  87% /firmware
/dev/mmcblk0p40          65488      496    64992  1% /bt_firmware
/dev/mmcblk0p2          28144      444    27048  2% /persist
/dev/mmcblk0p44          12016      7484      4208  64% /dsp
/dev/mapper/sailfish-home
                      18131468  4322680  13612804  24% /home
tmpfs                  270324      820    269504  0% /run/user/100000
/dev/mmcblk1p1        15549952      8128  15541824  0% /run/media/nemo/3334-3431


Doesn't look from your strace that the missing mounts are missed. I am pretty much blank at this point. Maybe we can learn from comparison with some Sailfish app strace when its started.

I presume that the window of Angelfish did not appear in your test.

Also, maybe some folder needs to be exported in / . Is there anything obvious there?

As for no records in dmesg and journal - I wonder where do those writes with egl failed go (https://gist.github.com/CODeRUS/add4...r-strace-L9132)

Let's get the strace and ask for help in the porters channel. Maybe someone has an idea on what's wrong with XA2 setup.

coderus 2020-03-01 20:50

Re: Flatpak on Sailfish OS
 
got this from /system/bin/logcat:
Code:

03-01 20:50:12.930  7981    5 D vndksupport: Loading /vendor/lib/hw/gralloc.default.so from current namespace instead of sphal namespace.
03-01 20:50:12.931  7981    5 E cutils-trace: Error opening trace file: No such file or directory (2)
03-01 20:50:12.931  7981    5 D vndksupport: Loading /vendor/lib/egl/libEGL_adreno.so from current namespace instead of sphal namespace.
03-01 20:50:12.932  7981    5 D libEGL  : loaded /vendor/lib/egl/libEGL_adreno.so
03-01 20:50:12.938  7981    5 D vndksupport: Loading /vendor/lib/egl/libGLESv1_CM_adreno.so from current namespace instead of sphal namespace.
03-01 20:50:12.939  7981    5 D libEGL  : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
03-01 20:50:12.952  7981    5 D vndksupport: Loading /vendor/lib/egl/libGLESv2_adreno.so from current namespace instead of sphal namespace.
03-01 20:50:12.952  7981    5 D libEGL  : loaded /vendor/lib/egl/libGLESv2_adreno.so
03-01 20:50:12.969  7981    5 I Adreno  : QUALCOMM build                  : 1dcb581, I26dffed9a4
03-01 20:50:12.969  7981    5 I Adreno  : Build Date                      : 01/10/18
03-01 20:50:12.969  7981    5 I Adreno  : OpenGL ES Shader Compiler Version: EV031.22.00.01
03-01 20:50:12.969  7981    5 I Adreno  : Local Branch                    :
03-01 20:50:12.969  7981    5 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.6.4.R1.08.00.00.309.049
03-01 20:50:12.969  7981    5 I Adreno  : Remote Branch                    : NONE
03-01 20:50:12.969  7981    5 I Adreno  : Reconstruct Branch              : NOTHING
03-01 20:50:12.969  7981    5 D vndksupport: Loading /vendor/lib/hw/gralloc.default.so from current namespace instead of sphal namespace.
03-01 20:50:12.969  7981    5 I Adreno  : OpenGrallocModuleAndDevice: Failed to open the Gralloc device, error: -22
03-01 20:50:12.969  7981    5 W libEGL  : eglInitialize(0xbc110e8) failed (EGL_BAD_ALLOC)


rinigus 2020-03-02 06:38

Re: Flatpak on Sailfish OS
 
@coderus: thank you very much, at least some error message. I should have remembered about logcat...

coderus 2020-03-02 10:44

Re: Flatpak on Sailfish OS
 
cool, but any ideas? :D

rinigus 2020-03-02 10:57

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565839)
cool, but any ideas? :D

I'll ask on porters channel if someone has any. Should be some missing property or lib in the environment. Would be able to start discussion bit later today...

rinigus 2020-03-02 12:25

Re: Flatpak on Sailfish OS
 
@coderus, would you mind to provide strace for some SFOS app? So, it would be clear which gralloc is used usually on XA2, for example.

edp17 2020-03-02 12:44

Re: Flatpak on Sailfish OS
 
What should be the libhybris version on the XA2? On mine that is 0.0.5.31-1.54.4
According to the Flatpak doc the supported devices should have >= 0.0.5.34

@coderus: Did you get the newer version of libhybris to your XA2 or you tried Flatpak with the same libhybris version that I have got on mine? I am a bit :confused: here. Thanks.

rinigus 2020-03-02 13:55

Re: Flatpak on Sailfish OS
 
@coderus, when you get to it, please generate also logs with HYBRIS_LD_DEBUG=1 in addition to strace.

So, I would like to get

* strace of regular SFOS app on XA2

* output of regular SFOS app on XA2 running with HYBRIS_LD_DEBUG=1 set, no strace for reading simplicity

* output of "flatpak run ... --env=HYBRIS_LD_DEBUG=1 ..." , no strace for reading simplicity

It is possible that I am missing some specific libs in https://github.com/sailfishos-flatpa...tension-hybris and we have to figure out which.

coderus 2020-03-02 15:47

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1565842)
What should be the libhybris version on the XA2? On mine that is 0.0.5.31-1.54.4
According to the Flatpak doc the supported devices should have >= 0.0.5.34

@coderus: Did you get the newer version of libhybris to your XA2 or you tried Flatpak with the same libhybris version that I have got on mine? I am a bit :confused: here. Thanks.

i own future

Quote:

Originally Posted by rinigus (Post 1565845)
@coderus, when you get to it, please generate also logs with HYBRIS_LD_DEBUG=1 in addition to strace.

So, I would like to get

* strace of regular SFOS app on XA2

* output of regular SFOS app on XA2 running with HYBRIS_LD_DEBUG=1 set, no strace for reading simplicity

* output of "flatpak run ... --env=HYBRIS_LD_DEBUG=1 ..." , no strace for reading simplicity

It is possible that I am missing some specific libs in https://github.com/sailfishos-flatpa...tension-hybris and we have to figure out which.

sfos strace: https://gist.github.com/CODeRUS/3db4...6ccc40c689612a
sfos hybris debug: https://gist.github.com/CODeRUS/b988...280f2ce9b8175d
flatpak hybris debug: https://gist.github.com/CODeRUS/7bc3...69a4d8a68f0864

rinigus 2020-03-02 16:28

Re: Flatpak on Sailfish OS
 
@coderus: thanks a lot!

Do you have such folders/files as /plat_property_contexts and /nonplat_property_contexts in /?

It looks like properties (Android) are not loaded properly and that leads to wrong gralloc lib loaded in Flatpak.

Please send "ls /"

If those folders are indeed there, you can test by running flatpak with extra arguments:

--filesystem=/plat_property_contexts:ro --filesystem=/nonplat_property_contexts:ro

coderus 2020-03-02 16:47

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565848)
@coderus: thanks a lot!

Do you have such folders/files as /plat_property_contexts and /nonplat_property_contexts in /?

It looks like properties (Android) are not loaded properly and that leads to wrong gralloc lib loaded in Flatpak.

Please send "ls /"

If those folders are indeed there, you can test by running flatpak with extra arguments:

--filesystem=/plat_property_contexts:ro --filesystem=/nonplat_property_contexts:ro

files are there for sure:
Code:

[root@Sailfish nemo]# ls -la /
total 336
drwxr-xr-x  32 root    root          4096 Feb 28 21:47 .
drwxr-xr-x  32 root    root          4096 Feb 28 21:47 ..
drwxr-xr-x    3 root    root          4096 May 22  2019 .config
-rw-r--r--    1 root    root            0 Sep  6  1970 .fs-resized
drwxr-xr-x    2 root    root          4096 Feb 28 21:43 bin
drw-------    2 root    root          4096 Feb 28 21:45 boot
dr-xr-x---    3 bluetoot net_bt      16384 Jan  1  1970 bt_firmware
lrwxrwxrwx    1 root    root            50 Feb 16 16:50 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
lrwxrwx---    1 system  cache          11 Feb 16 16:50 cache -> /data/cache
drwxr-xr-x    4 root    root            0 Jan  1  1970 config
lrwxrwxrwx    1 root    root            17 Feb 16 16:50 d -> /sys/kernel/debug
drwxrwx--x  42 system  system        4096 Feb 16 17:52 data
lrwxrwxrwx    1 root    root            23 Feb 16 16:50 default.prop -> system/etc/prop.default
drwxr-xr-x  24 root    root          7860 Mar  2 19:43 dev
drwxr-xr-x    4 root    root          4096 Feb 16 16:50 dsp
drwxr-xr-x  75 root    root          4096 Mar  2 19:43 etc
drwxr-xr-x    2 root    root          4096 May 22  2019 fimage
dr-xr-x---    3 system  system      16384 Jan  1  1970 firmware
drwxr-xr-x  12 root    root          4096 Feb 28 21:47 home
-rwxr-xr-x    1 root    root        12406 Feb 11 14:08 init-debug
-rw-r--r--    1 root    root          1522 Feb 16 17:10 init.environ.rc
-rw-r--r--    1 root    root            98 Feb 16 17:10 init.extraenv.armeabi-v7a.rc
-rw-r--r--    1 root    root        29945 Feb 16 17:10 init.rc
-rw-r--r--    1 root    root          1909 Feb 16 17:10 init.recovery.pioneer.rc
-rw-r--r--    1 root    root          7874 Feb 16 17:10 init.usb.configfs.rc
-rw-r--r--    1 root    root          5721 Feb 16 17:10 init.usb.rc
drwxr-xr-x    7 root    root          4096 Feb 28 21:45 lib
drwx------    2 root    root        16384 May 22  2019 lost+found
drwxr-xr-x    2 root    root          4096 Feb 15 22:17 media
drwxrwxr-x  10 root    system        220 Mar  2 19:43 mnt
-rw-r--r--    1 root    root        18267 Feb 16 16:59 nonplat_file_contexts
-rw-r--r--    1 root    root          103 Feb 16 16:59 nonplat_hwservice_contexts
-rw-r--r--    1 root    root          861 Feb 16 16:59 nonplat_property_contexts
-rw-r--r--    1 root    root            95 Feb 16 16:59 nonplat_seapp_contexts
-rw-r--r--    1 root    root          141 Feb 16 16:59 nonplat_service_contexts
drwxr-xr-x    8 root    root          4096 Mar  5  2019 odm
drwxr-xr-x    5 root    root          4096 Feb 15 22:17 opt
drwxrwx--x  20 system  system        4096 May 22  2019 persist
-rw-r--r--    1 root    root        20703 Feb 16 16:59 plat_file_contexts
-rw-r--r--    1 root    root          5768 Feb 16 16:59 plat_hwservice_contexts
-rw-r--r--    1 root    root          4341 Feb 16 16:59 plat_property_contexts
-rw-r--r--    1 root    root          965 Feb 16 16:59 plat_seapp_contexts
-rw-r--r--    1 root    root        12996 Feb 16 16:59 plat_service_contexts
dr-xr-xr-x  770 root    root            0 Jan  1  1970 proc
drwxr-x---    3 root    root          4096 Feb 15 22:17 root
drwxr-xr-x  34 root    root          780 Mar  2 19:43 run
drwxr-xr-x    2 root    root          4096 Feb 28 21:45 sbin
lrwxrwxrwx    1 root    root            21 Feb 16 16:50 sdcard -> /storage/self/primary
drwxr-xr-x    2 root    root          4096 Feb 15 22:17 srv
dr-xr-xr-x  13 root    root            0 Sep  6  1970 sys
drwxr-xr-x    9 root    root          4096 Oct  1 14:30 system
drwxrwxrwt  14 root    root          460 Mar  2 19:44 tmp
-rw-r--r--    1 root    root          5222 Feb 16 17:10 ueventd.rc
drwxr-xr-x  12 root    root          4096 Feb 28 21:42 usr
drwxr-xr-x  17 root    root          4096 Feb 28 21:42 var
drwxr-xr-x    8 root    root          4096 Oct  1 14:30 vendor
-rw-r--r--    1 root    root          524 Feb 16 16:50 verity_key
-rw-r--r--    1 root    root          136 Feb 16 16:59 vndservice_contexts

with exttra arguments added angelfish started successfully!

rinigus 2020-03-02 18:22

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565849)
files are there for sure:

with exttra arguments added angelfish started successfully!

Excellent news! Sorry, looking at the files I am sure I asked earlier already.

You could use the same arguments with flatpak-runner (before org.kde.mobile.angelfish) until I fix it in the source. Hopefully tonight, but cannot promise as there is a merge request I am finishing for Angelfish.

coderus 2020-03-02 18:45

Re: Flatpak on Sailfish OS
 
cool! regarding angelfish - do you want to distribute offline .flatpak installers of your nightly builds?)

rinigus 2020-03-02 19:21

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565852)
cool! regarding angelfish - do you want to distribute offline .flatpak installers of your nightly builds?)

The changes when merged into the main repository should trigger rebuilds - so that's redistributed automatically. They just moved repository to https://invent.kde.org/kde/plasma-angelfish , so let's see if it will go smoother. On your side, all you have to do is to run

Code:

flatpak update
once in a while.

rinigus 2020-03-02 19:53

Re: Flatpak on Sailfish OS
 
Flatpak Runner 0.6.1 is out and it incorporates the fix needed for Xperia XA2 (and maybe some others on the same base). As always, update from OBS.

coderus 2020-03-02 21:32

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565854)
Flatpak Runner 0.6.1 is out and it incorporates the fix needed for Xperia XA2 (and maybe some others on the same base). As always, update from OBS.

it works, thanks!

edp17 2020-03-03 00:09

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565847)
i own future

(I need 10 characters.) How?:)

edp17 2020-03-03 00:10

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565854)
Flatpak Runner 0.6.1 is out and it incorporates the fix needed for Xperia XA2 (and maybe some others on the same base). As always, update from OBS.

Is it for any mortal XA2 or only for those immortals with the newer libhybris? :D

taixzo 2020-03-03 01:35

Re: Flatpak on Sailfish OS
 
Apparently angelfish is unable to play any videos on Pro1 - is there some library needed for this?

rinigus 2020-03-03 07:08

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by taixzo (Post 1565860)
Apparently angelfish is unable to play any videos on Pro1 - is there some library needed for this?

with KDE 5.14 and used Flatpak platform you need to install extension

Code:

org.freedesktop.Platform.ffmpeg-full
for video support. Videos should play then. Please let me know how it goes.

edp17: I think new hybris is coming with the next SFOS release. So, just wait a bit.

coderus 2020-03-03 08:57

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1565859)
Is it for any mortal XA2 or only for those immortals with the newer libhybris? :D

wait for 3.3

rinigus 2020-03-03 17:54

Re: Flatpak on Sailfish OS
 
I guess we will make separate thread for Angelfish when more users will start using it. Just a warning - MR got merged which changed bookmarks and history format. We are using SQLite for storage of these data together with thumbs now. For simplicity of the coders and assuming that the users prefer to see fast progress, old bookmarks and history have been just dropped without any import.

taixzo 2020-03-03 18:41

Re: Flatpak on Sailfish OS
 
Is it possible to change the Plasma theme? I realize making it tie into the ambiance theme is unlikely, but at least being able to set a dark mode would be nice.


All times are GMT. The time now is 07:27.

vBulletin® Version 3.8.8