[Focal] Qt plugin crashes the app if the location is denied
Step to reproduce:
- Reset trust store:
rm ~/.local/share/LomiriLocationService/trust.db; systemctl --user restart lomiri-location-service-trust-stored.service
- Open clock app. Trust prompt appears. Select "Don't Allow".
Expected result: the application copes with it.
Actual result: the application crashes with the following backtrace:
#0 core::GeoPositionInfoSource::stopUpdates (this=0x55921feee0)
at /usr/include/c++/9/bits/shared_ptr_base.h:1020
#1 0x0000007f937aa02c in QDeclarativePositionSource::stop (this=0x5591f18b40)
at qdeclarativepositionsource.cpp:625
#2 0x0000007f937ad398 in QDeclarativePositionSource::qt_static_metacall (
_o=_o@entry=0x5591f18b40, _c=_c@entry=QMetaObject::InvokeMetaMethod,
_id=_id@entry=12, _a=_a@entry=0x7fe1c60c70)
at .moc/moc_qdeclarativepositionsource_p.cpp:229
#3 0x0000007f937ad94c in QDeclarativePositionSource::qt_metacall (
this=0x5591f18b40, _c=QMetaObject::InvokeMetaMethod, _id=12,
_a=0x7fe1c60c70) at .moc/moc_qdeclarativepositionsource_p.cpp:403
#4 0x0000007fa203f8e0 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /lib/aarch64-linux-gnu/libQt5Qml.so.5
The stacktrace points into this package's plugin, thus filing issue here.