bevyengine / bevyengine/bevy

wgpu_hal::gles::egl: EGL 'eglCreateSyncKHR' code 0x3004: EGL_BAD_ATTRIBUTE

Open
#17,494 7 comments 23 reactions 0 assignees View on GitHub
A-Rendering C-Bug D-Straightforward S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

0.15.1

## \[Optional\] Relevant system information

```ignore
SystemInfo {
os: "Linux 41 Fedora Linux",
kernel: "6.12.9-200.fc41.x86_64",
cpu: "AMD Ryzen 5 7500F 6-Core Processor",
core_count: "6",
memory: "30.9 GiB"
}
```

## What you did

```rust
use bevy::prelude::*;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.run();
}
```

## What went wrong

There was an error message:

```
2025-01-22T18:58:24.894083Z ERROR wgpu_hal::gles::egl: EGL 'eglCreateSyncKHR' code 0x3004: EGL_BAD_ATTRIBUTE error: In eglCreateSyncKHR: EGL_SYNC_NATIVE_FENCE_FD_ANDROID specified valid fd butEGL_SYNC_STATUS is also being set

2025-01-22T18:58:24.948945Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 4070 SUPER", vendor: 4318, device: 10115, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "565.77", backend: Vulkan }
2025-01-22T18:58:25.109799Z INFO bevy_winit::system: Creating new window "App" (0v1#4294967296)
2025-01-22T18:58:25.109840Z INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 2
```

## Additional information

I am not sure if I remembered correctly: that I didn't notice such an error message before I installed the nvidia driver.

And this error message only appears on debug mode. When running the game in release mode, there would be no this error message.

Contributor guide

Open the contributing guide

Research direction

Start with the minimal DefaultPlugins application shown in the issue and reproduce the debug-only message on the reported Fedora and NVIDIA setup. Trace the wgpu_hal::gles::egl eglCreateSyncKHR path and compare it with the release run, using the logged bevy_render::renderer adapter information as context. Done means the EGL error is explained and its occurrence is either corrected or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.