Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I ran the getting started nature code and got an error about waterbody.so library not loaded libc++ Crashed: 09/19 12:07AM outputs/hello_world/0/logs/coarse.err reason='OSError: dlopen(/Users/andrewtriboletti/infinigen/infinigen/terrain/lib/cpu/elements/waterbody.so, 0x0006): Library not loaded: @rpath/libc++.1.dylib' node=None fatal=True #328

Open
andytriboletti opened this issue Sep 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@andytriboletti
Copy link

Describe the bug

A clear and concise description of what the bug is.
I ran the example code and got an error

Steps to Reproduce

What version of the code were you using?

Tell us the commit & commit hash from git log

What command did you run?

(base) andrewtriboletti@Andrews-MacBook-Pro infinigen % python -m infinigen.datagen.manage_jobs --output_folder outputs/hello_world --num_scenes 1 --specific_seed 0
--configs desert.gin simple.gin --pipeline_configs local_16GB.gin monocular.gin blender_gt.gin --pipeline_overrides LocalScheduleHandler.use_gpu=False

What are your FULL output logs?

Provide the FULL output logs from your command as a txt file.

Crashed: 09/19 12:07AM outputs/hello_world/0/logs/coarse.err reason='OSError: dlopen(/Users/andrewtriboletti/infinigen/infinigen/terrain/lib/cpu/elements/waterbody.so, 0x0006): Library not loaded: @rpath/libc++.1.dylib' node=None fatal=True

If this is your first time running Infinigen, what are the full install logs?**

Run pip install -v -e . > logs.txt 2>&1 and send logs.txt as an attachment.

Platform

  • OS & OS Version:
  • GPU (?) :
  • GPU Driver Version (?) :
  • RAM (GB):

Additional context

Add any other context about the problem here.

@andytriboletti andytriboletti added the bug Something isn't working label Sep 19, 2024
@araistrick
Copy link
Contributor

Could you provide your full install logs? pip install -v -e . > logs.txt 2>&1

Alternatively, just run bash scripts/install/compile_terrain.sh | tee logs.txt and provide the logs.txt

@andytriboletti
Copy link
Author

I ran:
bash scripts/install/compile_terrain.sh | tee logs.txt

