Important: Please read the Qt Code of Conduct -

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

  • 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/

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

    I would like to prevent my app from this to happen, maybe some connection check first ?

    Best Regards

  • Hi! Please file a bug report at

  • Done.

    Best Regards

Log in to reply