Problem DefaultStarsConfig + long load times

Bug #1641803 reported by Keatah on 2016-11-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alexander Wolf

Bug Description

Stellarium 0.12.7 LTS

When first installing stellarium the load time is very quick. Then I go to download the additional star catalogs and exit normally.

Now stellarium takes considerably longer to load, because it is verifying the checksums, that's normal. And it marks the "checked" field for each entry (in starsconfig.json) as "true". Also ok.

But now on subsequent startups, the log says something about the starsconfig.json being the wrong version and the file itself isn't neatly arranged anymore - not like defaultstarsconfig.json is. There seems to be a problem at the very beginning and end of the file stellarium writes.

..from the log
Could not find the starsConfig.json file: will copy the default one.
Creates file "C:\Program Files\Stellarium\data2\stars\default\starsConfig.json"
Found an old starsConfig.json file, upgrade..
Creates file "C:\Program Files\Stellarium\data2\stars\default\starsConfig.json"
Loading star data ...

So apparently when stellarium writes and "upgrades" the file it isn't done correctly and the top and bottom parts are not organized correctly.

All subsequent loads detect an incorrect version and proceed to verify checksums which is unnecessary and time consuming on slower systems.


My work around for this is to do the following:

Manually copy the defaultStarsConfig.json file to the location where the extra downloaded star catalogs are stored. Then rename defaultStarsConfig.json to starsConfig.json. This is what stellarium is (apparently) doing too.

Edit the 2nd line to make it version 8, change the 9 to 8.
Then just replace "false" with "true" for each of the "checked fields.

And NOW stellarium parses it as the correct version and leaves it alone. It considers the files tested for the right checksum and loads much much faster now.

Related branches

Changed in stellarium:
assignee: nobody → Alexander Wolf (alexwolf)
importance: Undecided → High
tags: added: catalog
Changed in stellarium:
status: New → Fix Committed
milestone: none → 0.12.8
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers