SemSorter commited on
Commit
4630437
·
1 Parent(s): cca7c61

Fix Render Server Crash: Switch back to egl with llvmpipe headless fallback

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. SemSorter/server/agent_bridge.py +1 -1
Dockerfile CHANGED
@@ -35,8 +35,8 @@ RUN git clone --depth 1 --filter=blob:none --sparse https://github.com/google-de
35
  && rm -rf .git
36
 
37
  # ── MuJoCo environment ────────────────────────────────────────────────────────
38
- ENV MUJOCO_GL=osmesa
39
- ENV PYOPENGL_PLATFORM=osmesa
40
 
41
  # ── Expose port ───────────────────────────────────────────────────────────────
42
  EXPOSE 8000
 
35
  && rm -rf .git
36
 
37
  # ── MuJoCo environment ────────────────────────────────────────────────────────
38
+ ENV MUJOCO_GL=egl
39
+ ENV PYOPENGL_PLATFORM=egl
40
 
41
  # ── Expose port ───────────────────────────────────────────────────────────────
42
  EXPOSE 8000
SemSorter/server/agent_bridge.py CHANGED
@@ -160,7 +160,7 @@ def get_simulation():
160
  global _sim
161
  with _sim_lock:
162
  if _sim is None:
163
- os.environ.setdefault("MUJOCO_GL", "osmesa")
164
  from controller import SemSorterSimulation
165
  logger.info("Initialising MuJoCo simulation…")
166
  _sim = SemSorterSimulation()
 
160
  global _sim
161
  with _sim_lock:
162
  if _sim is None:
163
+ os.environ.setdefault("MUJOCO_GL", "egl")
164
  from controller import SemSorterSimulation
165
  logger.info("Initialising MuJoCo simulation…")
166
  _sim = SemSorterSimulation()