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

Fix crash on exit for fullscreen #2252

Closed
wants to merge 7 commits into from

Conversation

Doprez
Copy link
Contributor

@Doprez Doprez commented May 17, 2024

PR Details

Recreate was being called even when the game was exiting, causing disposed references to be called.

Description

This adds a check on recreate if the game is exiting to skip the recreate function.

Related Issue

#2008

Motivation and Context

crash bad.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

@Eideren
Copy link
Collaborator

Eideren commented May 18, 2024

Does the workaround mentioned here #2008 (comment) still make sense, it's probably best to remove or replace that workaround instead of adding another workaround because of that workaround ?

@Doprez
Copy link
Contributor Author

Doprez commented May 18, 2024

I can remove it but it still happens from your original comment due to the IsFullScreen caught and ignored error.
image

@Doprez
Copy link
Contributor Author

Doprez commented May 25, 2024

@Eideren I finally think I figured it out. This seems to work for both the issues of fullscreen toggle AND exiting when in fullscreen. You were right it had to do with the Window events.

Im going to close this and make a simpler PR since the solution was just to add an event for specifically disabling the fullscreen

@Doprez Doprez closed this May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants