Since r30305, we are getting this error after pip_install(“open3d==0.10.0”). This is on ubuntu 20.04.
I believe Bad allocation is an out of memory error, so I assume real error is something else. Any suggestions on how to debug this will be great
import open3d
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/docker/MyData/Slicer-4.13.0-2021-10-14-linux-amd64/lib/Python/lib/python3.6/site-packages/open3d/__init__.py", line 47, in <module>
from open3d.open3d_pybind import camera
ImportError: std::bad_alloc
I’d suggest testing to see if the same thing happens in a non-slicer python. Also if you can build a open3d from source in debug mode you could single-step through and see what operation leads to the exception. Or on linux you can use strace to see what system calls happen before the exception.
And does the same error happen if you pip install in Slicer a newer release of Open3D? A new version will force a new download assuming you haven’t done it before and not use any cached wheel.
Sorry, I don’t have the r30305 installed anymore (too many transient versions of slicer confuses my workflows. I download, try and remove it). r30222 (working one) is from 9/18.
slicer.app.repositoryRevision should get the same type of information that I want. Just wanting to know the commit hashes so I can compare things that happened between working and not working.
r30297 works as well.
And yes I believe @agporto tested all versions up to r30305, but wasn’t able to find a specific change that might explain the crash.
I am building a py wheel for open3d, and will try to install that. But I am not sure how to do that with the slicer’s pip_install. Can I point out to a file?