Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a WMS/WMTS layer causes infinite loop #2

Open
wonder-sk opened this issue Sep 26, 2023 · 1 comment
Open

Loading a WMS/WMTS layer causes infinite loop #2

wonder-sk opened this issue Sep 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@wonder-sk
Copy link
Member

If the QGIS project uses a WMS / WMTS layer, the project loading will get stuck, with this warning being emitted all the time:

QEventLoop::WaitForMoreEvents is not supported on the main thread without asyncify

This is likely due to the fact that the WMS provider is doing a synchronous blocking GetCapabilities call in the constructor.

@wonder-sk wonder-sk added the bug Something isn't working label Sep 26, 2023
@wonder-sk
Copy link
Member Author

Given that we're using QGIS 3.32 in the builds, we could try to add QgsProviderMetadata::ParallelCreateProvider to WMS metadata (QgsWmsProviderMetadata::providerCapabilities()) to get the provider loaded in a worker thread, rather than creating it in the main thread. (But we'll probably still be affected by networking issues as in #3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant