Bug 396870 - zoom-out crash kstars
Summary: zoom-out crash kstars
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 2.9.6
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-26 10:31 UTC by Patrick
Modified: 2018-07-26 10:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The log file of the session until kstars creashed (8.62 KB, text/plain)
2018-07-26 10:31 UTC, Patrick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2018-07-26 10:31:43 UTC
Created attachment 114139 [details]
The log file of the session until kstars creashed

This is the scenarii I use and can always reproduce.
I use the search engine to find moon today 26/07/2018 12h20.
I change time to tomorrow 27/07/2018 and quit the time modification dialog.
back to the time mod dialog. I change the hour to 22h15 on 27/07/2018 and quit the dialog. 
Moon is still centered.
I do a zoom out twice and get a crash without warning of kstars.
Comment 1 Jasem Mutlaq 2018-07-26 10:56:56 UTC
Git commit cde98d2932810fbe49dcb4f80d9b4364232d00ac by Jasem Mutlaq.
Committed on 26/07/2018 at 10:55.
Pushed by mutlaqja into branch 'master'.

Fix crash due to NaN asteroid magnitude. Also enforce show limit as per the options.

M  +5    -5    kstars/skycomponents/asteroidscomponent.cpp

https://commits.kde.org/kstars/cde98d2932810fbe49dcb4f80d9b4364232d00ac