isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.45k stars 2.31k forks source link

illegal instruction (core dumped) when install open3d #5435

Open marianatoror27 opened 2 years ago

marianatoror27 commented 2 years ago

Checklist

My Question

Ubuntu 18.04.6 (In Vbox) Python 3.9.7 When running "import open3d" shows the following message: "Illegal instruction (core dumped)" I already tried with open3d versions 0.15.2 and 0.14.1 I am using python from a conda environment

velovix commented 2 years ago

I believe this error happens when your processor doesn't support an instruction set (like SSE or AVX) that Open3D is compiled for. That could happen if your host processor is very old or if VirtualBox is somehow misconfigured. What processor does your host machine use?

It might be useful to someone who knows more than me if you posted the output of the lscpu command in your virtual machine. This will show the instruction sets available in your VM.

Similar issues:

marianatoror27 commented 2 years ago

Hi, thank you for answering, your help is really appreciated. My host OS is Windows 11 (just in case is important this information) My computer's CPU is Intel CORE i5 - 12450H I have a GPU Nvidia GEFORCE RTX 3050, but as I am running Ubuntu from a vbox, in the virtualbox the GPU is a virtual GPU Innotek The output of the command lscpu is: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 154 Model name: 12th Gen Intel(R) Core(TM) i5-12450H Stepping: 3 CPU MHz: 2496.008 BogoMIPS: 4992.01 Hypervisor vendor: KVM Virtualization type: full L1d cache: 48K L1i cache: 32K L2 cache: 1280K L3 cache: 12288K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni ssse3 cx16 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single ibrs_enhanced fsgsbase invpcid md_clear flush_l1d arch_capabilities

Suisse00 commented 2 years ago

While looking deeper on a Windows error (#4468) I find this ticket.

Since it has not been updated for awhile, I may step in. Like @velovix said, you need AVX (and AVX2 by what I found in my Windows binaries) and I don't see them in your Flags. However, I also know Hyper-V(?) may cause some CPU instruction sets not to be available in your VMs.

Google has the solution for your: https://stackoverflow.com/questions/65780506/how-to-enable-avx-avx2-in-virtualbox-6-1-16-with-ubuntu-20-04-64bit