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

QML is crashing app when using OSM map plugin and no net available

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.9.0
    • Component/s: Location
    • Labels:
      None

      Description

      Hi

      I'm using QML to display map:

       

      Map { 
      id: naviMap 
      objectName: "naviMapObject"
      anchors.fill: parent
      plugin: Plugin { name: "osm"
      PluginParameter
      { name: "osm.useragent"; value: "My great Qt OSM application" }
      }
      }

       

      I have noticed that my app is crashing when I'm starting page with QQuickWidget and Map inside it when there is no internet connection. GDB says

       

      Thread 1 "autolektor-cfg-" received signal SIGSEGV, Segmentation fault.
      0x00007fffe09ecaa4 in ?? () from /home/franki/Qt/5.8/gcc_64/plugins/geoservices/libqtgeoservices_osm.so
      

      To replicate this problem I need to do following:
      I have two wifi routers, first one provides broadband connection to the internet, second one is connected through wifi to first one and broadcast second SSID, laptop is connected to second router, when I switch off first router and start my app it tries to connect to OSM, receives something not expected from switched off router and it crashes.
      I'm using 64Bit Linux and Qt 5.8.0
      backtrace from gdb says:

      #0 0x00007fffe09ecaa4 in ?? () from /home/franki/Qt/5.8/gcc_64/plugins/geoservices/libqtgeoservices_osm.so
      #1 0x00007ffff4e38746 in QMetaObject::activate(QObject*, int, int, void**) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #2 0x00007fffe09ef582 in ?? () from /home/franki/Qt/5.8/gcc_64/plugins/geoservices/libqtgeoservices_osm.so
      #3 0x00007ffff4e38746 in QMetaObject::activate(QObject*, int, int, void**) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #4 0x00007ffff4e38e1f in QObject::destroyed(QObject*) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #5 0x00007ffff4e3f955 in QObject::~QObject() () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #6 0x00007fffe09ed058 in ?? () from /home/franki/Qt/5.8/gcc_64/plugins/geoservices/libqtgeoservices_osm.so
      #7 0x00007fffe09ef97d in ?? () from /home/franki/Qt/5.8/gcc_64/plugins/geoservices/libqtgeoservices_osm.so
      #8 0x00007ffff4e383e1 in QMetaObject::activate(QObject*, int, int, void**) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #9 0x00007ffff557b7e7 in ?? () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Network.so.5
      #10 0x00007ffff5627ac9 in ?? () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Network.so.5
      #11 0x00007ffff4e39211 in QObject::event(QEvent*) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #12 0x00007ffff69a3dcc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Widgets.so.5
      #13 0x00007ffff69ab236 in QApplication::notify(QObject*, QEvent*) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Widgets.so.5
      #14 0x00007ffff4e0f458 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #15 0x00007ffff4e11a4b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #16 0x00007ffff4e5f8b3 in ?? () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #17 0x00007ffff3fed7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #18 0x00007ffff3feda60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #19 0x00007ffff3fedb0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #20 0x00007ffff4e5fcbf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #21 0x00007ffff4e0d9ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #22 0x00007ffff4e159f4 in QCoreApplication::exec() () from /home/franki/Qt/5.8/gcc_64/lib/libQt5Core.so.5
      #23 0x0000555555573682 in main (argc=1, argv=0x7fffffffe068) at main.cpp:37
      

      Best Regards

      Marek

       

       

        Attachments

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

          Activity

            People

            • Assignee:
              paangele Paolo Angelelli
              Reporter:
              frankipl Marek Floriańczyk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes