PistonDevelopers / PistonDevelopers/piston

Crash on latest versions

Open
#1,404 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.7k
Forks
235
Avg merge
1m
Merged PRs (30d)
4

Description

I was following the rotating square tutorial. It works well with the versions documented in the README.md. However, when trying to upgrade:

--- a/Cargo.toml
+++ b/Cargo.toml
-piston2d-graphics = "0.44.0"
-piston2d-opengl_graphics = "0.85.0"
+piston2d-graphics = "0.45.0"
+piston2d-opengl_graphics = "0.86.0"

I am getting

thread 'main' panicked at /home/thesamet/.cargo/registry/src/index.crates.io-6f17d22bba15001f/piston2d-opengl_graphics-0.86.0/src/back_end.rs:457:9:

    OpenGL function pointers must be loaded before creating the `Gl` backend!
    For more info, see the following issue on GitHub:
    https://github.com/PistonDevelopers/opengl_graphics/issues/103

Environment is NixOS and Wayland.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with README.md and the rotating square tutorial, then reproduce it using the Cargo.toml dependency changes from 0.44.0/0.85.0 to 0.45.0/0.86.0 on the reported NixOS and Wayland setup. Trace the reported back_end.rs panic and compare behavior with the documented versions. Done means the tutorial no longer crashes with the newer versions, or the supported versions and limitation are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.