Closed DarthGandalf closed 2 years ago
Testing it further... It fails with qt5 too, if I use -DENABLE_SCRIPT_QML=yes
. But in this case the test fails even more
LastTest.log
The test passes with -DENABLE_SCRIPT_QML=no
, but this option is not available with qt6
-DENABLE_SCRIPT_QML should be false for Qt5. True with Qt5 is currently unsupported. This is one of the key differences between Qt5 and Qt6 versions. But yes, this is a new issue I also found yesterday, it's new with Qt6.4.
Hello @DarthGandalf!
OK, developers can reproduce the issue. Thanks for the report!
I'm not so good with Qt/C++, so I'm likely wrong but the entire Color
class in V3d.hpp
is defined within an #ifdef ENABLE_SCRIPT_QML
block, so shouldn't this test only run when ENABLE_SCRIPT_QML is defined? Instead the testColor()
function is outside such a block. I'm unable to test this at the moment because Stellarium doesn't properly compile with Qt6.4 on Arch-based Linux distributions (see: #2709).
Does current master still not compile on Arch? I moved to 6.4 on the day of your report, solved a mini issue and never had a problem since.
Oh, you made me realize, I downloaded the source code from releases instead of just cloning, then complained about an older issue persisting 🤦. I think I'm just too tired right now. I'll clone and try compiling again.
After some testing and reading about QML I realized that the bug is actually caused by passing hexColor
by reference in the Color constructor because QML apparently doesn't support reference signal parameters. Changing that seems to fix the issue.
Ah, thanks. Did not check yet.
Hello @DarthGandalf!
Please check the fresh version (development snapshot) of Stellarium: https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot
Hello @DarthGandalf!
Please check the latest stable version of Stellarium: https://github.com/Stellarium/stellarium/releases/latest
Expected Behaviour
Unit tests pass
Actual Behaviour
TestJavaScripting::testColor() fails Describe or maybe attach a screenshot?
Steps to reproduce
System
Logfile
If possible, attach the logfile
log.txt
from your user data directory. Look into the Guide for its location.LastTest.log