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

GraphicsInitializationError on Raspberry Pi 4 #1093

Open
fenhl opened this issue Sep 12, 2022 · 3 comments
Open

GraphicsInitializationError on Raspberry Pi 4 #1093

fenhl opened this issue Sep 12, 2022 · 3 comments

Comments

@fenhl
Copy link

fenhl commented Sep 12, 2022

Describe the bug
Attempting to run the devel branch's 01_super_simple example on a Raspberry Pi 4 fails with the error message:

$ cargo run --example=01_super_simple
    Finished dev [unoptimized + debuginfo] target(s) in 1.23s
     Running `target/debug/examples/01_super_simple`
Failed to initialize graphics, trying secondary backends.. Please mention this if you encounter any bugs!
Error: GraphicsInitializationError

To Reproduce

  1. Install a fresh Raspberry Pi OS (64-bit) on a Raspberry Pi 4
  2. Install Rust and the ggez prerequisites
  3. git clone https://github.com/ggez/ggez.git --branch=devel
  4. cargo run --example=01_super_simple

Expected behavior
A window showing a circle appears.

Hardware and Software:

  • ggez version: current git devel branch (160413d)
  • OS: Raspberry Pi OS (64-bit) based on Debian GNU/Linux 11 (bullseye)
  • Graphics card: Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
  • Graphics card drivers: unknown (lspci | grep VGA returns no output)
@PSteinhaus
Copy link
Member

Thanks for sharing.

This is a bit annoying. I hoped (and believed) that at least the raspberry pi 4 would be safe, but it seems wgpu still struggles to run on it.

In theory, the Raspberry 4 should use V3D, which supports Vulkan on Raspberry 4, which should enable wgpu to run, but something seems to go wrong there.

@Lokathor
Copy link
Contributor

What's wrong is that the Vulkan driver is not in the distros yet.

On RPI4 you have to assume that GLES 3.1 is the best available, for now.

@PSteinhaus
Copy link
Member

Thanks for the info! :D
Then there’s hope that this will solve itself at least on Pi4 with time ^^

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

3 participants