Exiting world while F3+L profiling is active crashes recursively.
James103 opened this issue ยท 2 comments
Starting in Minecraft 1.17.1 (and possibly earlier), exiting the world while F3+L profiling is active crashes the game due to MC-235964.
However, when Fabric, Fabric API, and Not Enough Crashes 3.7.0 are installed, the crash becomes recursive, because the following exception is logged as a new profiler tick is attempted to be started while a profiler tick is already running.
To reproduce, follow the same reproduction steps as in MC-235964, which are copied below for your convenience.
- Start Minecraft.
- Create a new world or join a world.
- Press F3+L.
- Before the 10 seconds are up, exit the world by pressing Escape then clicking "Save and Quit to Title".
- Notice the resulting crash.
When fixing this, I suggest aborting the profiler early if the game crashes during profiling, so that the recursive crash can be avoided.
The following two crash reports were logged one second apart from each other, likely caused by the above reproduction steps.
crash-2021-10-25_16.54.57-client.txt
crash-2021-10-25_16.54.58-client.txt