https://bugs.kde.org/show_bug.cgi?id=528872

            Bug ID: 528872
           Summary: Alpine APK backend leaves Home empty when queries run
                    during initial resource loading
    Classification: Applications
           Product: Discover
      Version First 6.6.6
       Reported In:
          Platform: postmarketOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: discover
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
On an ASUS TF700T (Tegra3, ARMv7, 1 GiB RAM) running Nura/postmarketOS v26.06
with Alpine v3.24 packages, Discover Home stays empty and displays a
connectivity error. Package search works after waiting for initialization. This
report concerns browsing/search results, not package installation or a D-Bus
helper crash.

ORIGINAL REPORTER DESCRIPTION (Russian)
Если запустить Discover и выбрать "весь каталог", то там ВСЕГДА отображается
надпись "Не удалось получить список приложений. Проверьте подключение к
Интернет", при этом поиск приложений работает, но как-то несколько неохотно.

ENGLISH TRANSLATION
Whenever I start Discover and select “Весь каталог” (the Home page), it says
“Unable to load applications. Please verify Internet connectivity”. Searching
for applications works, but feels sluggish.

STEPS TO REPRODUCE
1. Start the unmodified Discover 6.6.6 with the Alpine APK backend, on a slow
ARMv7 device with valid repository indices and AppStream data.
2. Open the Home page while the backend is still loading its initial resources.
3. Wait for resource loading to finish. The original Home results remain empty.
4. Enter a new package search after loading finishes; it returns packages.

OBSERVED RESULT
Home keeps showing the connectivity error instead of applications. In an
instrumented private Discover process using the installed, unmodified Alpine
APK factory, early search/FeaturedModel instances remained empty after
fetchingUpdatesProgress reached 100. New models created later in the same
process returned Remmina=4, Krita=1 and featured=7.

The following is actual instrumentation output, not a backtrace or a proposed
diagnosis:
qml: TF700RACE
{"seconds":82,"progress":0,"ready":false,"earlySearch":{"valid":true,"number":0,"string":"0"},"earlyFeatured":0}
qml: TF700RACE
{"seconds":84,"progress":100,"ready":true,"earlySearch":{"valid":true,"number":0,"string":"0"},"earlyFeatured":0}
qml: TF700LATE
{"search":{"valid":true,"number":4,"string":"4"},"krita":{"valid":true,"number":1,"string":"1"},"featured":7}
qml: TF700RACE
{"seconds":90,"progress":100,"ready":true,"earlySearch":{"valid":true,"number":0,"string":"0"},"earlyFeatured":0}

The private instrumentation used additional ResourcesProxyModel/FeaturedModel
objects in one process, with a copy of the normal cache and an isolated
HOME/runtime/session bus. Discover --test normally forces the dummy backend;
for these APK measurements, a private plugin directory aliased that name to the
installed Alpine APK factory. The QML and full counter output can be supplied
if useful. The ordinary user-visible symptom was also observed outside this
diagnostic process.

EXPECTED RESULT
Queries started while the backend is loading should eventually display
available application data. Home should not permanently report a connectivity
failure when a new search in the same process can find packages.

SOFTWARE/OS VERSIONS
Nura/postmarketOS v26.06, Alpine v3.24 main/community; ARMv7 musl.
Plasma X11 with Openbox; QT_QUICK_BACKEND=software.
Installed packages recorded on the affected system:
apk-tools-3.0.9-r0
appstream-1.1.2-r0
appstream-qt-1.1.2-r0
discover-6.6.6-r0
discover-backend-apk-6.6.6-r0
libapk-qt-0.4.6-r9
plasma-desktop-6.6.6-r0
qt6-qtbase-6.11.1-r0

ADDITIONAL INFORMATION
APK indices and the actual AppStream endpoints were reachable. apk update
succeeded and reported 28034 available packages. The issue was observed
repeatedly with the unmodified APK module.

AlpineApkBackend.cpp and .h were also checked at master
4120286b444bd76e9663b65afa84d06e5e627234 (2026-11-15); they match the inspected
6.6.6 code. Current master was not built or runtime-tested.

The original reporter's own wording is included above. Translation,
instrumentation and preparation of this report were assisted by an AI agent.
Raw measured output and version information are provided to distinguish
observed behavior from any unverified explanation. No automatically generated
crash analysis or proposed root-cause text is being submitted.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to