bevyengine / bevyengine/bevy

Putting System To Sleep / Suspending app for long periods of time causes UUID panic

Open
#17,827 17 comments 0 reactions 0 assignees View on GitHub
A-Windowing C-Bug C-Machine-Specific O-MacOS S-Blocked
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.15.1

## Relevant system information
OSX - Likely iOS

## What you did

I had my game running and my laptop went to sleep for a couple hours. When I logged back in the app panicked with the following message:

`2025-02-12T10:52:28.826184Z WARN bevy_ecs::system::system: System 'bevy_asset::assets::Assets::asset_events' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2025-02-12T10:52:28.826189Z WARN bevy_ecs::system::system: System 'bevy_asset::assets::Assets::asset_events' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2025-02-12T10:52:28.826247Z WARN bevy_ecs::system::system: System 'bevy_asset::assets::Assets::asset_events' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2025-02-12T10:52:28.826251Z WARN bevy_ecs::system::system: System 'bevy_asset::assets::Assets<()>::asset_events' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2025-02-12T10:52:28.826257Z WARN bevy_ecs::system::system: System 'bevy_asset::assets::Assets::asset_events' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.

thread 'main' panicked at /Users/caylebray/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-0.9.4/src/uuid.rs:27:1:
Attempted to create a NULL object.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace`

Anecdotally, I've experienced the same behavior when resuming my bevy-based mobile app after long periods of time, it pauses (audio still plays) and then crashes.

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.