From 6aab53bfb5cda147a50d02f599f0663e75269b7d Mon Sep 17 00:00:00 2001 From: Montgomery Alban Date: Thu, 1 Feb 2024 22:05:13 +0000 Subject: [PATCH] Debug rendering. --- .github/workflows/ci-base-tests-linux.yml | 1 + smarts/p3d/renderer.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-base-tests-linux.yml b/.github/workflows/ci-base-tests-linux.yml index be4fb50bea..cdd3fe6cf2 100644 --- a/.github/workflows/ci-base-tests-linux.yml +++ b/.github/workflows/ci-base-tests-linux.yml @@ -50,6 +50,7 @@ jobs: scenarios/sumo/zoo_intersection - name: Run smoke tests run: | + /usr/bin/Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xdummy.log -config /etc/X11/xorg.conf -novtswitch :1 & . ${{env.venv_dir}}/bin/activate PYTHONPATH=$PWD PYTHONHASHSEED=42 pytest -v \ --doctest-modules \ diff --git a/smarts/p3d/renderer.py b/smarts/p3d/renderer.py index 3b4c54d406..6a503461b5 100644 --- a/smarts/p3d/renderer.py +++ b/smarts/p3d/renderer.py @@ -787,8 +787,12 @@ def _load_line_data(self, path: Path, name: str) -> GeomNode: def _ensure_root(self): if self._root_np is None: self._root_np = self._showbase_instance.setup_sim_root(self._simid) - if self._log.getEffectiveLevel() <= logging.DEBUG: - self._log.debug("Renderer started with backend %s", self._showbase_instance.pipe.get_type()) + # if self._log.getEffectiveLevel() <= logging.DEBUG: + # self._log.debug( + print( + "Renderer started with backend %s", + self._showbase_instance.pipe.get_type(), + ) def load_road_map(self, map_path: Union[str, Path]): """Load the road map from its path."""