When entering a world when the client window is minimized, ‘Render Thread’ would stuck at net.minecraft.client.renderer.culling.Frustum#offsetToFullyIncludeCameraCube since this.viewVector contains NaN values.
This is caused by net.minecraft.client.Camera#createProjectionMatrixForCulling.
private Matrix4f createProjectionMatrixForCulling() {
float fovForCulling = Math.max(this.fov, this.minecraft.options.fov().get().intValue());
Matrix4f projection = new Matrix4f();
return projection.perspective(
fovForCulling * (float) (Math.PI / 180.0),
(float) this.minecraft.getWindow().getWidth() / this.minecraft.getWindow().getHeight(),
0.05F,
this.depthFar,
RenderSystem.getDevice().isZZeroToOne()
);
}As shown above, this.minecraft.getWindow().getHeight() is 0 when the window is minimized, producing a NaN value.
Environment
Windows 10
Attachments
Comments 2
We do not have enough information to reproduce this issue.
Please include the following information to help us understand your problem:
Steps to Reproduce:
(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, 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.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for helping us improve Minecraft! We saved your files: