crash while running polyscope under WSL
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 2.2k
- フォーク
- 242
- 平均マージ
- 11分
- マージ済み PR(30日)
- 1
説明
A colleague is trying to use Polyscope (via the Python wrappers) under WSL and it crashes in init when indirect rendering isn't disabled (I've been using it under Linux where it works great). The package has just been installed via pip and hence is using version 1.3.1 under Python 3.8.
>>> import polyscope as ps
>>> ps.init()
GLFW emitted error: GLX: Failed to create context: GLXBadFBConfig
GLFW emitted error: Cannot set swap interval without a current OpenGL or OpenGL ES context
This is immediately followed by a crash in glfwSetWindowPos. Running under GDB suggests this crash is unrelated and just due to not checking return of glfwCreateWindow for a nullptr:
These issues seem to be caused by indirect rendering imposing a hard limit of OpenGL version 1.4. This precludes most of the newer features Polyscope requires, hence the GLXBadFBConfig error.
I can create a pull request for the crash, but wondering if anyone has any suggestions about getting it using a GPU under Windows 10?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、WSL 上で Python 3.8 Polyscope 1.3.1 の ps.init() の失敗を再現し、src/render/opengl/gl_engine.cpp の 1679-1682 行目を調査します。報告されている glfwCreateWindow の失敗経路と、間接レンダリングの制限を確認します。WSL のケースでクラッシュしなくなり、サポートされるレンダリング動作が文書化または処理されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, python
- 領域
- computer-graphics, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100