output:
(base) andrewtriboletti@Andrews-MacBook-Pro infinigen % bash scripts/install/compile_terrain.sh | tee logs.txt
skipping cuda
source/cpu/utils/FastNoiseLite.cpp:8:17: warning: using directive refers to implicitly-defined namespace 'std'
8 | using namespace std;
| ^
1 warning generated.
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/utils/FastNoiseLite.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/voronoi_rocks.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/upsidedown_mountains.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/ground.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/warped_rocks.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/mountains.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/landtiles.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/atmosphere.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/elements/waterbody.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/chunkyrock.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/cobble_stone.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/cracked_ground.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/dirt.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/ice.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/mountain.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/mud.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/sand.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/sandstone.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/snow.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/soil.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/surfaces/stone.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/meshing/cube_spherical_mesher.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/meshing/frontview_spherical_mesher.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/meshing/uniform_mesher.so
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
compiled lib/cpu/meshing/utils.so
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/layermap.h:211:29: note: in instantiation of function template specialization 'secpool::get<double &, unsigned long &>' requested here
211 | add(ivec2(i, j), pool.get(h, layers[l].type));
| ^
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/particle/particle.h:101:32: note: in instantiation of function template specialization 'secpool::get<float &, unsigned long &>' requested here
101 | sec addition = map.pool.get(transfer, param.cascades);
| ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/particle/water.h:148:32: note: in instantiation of function template specialization 'secpool::get<double, unsigned long &>' requested here
148 | sec addition = map.pool.get(-soils[contains].equratecdiff
volume, contains);
| ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/particle/water.h:179:25: note: in instantiation of function template specialization 'secpool::get<double, int &>' requested here
179 | addition = map.pool.get(volume*volumeFactor, soilmap["Air"]);
| ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
source/cpu/soil_machine/particle/water.h:302:32: note: in instantiation of function template specialization 'secpool::get<double &, int &>' requested here
302 | map.add(bpos, map.pool.get(transfer, soilmap["Air"]));
| ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
112 | try{ new (E)sec(forward(args)...); }
| ^
| std::
10 warnings generated.
compiled lib/cpu/soil_machine/SoilMachine.so
/Users/andrewtriboletti/infinigen
In file included from ocmesher/source/core.cpp:6:
ocmesher/source/core.h:19:9: warning: 'INT_MAX' macro redefined [-Wmacro-redefined]
19 | #define INT_MAX 2147483647
| ^
/usr/local/Cellar/llvm/18.1.8/lib/clang/18/include/limits.h:46:9: note: previous definition is here
46 | #define INT_MAX INT_MAX
| ^
In file included from ocmesher/source/core.cpp:6:
ocmesher/source/core.h:90:37: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses]
90 | if (v[vid].coords[p]&1 != 0) {
| ^~~~~~~
ocmesher/source/core.h:90:37: note: place parentheses around the '!=' expression to silence this warning
90 | if (v[vid].coords[p]&1 != 0) {
| ^
| ( )
ocmesher/source/core.h:90:37: note: place parentheses around the & expression to evaluate it first
90 | if (v[vid].coords[p]&1 != 0) {
| ^
| ( )
ocmesher/source/core.h:209:27: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
209 | if (coords[i] & ((1<<(L-current.c.L-1))-1) == 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocmesher/source/core.h:209:27: note: place parentheses around the '==' expression to silence this warning
209 | if (coords[i] & ((1<<(L-current.c.L-1))-1) == 0) {
| ^
| ( )
ocmesher/source/core.h:209:27: note: place parentheses around the & expression to evaluate it first
209 | if (coords[i] & ((1<<(L-current.c.L-1))-1) == 0) {
| ^
| ( )
ocmesher/source/core.h:242:23: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
242 | if (coords[i] & ((1<<(L-current.c.L-gl))-1) == 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocmesher/source/core.h:242:23: note: place parentheses around the '==' expression to silence this warning
242 | if (coords[i] & ((1<<(L-current.c.L-gl))-1) == 0) {
| ^
| ( )
ocmesher/source/core.h:242:23: note: place parentheses around the & expression to evaluate it first
242 | if (coords[i] & ((1<<(L-current.c.L-gl))-1) == 0) {
| ^
| ( )
4 warnings generated.
ld: warning: reexported library with install name '/usr/local/opt/llvm/lib/libunwind.1.dylib' found at '/usr/local/Cellar/llvm/18.1.8/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
/Users/andrewtriboletti/infinigen

the contents of logs.txt:
skipping cuda
compiled lib/cpu/utils/FastNoiseLite.so
compiled lib/cpu/elements/voronoi_rocks.so
compiled lib/cpu/elements/upsidedown_mountains.so
compiled lib/cpu/elements/ground.so
compiled lib/cpu/elements/warped_rocks.so
compiled lib/cpu/elements/mountains.so
compiled lib/cpu/elements/landtiles.so
compiled lib/cpu/elements/atmosphere.so
compiled lib/cpu/elements/waterbody.so
compiled lib/cpu/surfaces/chunkyrock.so
compiled lib/cpu/surfaces/cobble_stone.so
compiled lib/cpu/surfaces/cracked_ground.so
compiled lib/cpu/surfaces/dirt.so
compiled lib/cpu/surfaces/ice.so
compiled lib/cpu/surfaces/mountain.so
compiled lib/cpu/surfaces/mud.so
compiled lib/cpu/surfaces/sand.so
compiled lib/cpu/surfaces/sandstone.so
compiled lib/cpu/surfaces/snow.so
compiled lib/cpu/surfaces/soil.so
compiled lib/cpu/surfaces/stone.so
compiled lib/cpu/meshing/cube_spherical_mesher.so
compiled lib/cpu/meshing/frontview_spherical_mesher.so
compiled lib/cpu/meshing/uniform_mesher.so
compiled lib/cpu/meshing/utils.so
compiled lib/cpu/soil_machine/SoilMachine.so
/Users/andrewtriboletti/infinigen
/Users/andrewtriboletti/infinigen

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants