crash while running polyscope under WSL
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C++
- Estrellas
- 2.2k
- Forks
- 242
- Merge medio
- 11 min
- PR fusionados (30 d)
- 1
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el fallo de Python 3.8 Polyscope 1.3.1 en ps.init() bajo WSL e inspecciona src/render/opengl/gl_engine.cpp en las líneas 1679-1682. Comprueba la ruta de fallo reportada de glfwCreateWindow y las limitaciones del renderizado indirecto; se considerará terminado cuando el caso de WSL ya no se bloquee y su comportamiento de renderizado compatible esté documentado o gestionado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp, python
- Área
- computer-graphics, operating-systems
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100