[Marble-bugs] [marble] [Bug 365009] New: Crash with AzimuthalEquidistantProjection and calculation of x, y for labels

Friedrich W. H. Kossebau via KDE Bugzilla bugzilla_noreply at kde.org
Sat Jul 2 17:28:54 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=365009

            Bug ID: 365009
           Summary: Crash with AzimuthalEquidistantProjection and
                    calculation of x,y for labels
           Product: marble
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: kossebau at kde.org

Marble crashed. You suck!

Reproducible: Always

Steps to Reproduce:
1. Open Marble, use OSM map theme, mercator view
2. Enter "11° 17' 23,0"E,  51° 59' 12,6"N" in Search field and press Enter
3. Keep search result and it's label in the view
4. Select "Azimuthal Equidistant"

Actual Results:  
Boom.

Expected Results:  
No boom.

The crash results from x & y being NaNs. They are because there is a division
by 0 in
bool AzimuthalEquidistantProjection::screenCoordinates( const
GeoDataCoordinates &coordinates,
                                             const ViewportParams *viewport,
                                             qreal &x, qreal &y, bool
&globeHidesPoint ) const
For some reason cosC becomes 1, so c becomes 0 , so k gets NaN (due to divide
by 0), thus x & y get NaN.
No clue about the calculations happening there, so no idea what the fix would
be.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list