newrotation crashes immediately

All about writing scripts for Celestia in Lua and the .cel system
Topic author
krisztian
Posts: 7
Joined: 06.04.2019
With us: 5 years 1 month

newrotation crashes immediately

Post #1by krisztian » 06.04.2019, 11:50

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

pirogronian
Developer
Posts: 234
Joined: 05.01.2018
Age: 38
With us: 6 years 4 months
Location: Wrocław
Contact:

Post #2by pirogronian » 06.04.2019, 12:22

@krisztian
I can confirm it. Just starting to fix...

Update: Please, check out my PR: https://github.com/CelestiaProject/Celestia/pull/259
Still formally developer, but too tired to develop. I feel sad, but Celestia is going forward despite it.
Btw, the universe is ruled by electricity.

Topic author
krisztian
Posts: 7
Joined: 06.04.2019
With us: 5 years 1 month

Post #3by krisztian » 07.04.2019, 20:14

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)

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #4by onetwothree » 08.04.2019, 09:51

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

Thanks for info, we will fix this asap.

Topic author
krisztian
Posts: 7
Joined: 06.04.2019
With us: 5 years 1 month

Post #5by krisztian » 08.04.2019, 20:48

100%! more bugs later ;)

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #6by onetwothree » 09.04.2019, 10:36

The fix for the issue is commited into master branch


Return to “Scripting”