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

MapPolygon with empty path segmentation fault when using the mapboxgl plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.2, 5.10.0 Beta 1
    • Fix Version/s: 5.9
    • Labels:
      None
    • Environment:
      KDE Neon
    • Commits:
      c0a069904d6dd1495084e4c69dd639dad14fdedd

      Description

      The following qml code will crash the application during init, when using the mapboxgl plugin

      The reason is that the MapPolygon path is empty. 

       

      import QtQuick 2.8
      import QtQuick.Window 2.2
      import QtPositioning 5.8
      import QtLocation 5.9
      
      Window {
          visible: true
          width: 640
          height: 480
      
          Map {
              anchors.fill: parent
              plugin: Plugin {
                  name: "mapboxgl"
              }
              center: QtPositioning.coordinate(60,10);
      
              MapPolygon {
      
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            brunoabinader Bruno de Oliveira Abinader
            Reporter:
            pyrrhula Ola Røer Thorsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes