Bug 498002 - Kasts app does not update podcasts on startup
Summary: Kasts app does not update podcasts on startup
Status: CONFIRMED
Alias: None
Product: kasts
Classification: Applications
Component: general (show other bugs)
Version: 24.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-29 03:12 UTC by Vinod Kumar N
Modified: 2025-01-03 09:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vinod Kumar N 2024-12-29 03:12:42 UTC
SUMMARY 
Kasts app fails to update my subscribed podcasts on startup.

Running 
Flatpak Kasts application


STEPS TO REPRODUCE
1. Go to Settings >> General >> Podcast update Settings >> check "Fetch Podcast updates on startup" 
2. Close settings and quit Kasts app
3. Open Kasts app

OBSERVED RESULT
Podcasts do not get updated on launching Kasts app.


EXPECTED RESULT
Podcasts should get updated upon launching the Kasts app.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Opensuse Tumbleweed 20241226
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Using Kasts Flatpak app
Comment 1 bart 2025-01-01 11:02:36 UTC
I can reproduce.  I'll see if I can find the root cause.
Comment 2 bart 2025-01-02 14:07:40 UTC
The cause seems to be a race condition: for each action that requires network access, Kasts checks whether there is a fuctional network connection, whether it's a metered connection and whether it's allowed to download over a metered connection.  Apparently, due to some internal change, Kasts gets told that there is no available network connection immediately after startup.  This is the moment that it tries to do the automatic feed update, so it does not try to update the feeds.  However, just a few seconds later (or even a fraction of a second), the network connection switches to "available".

I have no clue why this is happening in the flatpak, but not in e.g. distro packages.  Maybe it's due to the sandboxing?

As a workaround, you can deselect "enable network connection checks" from Settings > Network.  That should have it trigger the feed updates on startup.
Comment 3 Vinod Kumar N 2025-01-03 09:33:03 UTC
Thanks for the workaround. It works now.