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:Jump to 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
51 Replies
log, only DH, unfocused on startup
are you sure your PBO is stable? -40 is really heavy
yo can use prime95 to figure that out if you haven't already
yes
works everywhere
even in UE5 games
hhmm, i dont see anything in logs, so thats annoying
u only using dh?
theres like nothing in the logs lol
does it at least work without DH?
yup thats the issue
yes
really weird. i dont even know how to diagnose this
how long were u in the game b4 tabbing out
doesn't matter... seconds to hours
let me try reinstalling it one more time
not any external program doing it?
wdym?
idk maybe a program closed it
nope
how much ram is allocated
24GB
One thing though:
whats is javaw's priority
ye...
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
i mean u can with a program automatically
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
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
it gives more GC stutter. it wont crash the game or anything like that
ye ik
its better to give too much ram than too little
best to check everything asw tho right?
true
okay ill set it to 4gb and igpu
alr
ur drivers up to date im guessing asw?
maybe ur igpu needs updating b4 launching mc on it asw?
i usually have the iGPU disabled, now it didn't work, I'm on the latest Adrenalin drivers
4GB made it crash
crashed on 4gb wt
wt?
howd the game crash due to 4gb ram allocated
oom
reinstall dh ig idrk
wait
it works... I've had this issue for 2 weeks
But WHY
works with what
????!!??!
It just works with the config listed in the description
wdym listed in the description
hold on
where did u download DH
Modrinth & GitLab
Hold on one sec
Okay so:
I reenabled the iGPU, that did not change anything
reenabled and selected it or just reenabling it
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
o ok
setting it back to auto did work too
I did however not reboot the system
💀 windows
But for some reasons it now works on no matter what i do???
nice maybe it was a cosmic ray yk
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
ye gj gl
thx