Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

crash while running polyscope under WSL

未关闭
#171 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp, python

调研方向

首先,在 WSL 下复现 Python 3.8 Polyscope 1.3.1 的 ps.init() 失败,并检查 src/render/opengl/gl_engine.cpp 第 1679-1682 行。检查报告的 glfwCreateWindow 失败路径和间接渲染的限制;当 WSL 情况不再崩溃,并且其受支持的渲染行为得到记录或处理时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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:

https://github.com/nmwsharp/polyscope/blob/8e692da5a50c4da8b0dedaf941e1f2cef335fa11/src/render/opengl/gl_engine.cpp#L1679-L1682

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?

主要语言
C++
星标
2.2k
派生
242
平均合并
11 分钟
30 天内合并 PR
1

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nmwsharp/polyscope 的其他 Issue

查看 nmwsharp/polyscope 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。