Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.22.1: Segfault if star catalogues (v2.0) added to existing installation #2404

Closed
Kangie opened this issue Apr 17, 2022 · 6 comments
Closed
Assignees
Labels
bug Something likely wrong in the code importance: critical Real showstopper, program fails here state: confirmed A developer can reproduce the issue
Milestone

Comments

@Kangie
Copy link

Kangie commented Apr 17, 2022

While packaging 0.22.1 for Gentoo (gentoo/gentoo#25054) I noticed that if I enable the stars USE flag (which simply downloads the stars catalogue v2.0 files from stellarium-data & installs to /usr/share/stellarium/stars/default) after initialising the application without it that the application segfaults immediately after importing/loading the data for the first time.

All subsequent launches behave as expected, and if the initial launch detects these files it does not segfault.

Expected Behaviour

Stellarium should launch successfully when star catalogue .cat files are added.

Actual Behaviour

. . .
Loading nomenclature for Solar system bodies ...
Loaded 15781 / 15783 items of planetary surface nomenclature
WARNING - These planets to assign nomenclature items were not found: "Dactyl"
Loading star data ...
"Loading /usr/share/stellarium/stars/default/stars_0_0v0_8.cat: 0_0v0_8; 4979"
"Loading /usr/share/stellarium/stars/default/stars_1_0v0_8.cat: 1_0v0_8; 21806"
"Loading /usr/share/stellarium/stars/default/stars_2_0v0_8.cat: 2_0v0_8; 150826"
"Loading /usr/share/stellarium/stars/default/stars_3_1v0_4.cat: 3_1v0_4; 425807"
Found file  "/usr/share/stellarium/stars/default/stars_4_1v0_2.cat" , checking md5sum..
MD5 sum correct!
"Loading /usr/share/stellarium/stars/default/stars_4_1v0_2.cat: 4_1v0_4; 1692779"
Found file  "/usr/share/stellarium/stars/default/stars_5_2v0_1.cat" , checking md5sum..
MD5 sum correct!
[1]    1741584 segmentation fault (core dumped)  stellarium --verbose

Steps to reproduce

  1. Install stellarium with USE=-stars
  2. Launch the application
  3. Install with USE=stars
  4. Launch the application

I assume that this behaviour can be replicated by installing a binary distribution, launching it without the catalogue files, adding the catalogue files, then launching the app again.

System

  • Stellarium version: 0.22.1 - Gentoo
  • Operating system: Gentoo, ~amd64
  • Graphics Card: Nvidia
@github-actions
Copy link

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

@Kangie
Copy link
Author

Kangie commented Apr 17, 2022

See the linked PR for additional info / troubleshooting.

@DarthGandalf
Copy link
Contributor

Same happens if stars were available on previous runs, but then got removed. Then the first run after the removal also segfaults

@alex-w alex-w added bug Something likely wrong in the code state: confirmed A developer can reproduce the issue importance: critical Real showstopper, program fails here labels Apr 17, 2022
@alex-w alex-w added this to the 0.22.2 milestone Apr 17, 2022
@github-actions
Copy link

Hello @Kangie! OK, developers can reproduce the issue. Thanks for the report!

@alex-w alex-w closed this as completed in 43d4dba Apr 17, 2022
@alex-w alex-w self-assigned this Apr 17, 2022
@github-actions
Copy link

Hello @Kangie! Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@github-actions
Copy link

github-actions bot commented Jul 7, 2022

Hello @Kangie! Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something likely wrong in the code importance: critical Real showstopper, program fails here state: confirmed A developer can reproduce the issue
Development

No branches or pull requests

3 participants