Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Fix crash in headless mode #4476

Closed
wants to merge 1 commit into from
Closed

[Merged by Bors] - Fix crash in headless mode #4476

wants to merge 1 commit into from

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented Apr 14, 2022

Objective

Fixes #4440.

Solution

Check if RenderDevice exists and add CI validation.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Apr 14, 2022
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Windowing Platform-agnostic interface layer to run your app in C-Regression Functionality that used to work but no longer does. Add a test for this! and removed S-Needs-Triage This issue needs to be labelled labels Apr 14, 2022
@superdump
Copy link
Contributor

Is the headless_defaults file referred to somewhere else or was it missed from this PR?

@mockersf
Copy link
Member

mockersf commented Apr 14, 2022

it triggers running the example in CI

) {
let render_device = match render_device {
Some(render_device) => render_device,
None => return,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish there were a nicer syntax for doing this, like a ? operator that just returns if none else unwraps it. But I’m not aware of any.

Copy link

@inquisitivecrystal inquisitivecrystal Apr 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let else will help with this slightly.

@cart
Copy link
Member

cart commented Apr 15, 2022

bors r+

bors bot pushed a commit that referenced this pull request Apr 15, 2022
# Objective

Fixes #4440.

## Solution

Check if `RenderDevice` exists and add CI validation.
@bors bors bot changed the title Fix crash in headless mode [Merged by Bors] - Fix crash in headless mode Apr 15, 2022
@bors bors bot closed this Apr 15, 2022
aevyrie pushed a commit to aevyrie/bevy that referenced this pull request Jun 7, 2022
# Objective

Fixes bevyengine#4440.

## Solution

Check if `RenderDevice` exists and add CI validation.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

Fixes bevyengine#4440.

## Solution

Check if `RenderDevice` exists and add CI validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior C-Regression Functionality that used to work but no longer does. Add a test for this!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

headless_defaults example panics again
6 participants