Custom star database causes Celestia to crash when certain keys are pressed

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Topic author
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Custom star database causes Celestia to crash when certain keys are pressed

Post #1by SevenSpheres » 22.03.2020, 21:29

So this is something of an...unusual...bug.

It's possible to create a new, blank universe in Celestia by removing all data files except starnames.dat from celestia.cfg (if starnames.dat is removed Celestia refuses to start, although this has been fixed in Celestia 1.7.0). On the Discord we've been discussing adding a fictional stellar distribution to this blank universe and rebooting the Celestia Worldbuilding Project there, and we've come pretty far: Gurren Lagann used a program written by Sirius_Alpha to generate a stars.txt file with 10 million stars, and I then used the makestardb tool to convert it to a stars.dat file, which can be downloaded here: CelWPFillerStars.zip. Looks pretty good:

celwpstars.png

But here we come to the bug. When I press certain keys (e.g. "b" or "g") when using this star database, Celestia crashes. Does anyone have any idea what is causing this? To be clear, this is the beginning of the config file that I'm using:

Code: Select all

#************************************************************************
#                     Celestia Configuration File
#
# This file contains configuration data read by Celestia each time it
# is run. Many of the items may be changed to suit your specific needs
# or requirements. PLEASE make a backup copy of this file before you
# make any changes to it.
#
# To learn more about Celestia, visit the Celestia forums at:
#   https://celestia.space/forum/
# or the Celestia web site at: https://celestia.space/
#************************************************************************


Configuration
{

#------------------------------------------------------------------------
# This section contains a list of data files that Celestia uses to load
# information about stars, constellations and locations. DO NOT change
# these file names or the order in which they are listed, unless you
# know exactly what you are doing. Most of these files can be viewed
# with a plain text editor. Discussion about their content and formats
# can be found on the Celestia forums: https://celestia.space/forum/

# If you want to load all your stars from .stc files, you can now comment
# out the StarDatabase entry.
#------------------------------------------------------------------------
  StarDatabase                 "data/CelWPFillerStars.dat"
  StarNameDatabase             "data/starnames.dat"


#------------------------------------------------------------------------
# Default star textures for each spectral type
#
# The default textures may be overridden in individual star definitions.
#------------------------------------------------------------------------


Added after 37 minutes 40 seconds:
Note: It turns out that this bug does not happen in Celestia 1.7. It's 1.6 only.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
jujuapapa
Banned
Posts: 344
Joined: 24.06.2018
With us: 6 years 5 months
Location: Western E.U.

Post #2by jujuapapa » 24.03.2020, 06:46

None bug or crash for me with Celestia 1.6.2 :wink:
Soft: Celestia 1.6.2
PC : Intel Core i9-9900K (4 GHz) , Chipset Z390 Exp, RAM 32 Go DDR4 3000 Mhz, SSD M.2 512 Go + HDD 3 To, MSI GeForce RTX 2080 8Go - W10 64b

I lost my old user, so with us: since more 12 years
=> It is by doubting everything that everybody approaches the truth !

Avatar
Topic author
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #3by SevenSpheres » 24.03.2020, 17:09

jujuapapa wrote:None bug or crash for me with Celestia 1.6.2

Yeah it seems to depend on environment. Gurren Lagann doesn't see the bug but fyr02 does. I thought it might be due to the fact that I used makestardb compiled for 1.7, but onetwothree says there have been no changes to makestardb. It's all very confusing...
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #4by selden » 24.03.2020, 19:26

For me, Celestia v1.6.1 crashes after I select a star (left-mouse-button click on any of them) and then type "f" to follow it.

I had been wanting to then use the mouse-wheel to back off and see the overall shape of the star distribution but I can't get that far.
Selden

Avatar
Topic author
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #5by SevenSpheres » 24.03.2020, 20:18

selden, that's the same behavior I'm seeing. Do you have any idea why this happens, and/or why it doesn't happen for some users?

(I was able to make the screenshot in the OP by defining the Sun in an stc file, so Celestia automatically followed it on startup.)
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
fyr02
Posts: 249
Joined: 19.04.2019
Age: 19
With us: 5 years 7 months
Location: San Diego, California (United States)

Post #6by fyr02 » 24.03.2020, 20:27

An interesting thing that I noticed is that pressing "g" only crashes when I leave txf fonts in the cfg. If I instead define a font file that does not exist or is not usable (like a ttf font) in 1.6.1 cfg, goto does not crash. Pressing "b" crashes 1.6.1 no matter what I do.

Testing ruled out any problems with hdindex and saoindex.
Image

Avatar
Topic author
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #7by SevenSpheres » 25.03.2020, 18:21

Update: as fyr02 says the bug doesn't occur when there's no font visible, and it seems to only occur in Windows 8 and above, not in Windows 7 (I assume jujuapapa is using Windows 7).

Added after 2 hours 8 minutes:
I think I know what it is - it's not specific keys, it's attempting to change the visible font that triggers the crash. But only on Windows 8 and 10, not 7. (Could anyone test this on Mac or Linux?)

Added after 10 minutes 15 seconds:
It's definitely a bug with 1.6.x and not TXF fonts. I just tested the star database with pre-TTF 1.7.0 and it worked.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
jujuapapa
Banned
Posts: 344
Joined: 24.06.2018
With us: 6 years 5 months
Location: Western E.U.

Post #8by jujuapapa » 26.03.2020, 06:10

SevenSpheres wrote:Update: as fyr02 says the bug doesn't occur when there's no font visible, and it seems to only occur in Windows 8 and above, not in Windows 7 (I assume jujuapapa is using Windows 7).
FALSE (W10 64b) ! :hi:

Ask before writing anything... :eek: :fie: :biggrin:
Soft: Celestia 1.6.2
PC : Intel Core i9-9900K (4 GHz) , Chipset Z390 Exp, RAM 32 Go DDR4 3000 Mhz, SSD M.2 512 Go + HDD 3 To, MSI GeForce RTX 2080 8Go - W10 64b

I lost my old user, so with us: since more 12 years
=> It is by doubting everything that everybody approaches the truth !

Avatar
Topic author
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #9by SevenSpheres » 06.04.2020, 18:59

I'm aware that this is no longer really relevant at this point, but I thought that if whether the bug occurs isn't OS-based, maybe it depends on the user's language. This would make sense, since the four users who see the bug are using Celestia in English, while the two that don't see it have other languages (Portuguese and French). So I tried running Celestia 1.6.2 with the blank config and 10 million star database in both Portuguese and French (see here for instructions on how to do this)...and Celestia still crashed. This is just as confusing as before.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED


Return to “Help Central”