infinigen icon indicating copy to clipboard operation
infinigen copied to clipboard

Cannot generate scene using command in Hello World

Open AnneBai10 opened this issue 9 months ago • 12 comments

Describe the bug

When I run the command "python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse", after generating one asset, it just stopped generating anything.

Steps to Reproduce

What version of the code were you using?

Tell us the commit & commit hash from git log 830891c3ac988f6be02ded26388b1572a5463de3

What command did you run?

python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse

What are your FULL output logs?

Device with name Apple M1 supports metal minimum requirements [20:38:04.951] [root] [WARNING] | SMB_AUTH envvar is not set, smb_client upload will not work. Ignore this message if not using upload [20:38:04.964] [infinigen.core.init] [INFO] | Converted seed='0' to scene_seed=0, parsed as hexadecimal [20:38:04.975] [infinigen.core.execute_tasks] [INFO] | infinigen version 1.2.6 [20:38:04.975] [infinigen.core.execute_tasks] [INFO] | CUDA_VISIBLE_DEVICES=None [20:38:04.975] [infinigen.times] [INFO] | [MAIN TOTAL] [20:38:04.975] [infinigen.core.execute_tasks] [INFO] | Processing frames 1 through 1 inclusive [20:38:04.982] [infinigen.times] [INFO] | [terrain] [20:38:04.982] [infinigen.times] [INFO] | [Create terrain] [20:38:04.982] [infinigen.terrain.core] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/Users/xxxx/Infinigen/infinigen/outputs/hello_world/coarse/assets') [20:38:34.564] [infinigen.terrain.core] [INFO] | Terrain elements: ['ground', 'landtiles', 'warped_rocks', 'voronoi_rocks', 'atmosphere'] [20:38:34.564] [infinigen.times] [INFO] | [Create terrain] finished in 0:00:29.582581 [20:38:34.566] [infinigen.times] [INFO] | [meshing OpaqueTerrain]

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

Run pip install -vv -e . > logs.txt 2>&1 and send logs.txt as an attachment. i already use infinigen to generate individual assets, and it worked well

Platform

  • OS & OS Version: MacOS Sonoma 14.4.1
  • GPU (?) : M1
  • GPU Driver Version (?) :
  • RAM (GB): 16

Additional context

Add any other context about the problem here.

AnneBai10 avatar May 14 '24 12:05 AnneBai10

logs.txt logs.txt

AnneBai10 avatar May 15 '24 04:05 AnneBai10

I add some log in generate_nature.py,and i found this sentence "terrain_mesh = terrain.coarse_terrain()" does not generate any results.And I also check the activity monitor on Mac, it seems the code is not running because only 10% CPU is used.Does anyone meet the same problem as I do? I am looking forward to receive a reply, thanks.

AnneBai10 avatar May 15 '24 09:05 AnneBai10

We also tried hello world on M2 and M3, and same problem happened.It seems that there is an issue with the kernel call. kernel

AnneBai10 avatar May 16 '24 02:05 AnneBai10

Having the same issue right now @araistrick

Are there any other commands to fix this? I am on an M1 right now.

eric-prog avatar Jun 05 '24 00:06 eric-prog

Hi, I tested with my M1 MacOS Sonoma 14.5 but found no issues. I noticed there are warnings in your log ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly, which I don't have. Can you try to reinstall llvm or related packages?

mazeyu avatar Jun 06 '24 04:06 mazeyu

Here are the installation steps I took: https://github.com/RaccoonResearch/infinigen

@mazeyu It is freezing here:

(infinigen) mycomputer@computer-MacBook-Air-2 infinigen % python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse Device with name Apple M1 supports metal minimum requirements [11:59:23.852] [root] [WARNING] | SMB_AUTH envvar is not set, smb_client upload will not work. Ignore this message if not using upload [11:59:23.856] [infinigen.core.init] [INFO] | Converted seed='0' to scene_seed=0, parsed as hexadecimal [11:59:23.882] [infinigen.core.execute_tasks] [INFO] | infinigen version 1.3.4 [11:59:23.882] [infinigen.core.execute_tasks] [INFO] | CUDA_VISIBLE_DEVICES=None [11:59:23.884] [infinigen.times] [INFO] | [MAIN TOTAL] [11:59:23.897] [infinigen.core.execute_tasks] [INFO] | Processing frames 1 through 1 inclusive [11:59:23.927] [infinigen.core.init] [INFO] | Available devices have types=['METAL', 'CPU'] [11:59:23.927] [infinigen.core.init] [INFO] | Cycles will use use_device_type='METAL', len(use_devices)=1 [11:59:23.943] [infinigen.times] [INFO] | [terrain] [11:59:23.943] [infinigen.times] [INFO] | [Create terrain] [11:59:23.943] [infinigen.terrain.core] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/Users/computer/Desktop/Folder/infinigen/outputs/hello_world/coarse/assets') [12:00:20.477] [infinigen.terrain.core] [INFO] | Terrain elements: ['ground', 'landtiles', 'warped_rocks', 'voronoi_rocks', 'atmosphere'] [12:00:20.481] [infinigen.times] [INFO] | [Create terrain] finished in 0:00:56.537609 [12:00:20.489] [infinigen.times] [INFO] | [meshing OpaqueTerrain]

Freezes here forever (does not get past the meshing OpaqueTerrain).

I reinstalled the llvm.

When i do llvm-config --version I get 18.1.6

eric-prog avatar Jun 06 '24 19:06 eric-prog

I am also on M1 MacOS Sonoma 14.2.1

eric-prog avatar Jun 06 '24 19:06 eric-prog

Is it maybe because I am on 8gb of RAM

eric-prog avatar Jun 06 '24 19:06 eric-prog

I checked it is using very little memory below 2G, so it is definitely not about RAM. But unfortunately, I don't know the real cause.

mazeyu avatar Jun 22 '24 07:06 mazeyu

I'm seeing the same issue on M3.


python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse

Device with name Apple M3 Pro supports metal minimum requirements
[11:45:57.084] [acceleratesupport] [INFO] | No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
[11:45:59.367] [smb_client] [WARNING] | SMB_AUTH envvar is not set, smb_client upload will not work. Ignore this message if not using upload
[11:45:59.377] [init] [INFO] | Converted seed='0' to scene_seed=0, parsed as hexadecimal
[11:45:59.390] [execute_tasks] [INFO] | infinigen version 1.5.0
[11:45:59.390] [execute_tasks] [INFO] | CUDA_VISIBLE_DEVICES=None
[11:45:59.390] [logging] [INFO] | [MAIN TOTAL]
[11:45:59.390] [execute_tasks] [INFO] | Processing frames 1 through 1 inclusive
[11:45:59.394] [init] [INFO] | Available devices have types=['METAL', 'CPU']
[11:45:59.395] [init] [INFO] | Cycles will use use_device_type='METAL', len(use_devices)=1
[11:45:59.404] [logging] [INFO] | [terrain]
[11:45:59.404] [logging] [INFO] | [Create terrain]
[11:45:59.404] [core] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/Users/art/src/infinigen/outputs/hello_world/coarse/assets')
[11:46:24.569] [core] [INFO] | Terrain elements: ['ground', 'landtiles', 'warped_rocks', 'voronoi_rocks', 'atmosphere']
[11:46:24.570] [logging] [INFO] | [Create terrain] finished in 0:00:25.165732
[11:46:24.700] [logging] [INFO] | [meshing OpaqueTerrain]

From there, it hangs indefinitely. Process isn't using much memory or CPU.

artgillespie avatar Jul 12 '24 18:07 artgillespie

Same issue on M3....

txOdyssey avatar Sep 03 '24 02:09 txOdyssey

Same issue on M2

zoctipus avatar Sep 06 '24 11:09 zoctipus