Skip to content

[Bug Report] object_layout_task.py fails on macOS #658

@zj2000826

Description

@zj2000826

Describe the bug

get_started/obj_layout/object_layout_task.py couldn't be executed

Steps to reproduce

mjpython get_started/obj_layout/object_layout_task.py --sim mujoco

Traceback (most recent call last):
  File "/Users/zhaojin/Desktop/RoboVerse/get_started/obj_layout/object_layout_task.py", line 539, in <module>
    keyboard_client = ObjectKeyboardClient(entity_names, entity_types, entity_joints)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhaojin/Desktop/RoboVerse/get_started/obj_layout/object_layout_task.py", line 133, in __init__
    self.screen = pygame.display.set_mode((width, height))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pygame.error: NSWindow should only be instantiated on the main thread!
(viser) Server stopped

System Info

  • OS:MacOS

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions