sailfishos-chum / sailfishos-chum-gui

GUI application for utilising the SailfishOS:Chum community repository
https://openrepos.net/content/olf/sailfishoschum-gui-installer
MIT License
13 stars 17 forks source link

[Bug] Chum GUI won't launch and won't refresh repository #296

Closed E-Pa1N closed 3 months ago

E-Pa1N commented 3 months ago

SailfishOS VERSION (Settings → About product → Build): 4.6.0.13
HARDWARE (Settings → About product → Manufacturer & Product name): Sony Xperia 10 III
SailfishOS:Chum GUI application VERSION (\<Top pulley> → About): 0.6.8

BUG DESCRIPTION

Installation via RPM succeeds, icon appears in drawer. Launching via icon results in loading screen, but stops and closes after several seconds have passed. Launching via CLI results in missing library messages, two times a "Failed to obtain authentication" message, but strangely does launch the application with a "Failed to refresh SailfishOS:Chum repository" message

STEPS TO REPRODUCE

I'm starting to be quite sure this is something with my installation, but hopefully it can be resolved without a reinstall, plus I'm curious to figure out what exactly goes wrong! But these are the steps:

Install RPM and launch from icon or CLI

ADDITIONAL INFORMATION

This is the relevant CLI output:

as devel-su: # pkcon install-local sailfishos-chum-gui-installer-0.6.5-1.noarch.rpm Installing files Testing changes Finished Testing changes Installing files Starting Installing packages Finished Downloaded sailfishos-chum-gui-installer-0.6.5-1.noarch (PK_TMP_DIR) Installs SailfishOS:Chum GUI application Installed sailfishos-chum-gui-installer-0.6.5-1.noarch (PK_TMP_DIR) Installs SailfishOS:Chum GUI application

$ sailfishos-chum-gui [D] unknown:0 - Using Wayland-EGL library "libui_compat_layer.so" not found library "libutils.so" not found library "libcutils.so" not found library "libhardware.so" not found library "android.hardware.graphics.mapper@2.0.so" not found library "android.hardware.graphics.mapper@2.1.so" not found library "android.hardware.graphics.mapper@3.0.so" not found library "android.hardware.graphics.mapper@4.0.so" not found library "libc++.so" not found library "libhidlbase.so" not found library "libgralloctypes.so" not found library "android.hardware.graphics.common@1.2.so" not found library "libion.so" not found library "libz.so" not found library "libhidlmemory.so" not found library "android.hidl.memory@1.0.so" not found library "vendor.qti.qspmhal@1.0.so" not found [W] unknown:0 - Failed to refresh Chum repository "Failed to obtain authentication." [W] unknown:0 - Failed to refresh Chum repository "Failed to obtain authentication."

Hopefully this works, but this should be the installer log: sailfishos-chum-gui-installer.log.txt

Olf0 commented 3 months ago

Thank you very much @E-Pa1N for your concise bug report.

Two quick replies from me

Any ideas or comments from @rinigus and/or @piggz?

E-Pa1N commented 3 months ago

You're more than welcome 😊

It actually does launch yes! Upon startup and manually refreshing repositories it gives the repository error, and it lists no installed applications nor any available applications or updates! Here are two screenshots:

Screenshot_20240618_214208_001 Screenshot_20240618_214159_001

I was under the impression that on SFOS 4.6 it was already working for everyone beside the repository issues that have been fixed in the meantime, with setting the OS version to 4.6 as a temporary workaround. Does Chum GUI not work for most people on 4.6 ?

Let me know if there's anything else I can do to contribute! 🤗

piggz commented 3 months ago

Can you show the output of ssu lr thanks

E-Pa1N commented 3 months ago

$ ssu lr WARNING: ssu.ini does not seem to be writable. Setting values might not work. Enabled repositories (global):

Enabled repositories (user):

piggz commented 3 months ago

Ok, so the repo looks to be created fine.....

Can you do the following: ssh into the device and gain root capture the output of: journalctl -f

While on the phone, opening the app

Paste in some pastebin service.

E-Pa1N commented 3 months ago

chumcapture.txt

In this capture I've both opened the app via GUI (first attempt) and then CLI (second attempt)

E-Pa1N commented 3 months ago

Some extra information:

E-Pa1N commented 3 months ago

All open issues I had have been solved since yesterday, don't exactly know what fixed it (perhaps an update pushed via a repo?) but Chum GUI is working well, opening via the launcher icon, refreshing repositories, and I can update and install applications just fine!

Olf0 commented 3 months ago

Some extra feedback:

  • Starting via CLI succeeds and throws a couple of additional content-related errors (can't find .svg files and certain URLs)

These are usually caused by dead (i.e. no link target exists any longer) or broken (i.e. typos etc.) web-links in the SailfishOS:Chum metadata of some packages. If you take a closer look at the links named as cause in these error messages, you will easily determine which package metadata is causing each of them. If you want to be kind, look up the SailfishOS:Chum metadata in the rpm/<package-name>.spec file of an affected packages at GitHub (or wherever the package source code is hosted at), try to determine what is wrong (see above: broken or dead link?) and write a bug report for that package. If you know exactly what is wrong and how to fix it (e.g. a typo), you can also submit a PR (pull request) fixing the issue instead of the bug report: At GitHub's / GitLab's / Codeberg's web-UI this can be accomplished quite easily.