Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS Error -1073274731 when running README red rectangle example #1035

Closed
5nyper opened this issue Feb 17, 2016 · 11 comments
Closed

OS Error -1073274731 when running README red rectangle example #1035

5nyper opened this issue Feb 17, 2016 · 11 comments

Comments

@5nyper
Copy link

5nyper commented Feb 17, 2016

OS: Windows 10 x64
rustc -V: 1.6.0

Error:

thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "wglCreateContextAttribsARB failed: OS Error -1073274731 (FormatMessageW() returned error 317) (os error -1073274731)"', ../src/libcore\result.rs:741
Process didn't exit successfully: `target\debug\agar.exe` (exit code: 101)

Stack trace:

stack backtrace:
   0:           0x92864c - <unknown>
   1:           0x9308ee - <unknown>
   2:           0x8f1f5c - <unknown>
   3:           0x8f26cb - <unknown>
   4:           0x924cc2 - <unknown>
   5:           0x9453d8 - <unknown>
   6:           0x401a0b - <unknown>
   7:           0x401595 - <unknown>
   8:           0x930388 - <unknown>
   9:           0x91b411 - <unknown>
  10:           0x93028d - <unknown>
  11:           0x46edea - <unknown>
  12:           0x4013b4 - <unknown>
  13:           0x4014e7 - <unknown>
  14:     0x7ffe691b8101 - <unknown>

:(

@mitchmindtree
Copy link
Contributor

13:09 < mindtree> vikaton: what project/crate/example did you get this issue in?
13:10 < vikaton> mindtree: Im copying the example on the readme of piston
13:10 < vikaton> the red rectangle

I think this is probably more of a piston_window issue (or the gfx_device_gl backend lib that it uses) as the piston crate itself is backend agnostic, however probably good to leave this here for reference in case other uses run into the same thing before it's fixed.

@mitchmindtree mitchmindtree changed the title OS Error -1073274731 OS Error -1073274731 when running README red rectangle example Feb 17, 2016
@philippotto
Copy link

I'm getting the same error.

@bvssvni
Copy link
Member

bvssvni commented Apr 26, 2016

@Vikaton Are you using MSVC? I wonder whether this is related to #1032 (comment).

@bvssvni
Copy link
Member

bvssvni commented May 28, 2016

@Vikaton PistonDevelopers/opengl_graphics#236 fixed a possible dangling pointer. Do you still get the error?

@5nyper
Copy link
Author

5nyper commented May 30, 2016

I updated Rust to 1.9.0 and when I tired running cargo build I got:

$ cargo run --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
failed to parse registry's information for: wayland-client

Caused by:
  the given version requirement is invalid

@josephpd3
Copy link

I am having the same issue as @Vikaton

@stuaxo
Copy link

stuaxo commented Jun 29, 2016

Just got the same error as Vikaton, I was on a really old version of rust from 2015 and got the error, then updated and still have it.

@Kagami
Copy link
Member

Kagami commented Jul 1, 2016

Have same error when trying to publish gfx_text:

$ cargo publish --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Packaging gfx_text v0.11.0 (file:///home/kagami/code/gfx_text)
   Archiving .gitignore
   Archiving .travis.yml
   Archiving Cargo.toml
   Archiving LICENSE
   Archiving README.md
   Archiving assets/LICENSE.txt
   Archiving assets/NotoSans-Regular.ttf
   Archiving examples/assets/LICENSE.txt
   Archiving examples/assets/Ubuntu-R.ttf
   Archiving examples/styles.rs
   Archiving scripts/id_rsa.enc
   Archiving scripts/travis-doc-upload.cfg
   Archiving src/font.rs
   Archiving src/lib.rs
   Verifying gfx_text v0.11.0 (file:///home/kagami/code/gfx_text)
    Updating registry `https://github.com/rust-lang/crates.io-index`
failed to verify package tarball

Caused by:
  failed to parse registry's information for: wayland-client

Caused by:
  the given version requirement is invalid
$ rustc --version
rustc 1.9.0 (e4e8b6668 2016-05-18)
$ cargo --version
cargo 0.8.0 (built 2016-03-10)

Does anyone have solution for this?

@Kagami
Copy link
Member

Kagami commented Jul 1, 2016

Upgrading cargo to 0.9.0 helped in my case.

@stuaxo
Copy link

stuaxo commented Jul 1, 2016

Can confirm, upgrading cargo fixed it for me too.

@bvssvni
Copy link
Member

bvssvni commented Apr 30, 2024

Closing.

@bvssvni bvssvni closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants