infinigen icon indicating copy to clipboard operation
infinigen copied to clipboard

blender quit, no "/infinigen/worldgen/terrain/lib/cpu/soil_machine/SoilMachine.so: cannot open shared object file: No such file or directory"

Open yangcheng opened this issue 1 year ago • 9 comments

I followed readme to run

 $BLENDER -noaudio --background --python generate.py -- --seed 0 --task coarse -g desert simple --output_folder outputs/helloworld/coarse --debug
Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35)
[04:33:20.591] [root] [INFO] [core.py:343] | Converted args.seed='0' to scene_seed=0, parsed as hexadecimal
[04:33:20.618] [root] [INFO] [core.py:413] | infinigen version 1.0.0
[04:33:20.619] [root] [INFO] [core.py:414] | CUDA_VISIBLE_DEVICES=None
[04:33:20.619] [times] [INFO] [logging.py:35] | [MAIN TOTAL]
[04:33:20.624] [root] [INFO] [core.py:254] | Processing frames 1 through 1 inclusive
[04:33:20.632] [times] [INFO] [logging.py:35] | [Create terrain]
[04:33:20.632] [root] [INFO] [core.py:76] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/home/cheng/play/infinigen/worldgen/outputs/helloworld/coarse/assets')

then it failed with

OSError: /home/cheng/play/infinigen/worldgen/terrain/lib/cpu/soil_machine/SoilMachine.so: cannot open shared object file: No such file or directory
  In call to configurable 'run_erosion' (<function run_erosion at 0x7f228ca5eb00>)
  In call to configurable 'load_assets' (<function LandTiles.load_assets at 0x7f228865a8c0>)
  In call to configurable 'LandTiles' (<class 'terrain.elements.landtiles.LandTiles'>)
  In call to configurable 'scene' (<function scene at 0x7f23987cd360>)
  In call to configurable 'Terrain' (<class 'terrain.core.Terrain'>)
  In call to configurable 'execute_tasks' (<function execute_tasks at 0x7f2287e37250>)

Blender quit

I checked the directory there is no SoilMachine.so file.

also blender said , CUDA_VISIBLE_DEVICES=None , does it mean it's not use my GPU [ RTX-2080 ]? could this be related?

System Info: uname -a Linux x10 6.2.0-20-generic #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 07:48:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux nvidia-smi


Sun Jun 18 04:36:54 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:81:00.0  On |                  N/A |
|  0%   45C    P8    23W / 250W |     37MiB / 11264MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1682      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

Really appreciate any help

Thanks

yangcheng avatar Jun 18 '23 11:06 yangcheng

Same here. Just tried to run batch job and ended up with the same missing file. image

maciekpoplawski avatar Jun 18 '23 12:06 maciekpoplawski

OH! I've found a clue! image

maciekpoplawski avatar Jun 18 '23 12:06 maciekpoplawski

I have resolved it, click me

chienlungcheung avatar Jun 18 '23 12:06 chienlungcheung

Correct. I also resolved the issue.

maciekpoplawski avatar Jun 18 '23 12:06 maciekpoplawski

Hello all! Could one or more of you post the logs from running 'install.sh'? It seems compilation is not succeeding on your platform, and the logs would help us debug this

araistrick avatar Jun 18 '23 20:06 araistrick

Hello all! Could one or more of you post the logs from running 'install.sh'? It seems compilation is not succeeding on your platform, and the logs would help us debug this

Please check the attachment, I copied from console so may have some line break issues. install.log

yangcheng avatar Jun 19 '23 02:06 yangcheng

Your compiler cannot find glm.h, likely same issue as #17 and others above given the platform.

From your logs:

source/cpu/soil_machine/layermap.h:37:10: fatal error: glm/glm.hpp: No such file or directory
   37 | #include <glm/glm.hpp>
      |          ^~~~~~~~~~~~~

pvl-bot avatar Jun 20 '23 15:06 pvl-bot

I have the same problem. after a second check, here is what I found. the reason was my network CANNOT access git://. ( in .gitmodules file) so the solution is: change the git:// to https:// in .gitmodules file. then:

git submodules deinit --all -f bash install.sh

stallboy avatar Jun 21 '23 02:06 stallboy

I have this issue as well when running on Linux. For some reason the GLM library cannot be linked so I resolved it by editing the install_terrain.sh file to link the path to GLM. This is done by adding the following to the command to compile soil_machine files

-I/<YOUR_PATH>/infinigen/process_mesh/dependencies/glm) 

then run the following:

cd infinigen/worldgen/terrain/
USE_CUDA=0 bash install_terrain.sh

Hope it helps anyone else who is stuck.

aplatyps avatar Jun 27 '23 02:06 aplatyps

By installing with sudo apt install libglm-dev solved the linkage error.

PriNova avatar Jul 07 '23 20:07 PriNova

By installing with sudo apt install libglm-dev solved the linkage error.

cool! this solved the issue without code change

yangcheng avatar Jul 10 '23 08:07 yangcheng

By installing with sudo apt install libglm-dev solved the linkage error.

cool! this solved the issue without code change

Yes, but should be pointed out in the README of this porject.

PriNova avatar Jul 10 '23 08:07 PriNova