-
Notifications
You must be signed in to change notification settings - Fork 261
Segmentation fault when calling bin/PreprocessMesh
#88
Comments
Hi, I met this problem as well. Have you solved it? |
Here's what I did to build the program and all dependencies. You need to be root for some of these commands to work. Anyway, I suggest you not spend too much time trying to make this code work. Here's the full list of commands (disclaimer: don't just copy-paste the whole thing, make sure that every command executes successfully): apt install git cmake build-essential libglfw3-dev libgles2-mesa-dev libgtest-dev libeigen3-dev
# Install CLI11
git clone https://github.com/CLIUtils/CLI11.git
cd CLI11
mkdir build
cd build
git submodule update --init
cmake ..
cmake --build .
sudo cmake --install .
cd ../..
# Install Pangolin
git clone --recursive https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
./scripts/install_prerequisites.sh all
git checkout v0.6
mkdir build && cd build
cmake ..
cmake --build .
sudo cmake --install .
cd ../..
# Install nanoflann
git clone https://github.com/jlblancoc/nanoflann.git
cd nanoflann
mkdir build && cd build
cmake ..
make
sudo make install
mkdir /usr/local/include/nanoflann
cp /usr/local/include/nanoflann.hpp /usr/local/include/nanoflann
cd ../..
# DeepSDF
git clone https://github.com/facebookresearch/DeepSDF.git
cd DeepSDF
###### Comment out line 97 of src/ShaderProgram.cpp
sed -i "97 s/^/\/\//" src/ShaderProgram.cpp
git submodule update --init
mkdir build && cd build
cmake .. -DCMAKE_CXX_STANDARD=17
make
# Run
export MESA_GL_VERSION_OVERRIDE=3.3
export PANGOLIN_WINDOW_URI=headless:// |
Thanks for your response! Just to confirm, so do you mean that both methods donot work in a remote session? |
It's been a while now, but as far as I remember neither works remotely. |
Thank you very much for your help! |
Just a small note: I feel like |
BTW, I can use this code as well as |
I couldn't manage to have a reasonable training with mesh-to-sdf generated sdf. I have some questions @danielegrattarola @philippwulff
|
@danielegrattarola Thanks! I spent nearly 24h to find the correct way to preprocess mesh and finally stuck in a strange error: some models can be processed correctly but others may trigger a segmentation fault in line 413 of PreprocessMesh.cpp |
Hi,
after following the build instructions of #81 (comment) I get a segmentation fault when I try to run
Is this a known issue? Are there any current workarounds?
Thanks
The text was updated successfully, but these errors were encountered: