Bug 442591 - Catalogs get continuously uninstalled after update to 3.5.5
Summary: Catalogs get continuously uninstalled after update to 3.5.5
Status: RESOLVED NOT A BUG
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.5.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Boettcher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-17 11:50 UTC by Paolo
Modified: 2021-09-21 09:55 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 Paolo 2021-09-17 11:50:00 UTC
After the update to v3.5.5, I get the following error:

"Due to a known issue in the KDE framework, updating already downloaded items is not possible."

and then all installed catalogs are removed.
I tried to do a clean install (e.g. remove all config/cache/user files and reinstall kstars), but after I've downloaded the catalog and restarted the application I get a notification with that error.


$ kstars 
Call to writableLocation without an application-based location.
org.kde.kstars: Welcome to KStars 3.5.5 Stable
org.kde.kstars: Build: 2021-09-15T00:00:00Z
org.kde.kstars: OS: "opensuse-tumbleweed"
org.kde.kstars: API: "x86_64-little_endian-lp64"
org.kde.kstars: Arch: "x86_64"
org.kde.kstars: Kernel Type: "linux"
org.kde.kstars: Kernel Version: "5.14.2-1-default"
org.kde.kstars: Qt Version: 5.15.2
org.kde.kstars: Processing  "unnamedstars.dat" , HTMesh Level 3
org.kde.kstars:   Sky Mesh Size:  512
org.kde.kstars: Loaded DSO catalog file:  "unnamedstars.dat"
org.kde.kstars: "Star HD20,794 not found."
org.kde.kstars: "Star HD98,230 not found."
org.kde.kstars: Loaded DSO catalogs.
File opened:  "/home/pstivanin/.local/share/kstars/comets.dat"
kf.xmlgui: Shortcut for action  "get_data" "Download New Data..." set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action  "timestep_increase_units" "Increase Time Scale" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action  "timestep_decrease_units" "Decrease Time Scale" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Cannot center on  "star" : no object found.
org.kde.kstars: Current icon theme is "Adwaita"
glibc >= 2.1 detected.  Using GNU extension sincos()
static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*)
File opened:  "/home/pstivanin/.local/share/kstars/comets.dat"
org.kde.kstars: Loading asteroids
File opened:  "/home/pstivanin/.local/share/kstars/asteroids.dat"
kf.kwidgetsaddons: Invalid pixmap specified.
kf.kwidgetsaddons: Invalid pixmap specified.
Comment 1 Valentin Boettcher 2021-09-17 13:49:58 UTC
Can you try to explicitly uninstall the catalog and install it again.
Otherwise deleting .local/share/knewstuff3/kstars.knsregistry might help.

On 9/17/21 14:09, Jasem Mutlaq wrote:
> https://bugs.kde.org/show_bug.cgi?id=442591
> 
> Jasem Mutlaq <mutlaqja@ikarustech.com> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Assignee|mutlaqja@ikarustech.com     |hiro@protagon.space
>
Comment 2 Paolo 2021-09-17 14:16:50 UTC
I've tried to:
* uninstall/install catalogs (even with everything uninstalled if I restart Kstars I get that error)
* removing everything kstars related from my home dir (find . -iname *kstars*)

Error still there. I'm using openSUSE Tumbleweed, latest snapshot, GNOME x86_64

I'm gonna try on a vm now.
Comment 3 Paolo 2021-09-17 14:58:57 UTC
How to reproduce:

1. download https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Current.iso
2. install OS with default settings, select "Desktop with GNOME"
3. after the system is installed, "sudo zypper in -y kstars"
4. launch kstars
5. at the setup wizard, select "download extra data"
6. install, for example, openNGC and Lynd's Catalogue of Dark Nebulae
7. close - done, exit kstars
9. start kstars again
10. select Data -> download new data

what happens: a popup with the error mentioned in c#1 appears and all installed catalogues are no longer intsalled

what should happen instead: no popup and catalogs are still there
Comment 4 Valentin Boettcher 2021-09-18 09:36:38 UTC
I am trying to reproduce the behavior now.
Let's see. I am suspecting that this is a problem with the upstream 
knewstuff code...

  9/17/21 16:58, Paolo wrote:
