Change ticks warnings for run_if-guarded systems
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 4d 8m
- Merged PRs (30d)
- 147
Description
## Bevy version
0.12.1
## What you did
Ran a minimal bevy project for ~30 minutes. The following MVCE disables VSync to hit the problem faster.
```rust
use bevy::prelude::*;
use bevy::window::PresentMode;
fn main() {
App::new()
.add_plugins((
DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
present_mode: PresentMode::AutoNoVsync,
..default()
}),
..default()
}),
))
.run();
}
```
## What went wrong
Received many warnings regarding change detection ticks. These warnings repeat every ~30 minutes on my system.
> 2024-01-30T16:30:32.940123Z INFO bevy_winit::system: Creating new window "App" (0v0)
2024-01-30T16:30:33.380984Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1060 6GB", vendor: 4318, device: 7171, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "546.33", backend: Vulkan }
2024-01-30T16:30:33.723445Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 10 Pro", kernel: "19045", cpu: "AMD Ryzen 5 3600X 6-Core Processor", core_count: "6", memory: "15.9 GiB" }
2024-01-30T16:30:33.726747Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b0
2024-01-30T16:30:33.726761Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b1
2024-01-30T16:30:33.726765Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b15
2024-01-30T16:30:33.726767Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b6
2024-01-30T16:30:33.726770Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b7
2024-01-30T16:30:33.726774Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b8
2024-01-30T16:30:33.726777Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b5
2024-01-30T16:30:33.726789Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b16
2024-01-30T16:30:33.726794Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b9
2024-01-30T16:30:33.726799Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b13
2024-01-30T16:30:33.726804Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b11
2024-01-30T16:30:33.726809Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b10
2024-01-30T16:30:33.726814Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b14
2024-01-30T16:30:33.726819Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b12
2024-01-30T16:30:33.726823Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown axis a3
2024-01-30T16:30:33.726827Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown axis a4
2024-01-30T16:30:33.726831Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b4
2024-01-30T16:30:33.726836Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b2
2024-01-30T16:30:33.726840Z WARN gilrs::mapping: SDL-mapping 03000000-3412-0000-adbe-000000000000 vJoy Device: Unknown button b3
2024-01-30T16:30:33.727356Z INFO bevy_input::gamepad: Gamepad { id: 0 } Connected
2024-01-30T16:30:33.727393Z INFO bevy_input::gamepad: Gamepad { id: 1 } Connected
2024-01-30T17:02:12.858287Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858316Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858320Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858323Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858327Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858329Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858332Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858335Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858337Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858340Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858343Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858346Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858349Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858351Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858354Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858379Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858398Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858401Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858404Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858407Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858410Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858413Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858415Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858418Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858422Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858425Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858427Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858429Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858432Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858434Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858775Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858780Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858786Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858790Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858794Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858798Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858803Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858808Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858812Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858817Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858821Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858827Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858831Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858844Z WARN bevy_ecs::system::system: System 'bevy_winit::accessibility::update_accessibility_nodes' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:02:12.858848Z WARN bevy_ecs::system::system: System 'bevy_gizmos::draw_all_aabbs' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956020Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956044Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956048Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956051Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956054Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956058Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956060Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956063Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956066Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956069Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956071Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956073Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956076Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956089Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956091Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956095Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956098Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956130Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956139Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956143Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956146Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956148Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956151Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956154Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956157Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956159Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956162Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956164Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956167Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956169Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956172Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956174Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956512Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956517Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956520Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956523Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956526Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956529Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956531Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956534Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956536Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956539Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system>' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956542Z WARN bevy_ecs::system::system: System 'bevy_ecs::event::event_update_system' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956550Z WARN bevy_ecs::system::system: System 'bevy_winit::accessibility::update_accessibility_nodes' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
2024-01-30T17:32:38.956554Z WARN bevy_ecs::system::system: System 'bevy_gizmos::draw_all_aabbs' has not run for 3258167296 ticks. Changes older than 3258167295 ticks will not be detected.
For brevity, the full list of affected bevy systems:
- `bevy_ecs::event::event_update_system`
- `bevy_winit::accessibility::update_accessibility_nodes`
- `bevy_gizmos::draw_all_aabbs`
## Additional information
The root issue appears to be the use of the following pattern:
```rust
foo.run_if(should_run_foo)
```
When the run condition never returns `true` and `foo` fails to run for long enough.
Contributor guide
Assessment
This issue has not been assessed yet.