Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66141

App crashes at closing the app when using MapBoxGL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P1: Critical P1: Critical
    • None
    • 5.10.0
    • None

      The crash occurs on Windows, Linux and MacOS and maybe also on Android an IOS. With the following example you should get the crash after closing the app.

      pro file (standard pro file after creating neu project):

      QT += quick
      CONFIG = c+11
      DEFINES += QT_DEPRECATED_WARNINGS
      deprecated before Qt 6.0.0

      SOURCES += main.cpp
      RESOURCES += qml.qrc

      1. Additional import path used to resolve QML modules in Qt Creator's code model
        QML_IMPORT_PATH =
      1. Additional import path used to resolve QML modules just for Qt Quick Designer
        QML_DESIGNER_IMPORT_PATH =
      1. Default rules for deployment.
        qnx: target.path = /tmp/$${TARGET}/bin
        else: unix:!android: target.path = /opt/$${TARGET}/bin
        !isEmpty(target.path): INSTALLS += target

      main.cpp:

      #include <QGuiApplication>
      #include <QQuickView> 

      int main(int argc, char *argv[])

      { QQuickView* Viewer = new QQuickView(); Viewer->setSource(QUrl("qrc:/main.qml"));  Viewer->setResizeMode(QQuickView::SizeRootObjectToView); Viewer->showFullScreen(); return app.exec(); }

      main.qml:

      import QtQuick 2.10
      import QtLocation 5.9
      Item
      {
      Plugin
      {
      id: mapPlugin
      name: "mapboxgl"
      parameters:
      [
      PluginParameter

      {name:"mapboxgl.access_token";value:PUT_HERE_YOUR_ACCESS_TOKEN}

      ]
      }

      Map

      { id: map anchors.fill: parent plugin: mapPlugin }

      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tmpsantos Thiago Marcos P. Santos
            yamo64 Olaf Reinhols
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes