-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.10.0
-
None
Solution for QTBUG-134438 introduced one crash-bug. If window is clicked while MapItemView is putting items on the map, QDeclarativeGeoMapQuickItem::contains() is called before QDeclarativeGeoMapQuickItem::updatePolish(), thus matrix_ member is still not initialized.
Can be reproduced with the following simple QML:
import QtQuick import QtLocation import QtPositioning Window { width: 640 height: 480 visible: true title: qsTr("Map crash test") Map { id: map anchors.fill: parent plugin: Plugin { preferred: [ "osm"] } center: QtPositioning.coordinate(59.438045, 24.745105) zoomLevel: 14 MapItemView{ id: allNetworksMapView model: ListModel{ id: mapItemsModel Component.onCompleted: { for(var i = 0; i < 10000; i++){ insert(i, { "coordinate": QtPositioning.coordinate(59.438045 + (Math.random() - 0.5) * 0.01, 24.745105 + (Math.random() - 0.5) * 0.025) }) } } } delegate: MapQuickItem { id: topDelegate coordinate: model.coordinate zoomLevel: 14 // Remove this, and crash is gone. sourceItem: Rectangle{ color: "red" width: 3 height: 3 } } } Text{ id: infoText anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter font.pixelSize: 18 text: "Click on the map while items are popping up." } } }
- resulted from
-
QTBUG-134438 MapQuickItem HoverHandler or MouseArea incorrect if zoomLevel set
-
- Closed
-