bevyengine / bevyengine/bevy

Asset server panics upon loading an image

Open
#10,704 1 comment 0 reactions 0 assignees View on GitHub
A-Assets A-Rendering C-Bug
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

0.12.0

## \[Optional\] Relevant system information
| name | version |
|---|---|
| cargo | 1.73.0 |
| OS | NixOS 23.05.1906.8163a64662b (Stoat) x86_64 |
| AdapterInfo | `AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "530.41.03", backend: Vulkan }` |
| SystemInfo | `SystemInfo { os: "Linux 23.05 NixOS", kernel: "6.1.38", cpu: "AMD Ryzen 9 5900X 12-Core Processor", core_count: "12", memory: "62.7 GiB" }` |

## What you did

Attempted to load an image in my game.

## What went wrong
App crashes with a panic: https://pastebin.com/DdpSEN1q
Offending image:
![icon](https://github.com/bevyengine/bevy/assets/15922601/efabb0b2-e998-4bff-bbc4-cda2158b121e)

## Additional information
This is not an only image that is broken, I have a bunch more images that don't work and cause a similar panic. I'm not sure what's the cause, and these images were previously successfully loaded into Unity and Photoshop before (in fact, they were created using Photoshop).

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the crash in Bevy 0.12.0 with the linked offending image and inspect the panic output from the pastebin report. Compare it with the other images that fail and identify a reliable reproduction; the issue is done when those images load without a panic and the behavior is covered by an appropriate regression check.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.