bevyengine / bevyengine/bevy

Sprites become corrupted at random as more sprites are spawned

Open
#4,053 29 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug O-Linux S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.6.1

## Operating system & version

Pop!_OS 21.10

## What you did

I simply had a system to spawn fireballs from a player position on click. After extensive testing, I've determined that any sort of sprite spawning at all has a chance to cause this, even on a fixed timestep.

## What you expected to happen

Sprites should show up on the screen and work as normal.

## What actually happened

The sprites gradually became corrupted at random as more sprites are spawned. As an example:

![corrupted fireballs](https://user-images.githubusercontent.com/25642180/155878121-9f229ad9-2102-4acc-ace1-509bc5c70a77.png)

The affected sprites seem to be completely random - sometimes the fireballs are corrupted, while other times the player sprite is the one corrupted.

## Additional information

My graphics card information as given by bevy:

```
INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 960M", vendor: 4318, device: 5019, device_type: DiscreteGpu, backend: Vulkan }
```

I believe this may be an issue specific to my system, though I have no idea how I'd begin debugging it.

**EDIT:** Here's a repo for the code that consistently reproduces the bug for me: [link](https://github.com/ProspectPyxis/bevy-sprite-corruption-example)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.