Bug 396870

Summary: zoom-out crash kstars
Product: [Applications] kstars Reporter: Patrick <pkdt>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: critical    
Priority: NOR    
Version First Reported In: 2.9.6   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The log file of the session until kstars creashed

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