Skip to content

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

Open
rust-windowing/winit
#4207
@Braymatter

Description

@Braymatter

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<bevy_animation::graph::AnimationGraph>::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<bevy_audio::pitch::Pitch>::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<bevy_scene::dynamic_scene::DynamicScene>::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<bevy_audio::audio_source::AudioSource>::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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorC-Machine-SpecificThis bug is isolated to specific hardware or driver configurationsO-MacOSSpecific to the MacOS (Apple) desktop operating systemS-BlockedThis cannot move forward until something else changes

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions