Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Error when creating a window in Docker WLS2

Abierto
#463 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, nodejs, typescript

Línea de trabajo

Reproducir el comando con ventana @rapidsai/demo-graph de USAGE.md en Docker WSL2 y compararlo con el ejemplo funcional sin ventana. Comenzar en modules/glfw/src/window.cpp, líneas 62-63, y en la ruta de llamada de GLFW de jsdom reportada; se considera terminado cuando se identifique una invocación compatible o se documente la limitación y configuración necesarias.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I've been following the USAGE.md guide to set up node rapids with windows, and run into an issue with the windowed examples.

Windowed examples in docker WLS2, such as below, throw an exception in glfw.

REPO=ghcr.io/rapidsai/node
VERSIONS="22.12.2-runtime-node16.15.1-cuda11-ubuntu20.04"
docker run --rm -it --gpus all $REPO:$VERSIONS-demo npx @rapidsai/demo-graph

I've also tried variations of this based on this:

docker run --rm -it --gpus all
    -e "DISPLAY=$DISPLAY" \
    -v "/etc/fonts:/etc/fonts:ro" \
    -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    -v "/usr/share/fonts:/usr/share/fonts:ro" \
    -v "/usr/share/icons:/usr/share/icons:ro" \
    $REPO:$VERSIONS-demo \
    npx @rapidsai/demo-graph

I've also tried a couple different gpu flags. --gpus=0, --gpus all, and --runtime=nvidia. The gpus flags throw the same exception shown below.

Stack Trace for `--gpus`
Error creating GLFW window:
Error: api unavailable EGL: Failed to initialize EGL: EGL is not or could not be initialized
    at /opt/rapids/node/modules/glfw/src/window.cpp:62
    at createGLFWWindow (/home/node/node_modules/@rapidsai/jsdom/build/js/polyfills/glfw.js:599:39)
    at /home/node/node_modules/@rapidsai/jsdom/build/js/polyfills/glfw.js:697:23
    at /home/node/node_modules/@rapidsai/jsdom/build/js/index.js:83:42
    at Array.reduce (<anonymous>)
    at Object.beforeParse (/home/node/node_modules/@rapidsai/jsdom/build/js/index.js:83:19)
    at new JSDOM (/home/node/node_modules/jsdom/lib/api.js:40:13)
    at new RapidsJSDOM (/home/node/node_modules/@rapidsai/jsdom/build/js/index.js:59:9)
    at Function.fromReactComponent (/home/node/node_modules/@rapidsai/jsdom/build/js/index.js:40:23)
    at Module.module.exports (/home/node/node_modules/@rapidsai/demo-graph/index.js:39:18)
    at Object.<anonymous> (/home/node/node_modules/@rapidsai/demo-graph/index.js:58:10)
Uncaught Exception
Origin: uncaughtException
Exception: Error: api unavailable EGL: Failed to initialize EGL: EGL is not or could not be initialized
    at /opt/rapids/node/modules/glfw/src/window.cpp:62
    at createGLFWWindow (/home/node/node_modules/@rapidsai/jsdom/build/js/polyfills/glfw.js:599:39)
    at /home/node/node_modules/@rapidsai/jsdom/build/js/polyfills/glfw.js:697:23
    at /home/node/node_modules/@rapidsai/jsdom/build/js/index.js:83:42
    at Array.reduce (<anonymous>)
    at Object.beforeParse (/home/node/node_modules/@rapidsai/jsdom/build/js/index.js:83:19)
    at new JSDOM (/home/node/node_modules/jsdom/lib/api.js:40:13)
    at new RapidsJSDOM (/home/node/node_modules/@rapidsai/jsdom/build/js/index.js:59:9)
    at Function.fromReactComponent (/home/node/node_modules/@rapidsai/jsdom/build/js/index.js:40:23)
    at Module.module.exports (/home/node/node_modules/@rapidsai/demo-graph/index.js:39:18)
    at Object.<anonymous> (/home/node/node_modules/@rapidsai/demo-graph/index.js:58:10)

This exception points to:
https://github.com/rapidsai/node/blob/d28a85e10ac9e01e10a27468bbc866320facf241/modules/glfw/src/window.cpp#L62-L63

Is there something I should do differently when invoking docker?

Stack Trace for `--runtime=nvidia`
docker: Error response from daemon: unknown or invalid runtime name: nvidia.

Do I need to resolve this missing runtime issue?


Non-windowed node-rapids examples do work, such as this:

REPO=ghcr.io/rapidsai/node
VERSIONS="22.12.2-runtime-node16.15.1-cuda11-ubuntu20.04"
docker run --rm -it --gpus all $REPO:$VERSIONS-cudf -p "const {Seris, DataFrame} = require('@rapidsai/cudf'); new DataFrame({ a: Serienew([0,1,2]) }).toString()"
Lenguaje dominante
TypeScript
Estrellas
211
Forks
29
Merge medio
17 h 30 min
PR fusionados (30 d)
1

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rapidsai/node

Todos los issues de rapidsai/node

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.