Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Server] Use QgsBlockingNetworkRequest to download URL
1. Deduplicate code 2. We have seen crashes where we can observe the following pattern at the top of the stack trace. This is always happening nested inside another event loop somewhere, where the lower part of the stack, which is omitted here `[...]` can be any other `processEvents()` call or local `QEventLoop`, which is likely caused by interaction of the local event loop for downloading here with other event loops, signals and timers (only approximal understanding on the exact reasons from my side). ``` _ZNK14QMessageLogger5fatalEPKcz: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 _ZN28QgsServerParameterDefinition10raiseErrorERK7QString: /usr/lib/libqgis_server.so.3.22.14 _ZN28QgsServerParameterDefinition10raiseErrorERK7QString: /usr/lib/libqgis_server.so.3.22.14 _ZN7QObject5eventEP6QEvent: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 [symbol missing]: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 [symbol missing]: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 [symbol missing]: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 _ZN9QMetaType4typeERK10QByteArray: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 [symbol missing]: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 _ZN9QMetaType8typeInfoEi: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 _ZN14QgsApplication6notifyEP7QObjectP6QEvent: /usr/lib/libqgis_core.so.3.22.14 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 _ZN27QEventDispatcherGlibPrivate31runTimersOnceWithNormalPriorityEv: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 [...] ```
- Loading branch information