-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
initializing rtree.index.Index directly causes QGIS 3.34 and 3.36 to crash and exit. #57320
Comments
It's safer to use the inbuilt PyQgis spatial index classes (eg QgsSpatialIndex) |
Hi @nyalldawson , Thank you for your prompt response. Do the officials have any plans to fix this issue in future versions of |
Did you install rtree via pip? Or system package? You've likely got a library mismatch which is clashing with one of the system libraries qgis is using. |
Hi @nyalldawson , TorchGeo depends on |
Not from the qgis side, no. By installing rtree via pip you're installing and using a different version of libspatialindex vs the system installed version of the library coming from the Ubuntu repository (which qgis uses). This library conflict results in the crash. The solution would be to ensure you never install rtree via pip, and instead install it only from the Ubuntu repositories (python3-rtree). Given that this isn't a qgis bug, I'm closing the ticket. But feel free to reply if you have further questions |
Thanks, this solves the problem. |
What is the bug or the crash?
Initializing
rtree.index.Index
directly causes QGIS 3.34 and 3.36 to crash and exit.Steps to reproduce the issue
Then, QGIS will crash and exit directly.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
Geo-SAM
1.0
plugin_reloader
0.9.4
MetaSearch
0.3.6
db_manager
0.1.20
grassprovider
2.12.99
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: