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

no backend available #321

Open
mathgamain opened this issue Nov 14, 2015 · 7 comments
Open

no backend available #321

mathgamain opened this issue Nov 14, 2015 · 7 comments

Comments

@mathgamain
Copy link

Hi, I don't know where to seek help so I decided to post here as this error occurs on these examples as well, when I try to create a window, the unwrap panicks and returns "no backend is available", what does it mean?

@ryo33
Copy link

ryo33 commented Nov 16, 2015

@mathgamain
Copy link
Author

Checking the code ryo33 linked it seems backends are Wayland or X, I tried to run in another machine and it worked so the problem is in my machine, now why "X" is not available is beyond my understanding, any tips on how can I debug this?

@bvssvni
Copy link
Member

bvssvni commented Nov 16, 2015

@mathgamain You can fork the Glutin project and override it locally PistonDevelopers/piston#482. Look for the error message "no backend is available" in the source.

@sjmackenzie
Copy link

I'm getting this issue too:

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "No backend is available"', src/libcore/result.rs:688

Forking and overriding isn't very successful on nixos. What other ways are there to mitigate this issue?

@bvssvni
Copy link
Member

bvssvni commented Feb 25, 2016

The window backend can be changed to SDL2:

extern crate sdl2_window;

use sdl2_window::Sdl2Window;

let window = PistonWindow<(), Sdl2Window> = ...;

@sjmackenzie
Copy link

Actually, as we're loading so many dylibs at roughly the same time, and that the behaviour sometimes works it probably means dlopen is not thread safe. We'll need to implement something like this: https://sourceware.org/ml/libc-help/2014-11/msg00008.html

@LiamMartens
Copy link

LiamMartens commented Nov 19, 2017

Happen to stumble upon this long lost open issue here; I experienced the same issue with Glutin and was able to fix it by installing some sdl packages ( libsdl2-2.0.0) also when running headless don't forget to start your screen and export your screen (e.g Xvfb :1 -screen 1 1920x1080x24, export DISPLAY=:1.1)

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

5 participants