Page 1 of 1

newrotation crashes immediately

Posted: 06.04.2019, 11:50
by krisztian
beginner tries celestia scripting the first time. this causes celestia to crash and just disappear

Code: Select all

ori = celestia:newrotation(-0.5, -0.5, 0.5, 0.5)


no error message, the celestia just quits. it is the entire script, no context, no shenanigans.

i'm on linux mint cinnamon 18.3
celestia compiled from source
version 1.7.0 (Qt5 beta version, git commit b2d88df)

i'm pretty much at a loss here, having no pointers whatsoever

any ideas?
TIA

Posted: 06.04.2019, 12:22
by pirogronian
@krisztian
I can confirm it. Just starting to fix...

Update: Please, check out my PR: https://github.com/CelestiaProject/Celestia/pull/259

Posted: 07.04.2019, 20:14
by krisztian
well, no surprise i coudn't get it to work then. anyway, kudos for the express fix!

Added after 1 hour 35 minutes:
i celebrated too early. the new version still crashes the exact same way.

Added after 9 minutes 49 seconds:
now i spoke too early. newrotation now succeeds, the error comes later. trying to reduce down to minimum code

Added after 22 minutes 57 seconds:
okay, so now it is observer:setorientation()

Code: Select all

rot = celestia:newrotation(1, 1, 1, 1)
obs = celestia:getobserver()
obs:setorientation(rot)

Posted: 08.04.2019, 09:51
by onetwothree
krisztian wrote:Added after 22 minutes 57 seconds:
okay, so now it is observer:setorientation()

Thanks for info, we will fix this asap.

Posted: 08.04.2019, 20:48
by krisztian
100%! more bugs later ;)

Posted: 09.04.2019, 10:36
by onetwothree
The fix for the issue is commited into master branch