Minecraft crashes when I tab out and back in
So I have recently got this issue where my Minecraft crashes with exit code 0 whenever I tab out and then tab back into it. Apparently, the issue is due to it being in fullscreen mode, however, I don't really want to have to press F11 every time I want to tab out.
I am running Minecraft version 1.16.5 on Optifine (OptiFine HD U G7 pre1) but I also got this error when running Optifine 1.16.4 and vanilla versions 1.16.4 and 1.16.5. The game crashes with exit code 0, this is the top of the crash log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffcfe00b2c1, pid=5492, tid=25908
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [nvapi64.dll+0x27b2c1]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I also play on version 1.8.9 with Forge and several mods, however this version works fine.
Best Answer
I think that you should change the version of the Minecraft launcher.
To do that you need to right-click Minecraft and go to properties. Then under Compatibility, you need to tick "Run this program in compatibility mode for:" right under that click and change where it says "Windows 8" to "Windows Vista".
After that the launcher may look different but it fixed the problem for me.
Pictures about "Minecraft crashes when I tab out and back in"



Why does my Minecraft crash everytime I tab out?
To do that you need to right-click Minecraft and go to properties. Then under Compatibility, you need to tick "Run this program in compatibility mode for:" right under that click and change where it says "Windows 8" to "Windows Vista". After that the launcher may look different but it fixed the problem for me.Why is my Minecraft crashing again and again?
The most common cause of crashes are mods, preexisting bugs, and updates. Attempting to modify the files of Minecraft or individual worlds, even with advanced editors, can also cause crashes. Crashes can also be caused by bugs in the game.How do you fix your Minecraft if it keeps crashing?
Restart Your Computer Restarting your computer can solve a lot of minor technical issues, especially if Minecraft keeps crashing due to a system glitch. The first thing that you should do if the startup error persists is restarting your PC. Once the system boots up again, try launching Minecraft.How to Fix | Alt + Tabbing Out Of Games Screen Turns Black For 2-3 Seconds
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ron Lach, Kindel Media, Karolina Grabowska, Karolina Grabowska
