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

unfocusing CraftOS-PC while a GFX-mode program is running causes an instant crash #242

Open
Ocawesome101 opened this issue Mar 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Ocawesome101
Copy link
Contributor

Ocawesome101 commented Mar 19, 2022

Describe the bug
While running a GFX-mode program, unfocusing the CraftOS-PC window causes a crash. This seems to specifically happen when a program writes to the terminal in GFX mode while the emulator is unfocused.

To Reproduce
Steps to reproduce the behavior:

  1. Run either Wolf-CC or its refactored counterpart
  2. If running Wolf-CC, navigate through the intro screen until the first room is showing.
  3. Unfocus the window.
  4. CraftOS-PC will close. It doesn't spit any errors to the console when this happens, which I find odd.

Expected behavior
CraftOS-PC should not close when unfocused.

Environment (please complete the following information):

  • OS: Arch Linux
  • OS Version: N/A
  • CraftOS-PC Version: 2.6.5.1
  • Compiled from source? Yes (AUR)

Additional context
I'm running CraftOS-PC under Plasma Wayland, with SDL_VIDEODRIVER=wayland set. I suspect this is part of the issue.

ETA: This does not happen using SDL_VIDEODRIVER=x11.

@Ocawesome101 Ocawesome101 added the bug Something isn't working label Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant