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

Panic XNotSupported running on Raspbian (Raspberry Pi) #601

Closed
frederik-glasmachers opened this issue Sep 19, 2015 · 3 comments
Closed

Panic XNotSupported running on Raspbian (Raspberry Pi) #601

frederik-glasmachers opened this issue Sep 19, 2015 · 3 comments

Comments

@frederik-glasmachers
Copy link

I cross-compiled the application

#[macro_use]
extern crate glium;
fn main() {
    let display = glium::glutin::WindowBuilder::new().build_glium();
}

with the Cargo.toml

[dependencies]
glium = "*"

using a cross-compiler as explained at https://github.com/Ogeon/rust-on-raspberry-pi.
Notice that i do not call unwrap on the result, so the variable display is of type std::result::Result<_, _>.

On raspbian i started X, opened a terminal and started the application. The error

thread '<main>' panicked at 'callled `Result::unwrap()` on an `Err` value: XNotSupported', src/libcore/result.rs:731

was reported.

There is a function calling unwrap inside the glium::glutin lib thats causing the panic. I think this should be reported as an error-result instead.

But what can i do to make it run on the Raspberry Pi?

@tomaka
Copy link
Contributor

tomaka commented Sep 20, 2015

The changes in #602 will report an error instead of panicking and will indicate precisely what the problem is (instead of just XNotSupported).

@tomaka
Copy link
Contributor

tomaka commented Sep 20, 2015

The other part of the issue (the fact that it fails to load) is probably due to #554

@tomaka
Copy link
Contributor

tomaka commented Nov 3, 2016

Closing for rust-windowing/winit#49

@tomaka tomaka closed this as completed Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants