I ran my code on the latest version of OIGE & skrl. However, the code suddenly shut down just after the world was created.
I cannot get any reason because there are any error messages. When I tried to find the reason, I found that the
self._app.update() was iterated second at the end of the below code (from
def step(self, render: bool = True) -> None: """Steps the physics simulation while rendering or without. Args: render (bool, optional): Set to False to only do a physics simulation without rendering. Note: app UI will be frozen (since its not rendering) in this case. Defaults to True. Raises: Exception: [description] """ if self.stage is None: raise Exception("There is no stage currently opened, init_stage needed before calling this func") if render: # physics dt is zero, no need to step physics, just render if self.get_physics_dt() == 0: self.render() # rendering dt is zero, but physics is not, call step and then render elif self.get_rendering_dt() == 0 and self.get_physics_dt() != 0: if self.is_playing(): if self._physics_sim_view is not None: self._physics_sim_view.flush() self._physics_context._step(current_time=self.current_time) # if self._physics_sim_view is not None: # self._physics_sim_view.clear_forces() self.render() else: if self._physics_sim_view is not None: self._physics_sim_view.flush() self._app.update() # if self._physics_sim_view is not None: # self._physics_sim_view.clear_forces() ......
Here is my code.
moving_target.7z (11.3 MB)