Error when running Minimal Map Example
Solved
QML and Qt Quick
-
I am using
Qt Creator 4.12.4 Based on Qt 5.14.2 (MSVC 2017, 32 bit)
.
Compiler:Qt 5.15.0 MinGW 64-bit
(also triedQt 5.15.0 MSVC 2019 64-bit
)When I build and run the Qt Minimal Map (QML) Example, I get this:
I also get the following in 'Application Output'. I've read that there may have been a change by OSM but I have not found a solution. Can anyone explain what is happening and how to fix it?
QGeoTileProviderOsm: Tileserver disabled at QUrl("http://maps-redirect.qt.io/osm/5.8/satellite") QGeoTileFetcherOsm: all providers resolved qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed QGeoTileRequestManager: Failed to fetch tile (8680,4766,14) 5 times, giving up. Last error message was: 'TLS initialization failed' QGeoTileRequestManager: Failed to fetch tile (8682,4765,14) 5 times, giving up. Last error message was: 'TLS initialization failed' QGeoTileRequestManager: Failed to fetch tile (8681,4767,14) 5 times, giving up. Last error message was: 'TLS initialization failed' qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed QGeoTileRequestManager: Failed to fetch tile (8681,4766,14) 5 times, giving up. Last error message was: 'TLS initialization failed' QGeoTileRequestManager: Failed to fetch tile (8680,4765,14) 5 times, giving up. Last error message was: 'TLS initialization failed' qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed QGeoTileRequestManager: Failed to fetch tile (8682,4766,14) 5 times, giving up. Last error message was: 'TLS initialization failed' QGeoTileRequestManager: Failed to fetch tile (8680,4767,14) 5 times, giving up. Last error message was: 'TLS initialization failed' QGeoTileRequestManager: Failed to fetch tile (8682,4767,14) 5 times, giving up. Last error message was: 'TLS initialization failed' QGeoTileRequestManager: Failed to fetch tile (8681,4765,14) 5 times, giving up. Last error message was: 'TLS initialization failed'
-
Please note I have found a solution here.
The following code needs to be added to the Plugin QML Type:
PluginParameter { name: "osm.mapping.providersrepository.disabled" value: "true" } PluginParameter { name: "osm.mapping.providersrepository.address" value: "http://maps-redirect.qt.io/osm/5.6/" }