Skip to content

Conversation

akimakinai
Copy link
Contributor

@akimakinai akimakinai commented Sep 27, 2025

Objective

Solution

  • They look like just typos (all in let pass_span = time_span form), so replaced with pass_span.

There's an occurence of this pattern in meshlet/visibility_buffer_raster_node.rs, but it's the variable name that seems incorrect in this case. I renamed it instead.

Testing

  • Running log_diagnostics example no longer crashes on Mac.

@Zeophlite Zeophlite added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy A-Rendering Drawing game state to the screen A-Diagnostics Logging, crash handling, error reporting and performance analysis S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 28, 2025
@janhohenheim janhohenheim added this to the 0.17 milestone Sep 28, 2025
@janhohenheim
Copy link
Member

Pinging @jf908 who introduced the relevant lines :)

@akimakinai
Copy link
Contributor Author

Probably time_span should be changed to take encoder rather than being generic over encoder/pass if my understanding above is correct. (As a separate PR)

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 28, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Sep 28, 2025
Merged via the queue into bevyengine:main with commit a61c201 Sep 28, 2025
46 checks passed
mockersf pushed a commit that referenced this pull request Sep 28, 2025
# Objective

- Fixes #21167 
(happens with `trace_tracy` feature too, as it adds the plugin
automatically)
- There are some uses of `time_span` inside passes, which go around [the
check](https://github.com/bevyengine/bevy/blob/10325593d5bae88e1089bdf1fa1395f232d5248b/crates/bevy_render/src/diagnostic/internal.rs#L289)
for
[TIMESTAMP_QUERY_INSIDE_PASSES](https://docs.rs/wgpu-types/latest/wgpu_types/struct.FeaturesWGPU.html#associatedconstant.TIMESTAMP_QUERY_INSIDE_PASSES)
feature (unsupported on Apple GPU).
introduced in  #19191

## Solution

- They look like just typos (all in `let pass_span = time_span` form),
so replaced with `pass_span`.

There's an occurence of this pattern in
`meshlet/visibility_buffer_raster_node.rs`, but it's the variable name
that seems incorrect in this case. I renamed it instead.

## Testing

- Running `log_diagnostics` example no longer crashes on Mac.
mockersf pushed a commit that referenced this pull request Sep 28, 2025
# Objective

- Fixes #21167 
(happens with `trace_tracy` feature too, as it adds the plugin
automatically)
- There are some uses of `time_span` inside passes, which go around [the
check](https://github.com/bevyengine/bevy/blob/10325593d5bae88e1089bdf1fa1395f232d5248b/crates/bevy_render/src/diagnostic/internal.rs#L289)
for
[TIMESTAMP_QUERY_INSIDE_PASSES](https://docs.rs/wgpu-types/latest/wgpu_types/struct.FeaturesWGPU.html#associatedconstant.TIMESTAMP_QUERY_INSIDE_PASSES)
feature (unsupported on Apple GPU).
introduced in  #19191

## Solution

- They look like just typos (all in `let pass_span = time_span` form),
so replaced with `pass_span`.

There's an occurence of this pattern in
`meshlet/visibility_buffer_raster_node.rs`, but it's the variable name
that seems incorrect in this case. I renamed it instead.

## Testing

- Running `log_diagnostics` example no longer crashes on Mac.
@jf908
Copy link
Contributor

jf908 commented Sep 29, 2025

Sorry I didn't get to this in time, LGTM!

@akimakinai akimakinai deleted the time_span_typo branch September 29, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Diagnostics Logging, crash handling, error reporting and performance analysis A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

log diagnostics example crash on mac due to RenderDiagnosticsPlugin
5 participants