Minecraft crashing on window unfocus or when fullscreen gets disabled.

Whenever I play Minecraft with Distant Horizons 1.7+ installed on any 1.20 version, the game crashes once I unfocus the window, Alt+Tab out of it or even when I disable fullscreen. The issue occurs on any instance I have installed, with Fabric and no other mods installed too. Launcher shows error code "-1073741819" but no error log is generated. I'll paste the actual log in a comment. My hardware and software config is: - Windows 11 Pro 23H2 - AMD Ryzen 7 7800X3D @4.2 GHz, PBO -40, iGPU disabled - 32 GB DDR5 6200MT/s - 2 TB nvme SSD - 2 TB SATA SSD - RX 7900XT 20GB @1040mV, 299W - Java JDK 21 - Legacy Minecraft Launcher Minecraft with Distant Horizons works perfectly fine until the window unfocuses for even a split second. I appreciate any help! Thank you!
Solution:
I went into settings to Graphics and changed both Minecraft Java Runtimes, gamma and delta to Energy saving mode (iGPU) and it worked. Setting it to high performance (RX 7900XT) worked too
Jump to solution
51 Replies
Scherzkeks
ScherzkeksOP•6mo ago
log, only DH, unfocused on startup
Puhpine
Puhpine•6mo ago
are you sure your PBO is stable? -40 is really heavy yo can use prime95 to figure that out if you haven't already
Scherzkeks
ScherzkeksOP•6mo ago
yes works everywhere even in UE5 games
Puhpine
Puhpine•6mo ago
hhmm, i dont see anything in logs, so thats annoying
l_aggy
l_aggy•6mo ago
u only using dh? theres like nothing in the logs lol
Puhpine
Puhpine•6mo ago
does it at least work without DH?
Scherzkeks
ScherzkeksOP•6mo ago
yup thats the issue yes
Puhpine
Puhpine•6mo ago
really weird. i dont even know how to diagnose this
l_aggy
l_aggy•6mo ago
how long were u in the game b4 tabbing out
Scherzkeks
ScherzkeksOP•6mo ago
doesn't matter... seconds to hours let me try reinstalling it one more time
l_aggy
l_aggy•6mo ago
not any external program doing it?
Scherzkeks
ScherzkeksOP•6mo ago
wdym?
l_aggy
l_aggy•6mo ago
idk maybe a program closed it
Scherzkeks
ScherzkeksOP•6mo ago
nope
l_aggy
l_aggy•6mo ago
how much ram is allocated
Scherzkeks
ScherzkeksOP•6mo ago
24GB One thing though:
l_aggy
l_aggy•6mo ago
whats is javaw's priority ye...
Scherzkeks
ScherzkeksOP•6mo ago
I did install Stable Diffusion, ROCm and Python around the time this issue started to happen... seems unlikely, but idk normal also i cant change it bc that would mean it would crash
l_aggy
l_aggy•6mo ago
i mean u can with a program automatically
Scherzkeks
ScherzkeksOP•6mo ago
Yes but I want to avoid that, normal seams to be fine for everything and only if priorities are changed on unfocusing then it could become and issue
l_aggy
l_aggy•6mo ago
ok some pple say that giving java alot of ram can mess it up as its not good with alot but idk if thts true if u want maybe try with the igpu
Puhpine
Puhpine•6mo ago
it gives more GC stutter. it wont crash the game or anything like that
l_aggy
l_aggy•6mo ago
ye ik
Puhpine
Puhpine•6mo ago
its better to give too much ram than too little
l_aggy
l_aggy•6mo ago
best to check everything asw tho right?
Puhpine
Puhpine•6mo ago
true
Scherzkeks
ScherzkeksOP•6mo ago
okay ill set it to 4gb and igpu
l_aggy
l_aggy•6mo ago
alr ur drivers up to date im guessing asw? maybe ur igpu needs updating b4 launching mc on it asw?
Scherzkeks
ScherzkeksOP•6mo ago
i usually have the iGPU disabled, now it didn't work, I'm on the latest Adrenalin drivers 4GB made it crash
l_aggy
l_aggy•6mo ago
crashed on 4gb wt
Scherzkeks
ScherzkeksOP•6mo ago
wt?
l_aggy
l_aggy•6mo ago
howd the game crash due to 4gb ram allocated
Scherzkeks
ScherzkeksOP•6mo ago
oom
l_aggy
l_aggy•6mo ago
reinstall dh ig idrk
Scherzkeks
ScherzkeksOP•6mo ago
wait it works... I've had this issue for 2 weeks But WHY
l_aggy
l_aggy•6mo ago
works with what ????!!??!
Scherzkeks
ScherzkeksOP•6mo ago
It just works with the config listed in the description
l_aggy
l_aggy•6mo ago
wdym listed in the description
Scherzkeks
ScherzkeksOP•6mo ago
hold on
l_aggy
l_aggy•6mo ago
where did u download DH
Scherzkeks
ScherzkeksOP•6mo ago
Modrinth & GitLab Hold on one sec Okay so: I reenabled the iGPU, that did not change anything
l_aggy
l_aggy•6mo ago
reenabled and selected it or just reenabling it
Solution
Scherzkeks
Scherzkeks•6mo ago
I went into settings to Graphics and changed both Minecraft Java Runtimes, gamma and delta to Energy saving mode (iGPU) and it worked. Setting it to high performance (RX 7900XT) worked too
l_aggy
l_aggy•6mo ago
o ok
Scherzkeks
ScherzkeksOP•6mo ago
setting it back to auto did work too I did however not reboot the system
l_aggy
l_aggy•6mo ago
💀 windows
Scherzkeks
ScherzkeksOP•6mo ago
But for some reasons it now works on no matter what i do???
l_aggy
l_aggy•6mo ago
nice maybe it was a cosmic ray yk
Scherzkeks
ScherzkeksOP•6mo ago
And I could swear to you, I did everything, i even uninstalled all drivers and everything and I had this issue for weeks Well ig thanks for the tips, the magic did its thing
l_aggy
l_aggy•6mo ago
ye gj gl
Scherzkeks
ScherzkeksOP•6mo ago
thx
Want results from more Discord servers?
Add your server