mojira.dev
MC-311782

Clicking a button that opens a folder now freezes the game until the folder is opened

The new Code to use the “Open Resource Pack Folder” button now completely freezes the game (The entire Render Thread). This is because of the SDL Implementation is synchronous and locks the current main thread of the caller until the task is completed. In my testing; this can take a few seconds; but it is probably not the intention.

Better implementation suggestion: Using ProcessBuilder; or spawning a temporary Thread outside of the main Game Thread; one that self-terminates.

Linked issues

Attachments

Comments 5

Hi!

Thank you for your report!
We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:
Steps to Reproduce:

  1. (Explain what needs to be done for the issue to happen)

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Steps to Reproduce:

  1. Open Resource Packs Screen.

  2.  Click on “Open Resource Packs Folder:

  3.  Observe the Game Freezing before the OS level Folder opens.

Observed Results:

Game Completely Freezes until the OS level Folder is opened. It can take several seconds; and often causes unexpected behavior to the currently Open GUI Screen.

Expected Results:
You click on the “Open Resource Packs Folder” button and the folder opens in a reasonable amount of time; and does NOT Freeze Minecraft.

Video of what happens. RC-1

In the Video; you can see that it takes about 11 seconds for the Explorer Window to open. This differs from PRE.2 where the Explorer window using the same setup would open almost instantly.

Video 2 is using Vanilla Only, with a Vanilla launcher without an IDE or Mod loader as shown.

sakura-ryoko

FiskFille

Confirmed

Platform EC

Very Important

UI

26.3 Pre-Release 3

26.3 Release Candidate 2

Retrieved