> https://bugs.kde.org/show_bug.cgi?id=442591
> 
> --- Comment #3 from Paolo <info@paolostivanin.com> ---
> How to reproduce:
> 
> 1. download
> https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Current.iso
> 2. install OS with default settings, select "Desktop with GNOME"
> 3. after the system is installed, "sudo zypper in -y kstars"
> 4. launch kstars
> 5. at the setup wizard, select "download extra data"
> 6. install, for example, openNGC and Lynd's Catalogue of Dark Nebulae
> 7. close - done, exit kstars
> 9. start kstars again
> 10. select Data -> download new data
> 
> what happens: a popup with the error mentioned in c#1 appears and all installed
> catalogues are no longer intsalled
> 
> what should happen instead: no popup and catalogs are still there
>
Comment 5 Valentin Boettcher 2021-09-18 09:41:16 UTC
can you tell me what "kf5-config --version" gives on your vm?

I can't reproduce the issue with version 5.84.0
On 9/17/21 16:58, Paolo wrote:
> https://bugs.kde.org/show_bug.cgi?id=442591
> 
> --- Comment #3 from Paolo <info@paolostivanin.com> ---
> How to reproduce:
> 
> 1. download
> https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Current.iso
> 2. install OS with default settings, select "Desktop with GNOME"
> 3. after the system is installed, "sudo zypper in -y kstars"
> 4. launch kstars
> 5. at the setup wizard, select "download extra data"
> 6. install, for example, openNGC and Lynd's Catalogue of Dark Nebulae
> 7. close - done, exit kstars
> 9. start kstars again
> 10. select Data -> download new data
> 
> what happens: a popup with the error mentioned in c#1 appears and all installed
> catalogues are no longer intsalled
> 
> what should happen instead: no popup and catalogs are still there
>
Comment 6 Paolo 2021-09-18 09:48:16 UTC
$ kf5-config --version
Qt: 5.15.2
KDE Frameworks: 5.85.0
kf5-config: 1.0
Comment 7 Paolo 2021-09-20 06:36:55 UTC
I just tried on openSUSE Leap 15.3 (installed from scratch on a VM), which has the following KDE components:

Qt: 5.12.7
KDE Frameworks: 5.76.0
kf5-config: 1.0

but the issue is still there :(
Comment 8 Paolo 2021-09-20 11:06:45 UTC
Hmm, that's weird. It seems that now catalogs are *no* longer being uninstalled, even though the notification always pops up when opening the catalog dialog.

I can no longer reproduce the deinstallation  bug.
Comment 9 Valentin Boettcher 2021-09-20 15:49:08 UTC
The notification is hardcoded and always pops up because there is an
upstream bug in knewstuff.
Sorry for the delay. I am still haggling with the VM :P
Comment 10 Valentin Boettcher 2021-09-20 16:31:05 UTC
Can you check if under Data->Manage DSO Catalogs the catalogs are
present and stay present...
Comment 11 Valentin Boettcher 2021-09-20 17:10:58 UTC
Ok weird. For me kstars just straight out crashes in the vm
Comment 12 Paolo 2021-09-21 06:50:52 UTC
Yes, catalogs are installed and present!

Ok,if the notification is expected then this bug can be closed, I'd say.
I'm not able to reproduce it again.
Comment 13 Paolo 2021-09-21 06:51:37 UTC
you mean on an openSUSE vm?
for me it works just fine, both with 15.3 GNOME and Tumbleweed GNOME. I've allocated 2GB ram and 2 vCPUs (I'm using virt-manager)
Comment 14 Valentin Boettcher 2021-09-21 09:26:17 UTC
> you mean on an openSUSE vm?
> for me it works just fine, both with 15.3 GNOME and Tumbleweed GNOME. I've
> allocated 2GB ram and 2 vCPUs (I'm using virt-manager)

I'm using VirtualBox with 4GiB and 4 cores. No clue what's going on. I
suspect that something inside the VirtualBox kernel stuff is glitching
on nixos...

> Yes, catalogs are installed and present!
>
> Ok,if the notification is expected then this bug can be closed, I'd say.
> I'm not able to reproduce it again.

The thing with that popup message is rather unfortunate, but has to stay
for now. The downloading and updating of the catalogs is handled by an
external library [knewstuff] that we don't have control over. Currently,
updating catalogs is broken, so you have to uninstall and reinstall them
to update. A fix is already in the upstream code, but it takes a while
to propagate.
Comment 15 Paolo 2021-09-21 09:55:28 UTC
Ok, thanks a lot Valentin!