Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.5.0 Beta
-
None
-
- Mac OS Yosemite 10.10.3 (14D136)
- Qt 5.5.0 Beta
- same with current 5.5 branch from git
- same with qtbase and qtlocation updated to latest 5.5 branch
Description
drag inside QML map element and release mouse button while still moving
--> the Program crashes.
Crash:
nullpointer access as this->d is null:
bool QGeoCoordinate::operator==(const QGeoCoordinate &other) const { bool latEqual = (qIsNaN(d->lat) && qIsNaN(other.d->lat)) || qFuzzyCompare(d->lat, other.d->lat);
—
Minimal QML to reprocude problem:
import QtQuick 2.4 import QtQuick.Controls 1.3 import QtLocation 5.3 ApplicationWindow { visible: true Map { anchors.fill: parent plugin: Plugin { name: "osm" } } }
—
My attempt to understand the issue:
I tried to go back to where the d originated and got to this function with progress = 0:
void QVariantAnimationPrivate::setCurrentValueForProgress(const qreal progress)
where we have:
QVariant ret = q->interpolated(currentInterval.start.second, currentInterval.end.second, localProgress);
and while the input are two coordinates QtCreator shows me that ret is invalid.
(startProgress 0, endProgress 1, localProgress 0)
However I'm absolutely unfamiliar with the code and I haven't used QtCreator in months. As far as I know this might even be intentional behavior or just me using QtCreator wrongly for debugging.
Attachments
Issue Links
- duplicates
-
QTBUG-46147 QML Map element causes segfault after movement
-
- Closed
-