amethyst / amethyst/bracket-lib

egl: failed to create dri2 screen

未关闭
#355 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
1.7k
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

## Background

I have encountered a problem just ran the early stages of the [Roguelike tutorial](https://bfnightly.bracketproductions.com/), specifically the two initial map examples.

* [2.2. Walking A Map](https://bfnightly.bracketproductions.com/chapter_3.html)
* [2.3. A More Interesting Map](https://bfnightly.bracketproductions.com/chapter_4.html)

To be sure, I've downloaded the source from the github example:
* [amethyst / rustrogueliketutorial](https://github.com/amethyst/rustrogueliketutorial)

## Problem

* Running both examples run the mouse moves the 'player' around the screen OK
* If the mouse is moved, we get this error as shown.

### Error

```
$ cargo run
Compiling cfg-if v1.0.0
Compiling smallvec v1.11.2
Compiling bitflags v1.3.2
:
Compiling rogue-two v0.0.1 (/work/dev/Utils/Rogue-two/rogue-two)
Finished dev [unoptimized + debuginfo] target(s) in 34.75s
Running `target/debug/rogue-two`
libEGL warning: egl: failed to create dri2 screen
Initialized OpenGL with: 4.5 (Core Profile) Mesa 23.2.1-1ubuntu3.1, Shader Language Version: 4.50
Error sending request: Resource temporarily unavailable
```

### Set-up

The tutorial version was using earlier builds of the `rltk` and `specs`. I reconfigured the toml file, ran `cargo update` to test with the newer versions (see below), same problem.

**`Cargo.toml`**
```
[dependencies]
## rltk = "0.8.0"
rltk = "0.8.7"
## specs = "0.17.0"
specs = "0.20.0"
specs-derive = "0.4.1"
```

**LSB**

The error seems to be with the [Mesa 3D](https://docs.mesa3d.org/egl.html) graphics using Wayland on Kubuntu 23.10.

```
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic

Desktop: KDE Plasma v: 5.27.4

API: OpenGL v: 4.6.0 NVIDIA 535.113.01 renderer: NVIDIA GeForce RTX
2080/PCIe/SSE2 direct-render: Yes
```

## Summary

* For others, this only seems to happend if you touch the mouse. So don't touch the mouse ;-)
* I was wondering if there is some way to configure the RLTK to avoid the problem or to just use a more basic graphics layer
* Also, does anyone know how to get logs or investigate this:
`libEGL warning: egl: failed to create dri2 screen` problem?

Suggestions welcome.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。