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

Crash on QGIS 3.36 in ubuntu 20.04 #43

Open
YanCheng-go opened this issue Apr 29, 2024 · 6 comments
Open

Crash on QGIS 3.36 in ubuntu 20.04 #43

YanCheng-go opened this issue Apr 29, 2024 · 6 comments

Comments

@YanCheng-go
Copy link

I was trying the plugin on QGIS 3.36 in ubuntu 20.04. The image encoder worked, but the software crashed whenever I clicked the segmentation tool.

@cmosig
Copy link

cmosig commented Apr 29, 2024

Same issue here:

  • qgis version: 3.34
  • Ubuntu 22.04.4
  • GeoSAM: on the latest commit of this Github 847db2a

Steps to reproduce: Open QGIS, press Segmentation Tool, select generated Encodings, Press "Load" -> Crash.

QGIS Log:

QGIS died on signal 11Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 256
[1]    71179 IOT instruction (core dumped)  qgis

@cmosig
Copy link

cmosig commented Apr 29, 2024

I launched pdb and checked at which line of code it would crash:

self.index = Index(interleaved=False, properties=Property(dimension=3))

This does not make much sense to me honestly because this simply creates an index. Running this line of code outside of qgis does not create a crash or exception.

@Fanchengyan
Copy link
Collaborator

Hi @cmosig ,

Thank you for the troubleshooting. This should be a bug of QGIS. I have reproduced this bug in the Python Console in QGIS 3.34 and 3.36. Running the following code directly will cause QGIS to crash.

from rtree.index import Index, Property
index = Index(interleaved=False, properties=Property(dimension=3))

I will submit an issue to QGIS. Since GeoSAM and torchgeo heavily relay on rtree, it is recommended to find a way to install a version prior to 3.34 before QGIS fixes this bug.

@Fanchengyan
Copy link
Collaborator

Hi @YanCheng-go and @cmosig ,

Here is the solution: https://geo-sam.readthedocs.io/en/latest/blog/2024/05-02_crash_on_QGIS.html

@cmosig
Copy link

cmosig commented May 3, 2024

Thanks, this worked instantly!

@YanCheng-go
Copy link
Author

YanCheng-go commented May 3, 2024

@Fanchengyan Thanks! It also worked for me on Ubuntu 20.02 and QGIS3.36 installed through flatpak. Just need to downgrade rtree with the following line:

flatpak run --devel --command=pip3 org.qgis.qgis install rtree==0.9.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants