CDInstitute / Building-Dataset-Generator

Procedural 3D data generation pipeline for architecture
https://cdinstitute.github.io/Building-Dataset-Generator/
72 stars 14 forks source link

Run in ubuntu 20.04 and get nothing. #2

Open Jiaqi-Chen-00 opened 5 months ago

Jiaqi-Chen-00 commented 5 months ago

Environment:

Python 3.7.16
Blender 2.92
GCC 11.2.0
Ubuntu 20.04

I run in linux server, with no sodu. The code always wanna make a dir in /run/

(building_dataset_generator) xxx@xxx:~/projects/xxx/building_dataset_generator/Building-Dataset-Generator$ blender -b setup.blend --python dataset.py
Blender 2.92.0 (hash 02948a2cab44 built 2021-02-25 09:31:37)
Failed to create secure directory (/run/user/xxx/pulse): No such file or directory

Finally, I run this code to avoid creating new files out of my home dir. So hard, bro

export TMPDIR=/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/tmp
export XDG_RUNTIME_DIR=/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/tmp
mkdir /sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/tmp/gvfs/
SDL_AUDIODRIVER=dummy blender -b setup.blend --python dataset.py

Then, it keeps reporting Segmentation fault and generate nothing.

(building_dataset_generator) xxx@viscam3:~/projects/yyy/building_dataset_generator/Building-Dataset-Generator$ SDL_AUDIODRIVER=dummy blender -b setup.blend --python dataset.py
Blender 2.92.0 (hash 02948a2cab44 built 2021-02-25 09:31:37)
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
Read blend: /sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/setup.blend
Failed to load Diffuse texture of Brick
ValueError("'//Textures\\\\Brick\\\\Diffuse.png' is not in list")
Failed to load Normal texture of Brick
ValueError("'//Textures\\\\Brick\\\\Normal.png' is not in list")
Failed to load Displacement texture of Brick
ValueError("'//Textures\\\\Brick\\\\Displacement.png' is not in list")
Writing: /sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/tmp/setup.crash.txt

Segmentation fault
Jiaqi-Chen-00 commented 5 months ago

error log in crash.txt

Writing: /sailhome/xxx/projects/ig_llm/building_dataset_generator/Building-Dataset-Generator/tmp/setup.crash.txt
Segmentation fault
(building_dataset_generator) xxx@viscam3:~/projects/yyy/building_dataset_generator/Building-Dataset-Generator$ cat  /sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/tmp/setup.crash.txt
# Blender 2.92.0, Commit date: 2021-02-24 16:25, Hash 02948a2cab44

# backtrace
blender(BLI_system_backtrace+0x20) [0x865aed0]
blender() [0xeb124a]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f52bd096090]
blender(GPU_viewport+0x19) [0x7249189]
blender(wmViewport+0x29) [0x125f079]
blender(view3d_region_operator_needs_opengl+0x34) [0x1c28f24]
blender() [0x198f8c8]
blender() [0x1253478]
blender() [0x123d368]
blender(WM_operator_call_py+0x5c) [0x123df5c]
blender() [0x178c6d3]
blender(_PyMethodDef_RawFastCallKeywords+0x2c9) [0x72ec179]
blender(_PyCFunction_FastCallKeywords+0x28) [0x72ec238]
blender() [0xea5610]
blender(_PyEval_EvalFrameDefault+0x4344) [0xea9aa4]
blender(_PyEval_EvalCodeWithName+0x92d) [0x738d0dd]
blender(_PyFunction_FastCallDict+0x12f) [0x72eba4f]
blender(_PyObject_Call_Prepend+0xcd) [0x72ecccd]
blender() [0x73413f6]
blender(_PyObject_FastCallKeywords+0xd7) [0x72ec327]
blender() [0xea5383]
blender(_PyEval_EvalFrameDefault+0x4b54) [0xeaa2b4]
blender(_PyEval_EvalCodeWithName+0x92d) [0x738d0dd]
blender(_PyFunction_FastCallKeywords+0x89) [0x72ebc79]
blender() [0xea53d5]
blender(_PyEval_EvalFrameDefault+0x1cb1) [0xea7411]
blender() [0xea413b]
blender() [0xea53d5]
blender(_PyEval_EvalFrameDefault+0x1cb1) [0xea7411]
blender(_PyEval_EvalCodeWithName+0x92d) [0x738d0dd]
blender(_PyFunction_FastCallKeywords+0x89) [0x72ebc79]
blender() [0xea53d5]
blender(_PyEval_EvalFrameDefault+0x4b54) [0xeaa2b4]
blender(_PyEval_EvalCodeWithName+0x92d) [0x738d0dd]
blender(_PyFunction_FastCallDict+0x12f) [0x72eba4f]
blender(_PyObject_Call_Prepend+0xcd) [0x72ecccd]
blender() [0x7341a36]
blender() [0x7339835]
blender(_PyObject_FastCallKeywords+0xd7) [0x72ec327]
blender() [0xea5383]
blender(_PyEval_EvalFrameDefault+0x4b54) [0xeaa2b4]
blender() [0xea413b]
blender() [0xea53d5]
blender(_PyEval_EvalFrameDefault+0x1cb1) [0xea7411]
blender() [0xea413b]
blender() [0xea53d5]
blender(_PyEval_EvalFrameDefault+0x1cb1) [0xea7411]
blender(_PyEval_EvalCodeWithName+0x92d) [0x738d0dd]
blender(PyEval_EvalCodeEx+0x3e) [0x738d35e]
blender(PyEval_EvalCode+0x1b) [0x738d38b]
blender(PyRun_FileExFlags+0xb1) [0x73bef81]
blender() [0x1779667]
blender() [0xeaf49a]
blender(BLI_args_parse+0xc7) [0x85b92d7]
blender(main+0x2d5) [0xde8ae5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f52bd077083]
blender() [0xeadbe3]

# Python backtrace
  File "/viscam/projects/inv_engine/xxx/yyy/building_dataset_generator/blender-2.92.0-linux64/2.92/scripts/modules/bpy/ops.py", line 130 in __call__
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/module.py", line 284 in _cut
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/module.py", line 242 in _create
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/module.py", line 62 in __init__
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/module.py", line 211 in __init__
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/volume.py", line 133 in add_modules
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/dataset.py", line 62 in populate
  File "/sailhome/xxx/projects/yyy/building_dataset_generator/Building-Dataset-Generator/dataset.py", line 102 in <module>
(building_dataset_generator) xxx@viscam3:~/projects/yyy/building_dataset_generator/Building-Dataset-Generator$