Error when creating a window in Docker WLS2
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, nodejs, typescript
調査の方向性
USAGE.md にあるウィンドウ付きの @rapidsai/demo-graph コマンドを Docker WSL2 で再現し、動作するウィンドウなしの例と比較します。modules/glfw/src/window.cpp の 62-63 行目と、報告されている jsdom の GLFW 呼び出しパスから開始します。対応している呼び出し方法を特定するか、必要な制限とセットアップを文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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()"
- 主要言語
- TypeScript
- スター
- 211
- フォーク
- 29
- 平均マージ
- 17時間 30分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rapidsai/node のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100