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

Improve handling of rendering startup errors #93706

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

RandomShaper
Copy link
Member

Makes RenderingDevice startup fail if staging buffers can't be created. Also allows any error in such initialization to take the engine through the path where it can handle it so it can eventually show the message box that suggests using GL ES 3, etc.

Despite this, the engine still crashes after that (at least in my case and with a dev build). However, this is already a step forward so in cases such as the one in #93670 users get at least some friendly error instead of a plain crash with no further info.

@RandomShaper RandomShaper added this to the 4.3 milestone Jun 28, 2024
@RandomShaper RandomShaper requested review from a team as code owners June 28, 2024 16:55
Copy link
Contributor

@Riteo Riteo left a comment

Choose a reason for hiding this comment

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

Looks great!

Copy link
Contributor

@RadiantUwU RadiantUwU left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@akien-mga akien-mga merged commit 0b23be9 into godotengine:master Jun 29, 2024
@akien-mga
Copy link
Member

Thanks!

@@ -6261,8 +6261,14 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode

#if defined(RD_ENABLED)
if (rendering_context) {
rendering_device = memnew(RenderingDevice);
Copy link
Member

Choose a reason for hiding this comment

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

You removed one line too many here... not sure why CI didn't complain, but then it broke once merged: https://github.com/godotengine/godot/actions/runs/9723676850/job/26839084653

Copy link
Member

Choose a reason for hiding this comment

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

Fixed up with 25de53e.

Copy link
Member

Choose a reason for hiding this comment

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

not sure why CI didn't complain

Seems like the CI never ran because GH was broken yesterday: https://www.githubstatus.com/incidents/9vwllhs2w1kj

I wish they'd make that more explicit before merging.

akien-mga added a commit that referenced this pull request Jun 29, 2024
The line was removed by mistake.
@RandomShaper RandomShaper deleted the fix_rend_misc branch July 1, 2024 05:50
TV4Fun pushed a commit to TV4Fun/godot that referenced this pull request Jul 2, 2024
sorascode pushed a commit to sorascode/godot-soras-version that referenced this pull request Jul 22, 2024
Luis-Wong pushed a commit to Luis-Wong/godot that referenced this pull request Jul 26, 2024
2nafish117 pushed a commit to 2nafish117/godot that referenced this pull request Aug 5, 2024
chryan pushed a commit to chryan/godot that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants