You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assertion failure in debug mode (star rendering)Â #4249
On zooming in, apparently an assumption about RCMAG_TABLE_SIZE does not hold. This triggers a crash in debug mode, and likely some hidden issue in release mode.
If possible, attach the logfile log.txt from your user data directory. Look into the Guide for its location.
"[ 93.761 fatal] stellarium default unknown - ASSERT: "cutoffMagStep<RCMAG_TABLE_SIZE" in file D:\StelDEV\stellarium\src\core\modules\ZoneArray.cpp, line 445"
"[ 93.808 fatal] stellarium default StelPainter::StelPainter - There can be only 1 instance of StelPainter at a given time"
The ASSERT: "cutoffMagStep<RCMAG_TABLE_SIZE" is written before Gaia DR3 catalog upgrade and I think the assert is not needed anymore, RCMAG_TABLE_SIZE is the size for table rcmag_table via rcmag_table[magIndex] and it is impossible for magIndex to be greater than 512. For stars in the 0th level catalog (which is for stars -2.<vmag<6.) to have magIndex greater than 512, the vmag of 0th catalog star need to be >16.6, while >24.6 for stars in the 1th level catalog.
I was afraid the rcmag table could be too small for stars after applying extinction (we had that around 2012...), but probably it's really just a 1-off.
Activity
alex-w commentedon Mar 27, 2025
@gzotti how many catalogs are loaded?
alex-w commentedon Mar 27, 2025
Oops... I can confirm the crash in debug mode
henrysky commentedon Mar 27, 2025
The
ASSERT: "cutoffMagStep<RCMAG_TABLE_SIZE"is written before Gaia DR3 catalog upgrade and I think the assert is not needed anymore,RCMAG_TABLE_SIZEis the size for tablercmag_tableviarcmag_table[magIndex]and it is impossible formagIndexto be greater than 512. For stars in the 0th level catalog (which is for stars -2.<vmag<6.) to havemagIndexgreater than 512, the vmag of 0th catalog star need to be >16.6, while >24.6 for stars in the 1th level catalog.And adding
right before
to sanity check never get printed.
gzotti commentedon Mar 28, 2025
I was afraid the rcmag table could be too small for stars after applying extinction (we had that around 2012...), but probably it's really just a 1-off.
Fix one-off assertion bug (Fix Stellarium#4249)
github-actions commentedon Mar 30, 2025
Hello @gzotti!
Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot
github-actions commentedon Jun 22, 2025
Hello @gzotti!
Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest