Nothing happens/ no GUI launched after running demo on M-series Mac
While running the Hello, Genesis demo, it recommended
[Genesis] [21:38:30] [WARNING] Non-linux system detected. In order to use the interactive viewer, you need to manually run simulation in a separate thread and then start viewer. See `examples/render_on_macos.py`.
so I triedpython examples/render_on_macos.py in terminal, it went without errors but nothing happened. Following are the final infos in terminal
[Genesis] [21:41:54] [INFO] Running at 4342.33 FPS.
3775.251125112511 FPS
[Genesis] [21:41:54] [INFO] 💤 Exiting Genesis and caching compiled kernels...
My device is M1 8GB Mac, with Sonoma MacOS version. Is it due to out of memory? If it is, a statement about device/calculating ability requirement should be added. Thanks!
Also another issues is failure while installing the genesis-world python package, as mentioned in https://github.com/Genesis-Embodied-AI/Genesis/issues/52.
The error messages are shown below.
Collecting genesis-world
Using cached genesis_world-0.1.1-py3-none-any.whl.metadata (11 kB)
ERROR: Cannot install genesis-world==0.1.1 and genesis-world==0.2.0 because these package versions have conflicting dependencies.
The conflict is caused by:
genesis-world 0.2.0 depends on pymeshlab
genesis-world 0.1.1 depends on pymeshlab
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
To replicate and locate this issue, my previous case is python=3.9. Now I use python=3.11 and it goes well. But I think it's a problem to be solved.
Have you solved this problem? I am also an m1 macbook, but I can only run to 50 frames
[Genesis] [00:45:55] [INFO] Running at 58.55 FPS.
[Genesis] [00:45:55] [INFO] Running at 58.67 FPS.
[Genesis] [00:45:55] [INFO] Running at 58.62 FPS.
[Genesis] [00:45:55] [INFO] Running at 58.69 FPS.
[Genesis] [00:45:55] [INFO] 💤 Exiting Genesis and caching compiled kernels...
I am able to run python examples/render_on_macos.py successfully, but no GUI seems to appear. I see a new item in my Dock for a moment, and then it disappears.
Is it possible that it opens and closes too quickly? Could it pause on open, wait for a keypress, and then continue?
M2 Max, 64GB memory, Sonoma 14.5
I am able to run
python examples/render_on_macos.pysuccessfully, but no GUI seems to appear. I see a new item in my Dock for a moment, and then it disappears.Is it possible that it opens and closes too quickly? Could it pause on open, wait for a keypress, and then continue?
M2 Max, 64GB memory, Sonoma 14.5
Are you running it with the --vis argument? If not, it won't display the GUI.
Thanks, @RobRoyce, that solved my problem. Sorry I missed it.
@au79 , I am not able to run this example on my M3 Max within my Python 3.11 venv. I filed this issue: #132
Could you please share your environment details and pip list?
Running into the same issue. Tried --v and --vis. Also tried different python versions but can't seem to get the visuals up. Only the icon in the dock while it is generating.
Same for me on m3 max.
Running into the same issue. Tried --v and --vis. Also tried different python versions but can't seem to get the visuals up. Only the icon in the dock while it is generating.
set arg default=true, version of OpenGL==3.1.5 parser.add_argument("-v", "--vis", action="store_true", default=True)
It works for me. When using the render_on_macos script, setting the --vis flag and using python3.11 I ran into some isseus with higher Python versions. (am using M1, Macbook Air)
Running into the same issue. Tried --v and --vis. Also tried different python versions but can't seem to get the visuals up. Only the icon in the dock while it is generating.
(And @jwjohns ) , I was having all of the same issues with venv using python 12 and 11, then tried modifying code for Pyrender, trimesh, etc. with no luck.
I started over and installed with miniconda python 3.10 environment…. and finally was able to get the getting started Mac script to render and display with no additional changes.
My machine is Mac M3.