mojira.dev
MC-307626

The selection lists in the pack selection screen can extend outside the bounds of the game window, violating the Vulkan specification

The bug

The Vulkan validation layer — VK_LAYER_KHRONOS_validation — is detecting errors in the pack selection menus.

Steps to reproduce

  1. Ensure that the "GUI Scale" video setting is set to "Auto", and that the game window is at most 429 pixels in width for each 240 pixels in height. For instance, the default window size can be used.

  2. Open the resource pack or data pack selection menu.

  3. View the game log.

Observed behavior

[Render thread/ERROR]: vkCmdSetScissor(): pScissors[0].offset.x (-4) is negative.
The Vulkan spec states: The x and y members of offset member of any element of pScissors must be greater than or equal to 0 (https://docs.vulkan.org/spec/latest/chapters/fragops.html#VUID-vkCmdSetScissor-x-00595)
        com.mojang.blaze3d.vulkan.VulkanRenderPass.enableScissor(VulkanRenderPass.java:171)
        com.mojang.blaze3d.systems.RenderPass.enableScissor(RenderPass.java:80)
        net.minecraft.client.gui.render.GuiRenderer.enableScissor(GuiRenderer.java:431)
        net.minecraft.client.gui.render.GuiRenderer.executeDraw(GuiRenderer.java:393)
        net.minecraft.client.gui.render.GuiRenderer.executeDrawRange(GuiRenderer.java:238)

Linked issues

Attachments

Comments 3

I am unable to reproduce this. Please attach a video showcasing the issue

This requires the window size and gui scale to line up where the bounds of the selection box is outside that of the window. The default settings (gui scale auto) and window size (854x480) happen to do this.

Lolo

RogueLogix

Confirmed

Platform G

Important

Rendering

26.2 Snapshot 1, 26.2 Snapshot 3

26.2 Snapshot 4

Retrieved