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

CraftOS-PC becomes unresponsive when the frozen terminal gets resized. #345

Open
simadude opened this issue Feb 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@simadude
Copy link
Contributor

Describe the bug
CraftOS-PC becomes unresponsive when the frozen terminal gets resized. The issue does not depend on the GraphicsMode set.

To Reproduce
Steps to reproduce the behavior:

  1. Freeze the terminal using term.setFrozen(true).
  2. Try to resize the terminal.
  3. CraftOS-PC will now become unresponsive and use 100% of one of the cores of the CPU.
    Here is the code that may reproduce it:
term.setFrozen(true)
for i = 1, 100 do
    os.pullEventRaw()
end
term.setFrozen(false)

Expected behavior
CraftOS-PC should not become unresponsive upon resizing.

Screenshots
image
(Going step by step through debugger, which also becomes unresponsive at the end together with the terminal)

Environment:

  • OS: Linux
  • OS Version: Ubuntu 22.04 Kernel 5.15
  • CraftOS-PC Version: v2.8.1
  • Compiled from source? Yes

Additional context
The issue became first apparent to me when I tried to resize the terminal while running my game engine Obsi with graphics mode on my own fork. This issue is replicatable on Accelerated version of the CraftOS-PC that wasn't compiled from source.

@simadude simadude added the bug Something isn't working label Feb 25, 2024
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