Just built new PC using specs seen in my DxDiag below. I have played minecraft for years on my previous PC build (using older hardware). Minecraft on this machine crashes at random intervals (ranging from after a couple minutes to a couple hours).
I have tried reinstalling java, minecraft and video card drivers (using nvidia driver versions i've seen used by professional players). I have also checked my windows updates are current. I have installed an ssd (labeled f:) that i pulled from my old pc where i installed and played minecraft from in my old pc build. I launched the game (minecraft launcher) from this "I" drive. This did not help much though (as seen by my crash report) since my environment variables set in my OS utilize the same system files as the new minecreaft installation installed and launch from my main (c:) drive.
I am feeling certain it is due to hardware (or software) around my video card though i do not expect it to be due to a bad card. It is important to note that i have completed a second PC build with nearly identical specs (hard drive is 512GB instead of 1tb and cpu is 9700k) -- video card is the same. This other PC is having the exact same crash.
I have "temporarily corrected" the crash by adding opengl32.dll to C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64\bin. The game does not crash as the video card gpu is not really in use at this point. The down side is poor performance with average of 7 fps. It does however show that the issue is not with java or mc files (both in appdata and program files ) but rather how they all interact with the system files (and graphics card).
Every test I have run still results in crash. Here are some observations and test scenarios:
1. The Minecraft launcher by default uses the java executable that came with Minecraft. This means there is absolutely no purpose in downloading java separately from Java or Oracle website. If you use optifine and need to run the java install, you can use the java executable that came with Minecraft. I may absolute sure this is true by downloading Minecraft to a laptop but not java. On command prompt, when i type 'where java', nothing comes back. I can also echo the PATH and see there are no java references. Point is don't waste time looking here for problem. And as side note, Minecraft packages a newer build than what you get from java/oracle sites though this is likely not issue).
2. Minecraft on my laptop does not crash. It uses same Java version as my PC that does crash. Therefore java version is not issue. Issue may be around corrupted java downloaded files but this would become more unlikely if you have tried to re-download multiple times with each time resulting in crashes.
3. After doing fresh uninstall of anything java/Minecraft related and then reinstall, i started Minecraft. I did not change any setttings -- just created new creative world and let it sit. Neither crashed after about 2 hours so i made small video setting adjustments (increased default render distance from 12 to 24). I did this on both my PC and son's PC. Son's PC crashed after about 7 hours. My PC did not crash at all. At this time, my son's PC is running new test with render distance back to 12 and so far has not crashed (about 4 hours). I set mine up on SMP on private server with settings back on default values -- no crashes yet. No real observations from this other than crash does not "seem" to happen when default settings used (and no changes to download package of any kind, i.e. optifine).
4. What i think may be my biggest observation up to this point is Windows 10 itself. Considering 5 PC builds.... 3 of these had build 1903 and had no crashing. The two PCs that are crashing has build 1909 which released November 2019. Not all PCs would have been able to update right away and depending on your PC, you may chose when do do this yourself. Possible conclusion: crashing may be related to PCs that have updated to 1909 and a file change that came with that update.
Does anyone with Windows 10 version 1909 not have any crashing?
Having done a fresh Windows 10 install with bare minimal changes to anything else (except to make things work via updated drivers and such), I am still experiencing the same crash. I now believe the most likely culprit is hardware or bios.
Did a memtest run and it found no errors. Did more research on motherboard and memory but don't see any obvious compatibility issues (or system may not even run at all). Trying default bios settings. I had increased memory speed as it should be able to handle more (i had changed to 3200 but set back to default of 2300). Also changed back to default from gaming profile. On other PC, i altered memory slot config to A2/B2 (mine set to A1/B1) as these are essentially the two dual channel setups. Also changed bios back to default parameters on other PC.
Now running game on both PCs (afk). Not quite an hour in so not being optimistic just yet.
So far, the issue seems to have been BIOSsetting I initially made during setup. Other PC has been running continuously without crash for about 6 hours now (sitting afk). I cancelled test on my PC due to other setup needs which included a hang that resulted in me needing to clear CMOS. Will continue to monitor but i am starting to feel the issue was the "gaming profile" or the Memory multiplier setting on the BIOS.
Son's PC seems to be working now without any crashes with memory positioned in a2/b2 slots vs. a1/b1 slots. Have not set XMP or adjust CPU profiles in any way (basically running default/auto bios values).
On my PC, I have made same adjustments as son's PC but still getting crashes. I put in some older EVGA memory (8GX-D4-2800-MR) 4x8GB and did not have any crashes leaving game running overnight. Played couple hours during next day with no issues. By evening, began having BSoD (about 8) with desktop flashing black and back to normal. Rebooted PC and only able to boot to BIOS (could not recognize my hard drive as bootable). Had to wipe hard drive clean and start over. while cleaning hard drive, updated bios to newest version (was only one version behind) and disconnected all other sata connections. After bios update and cleaning hard drive, reinstalled hard drive and installed OS from USB without any issue. Loaded/installed pending OS updates, video card driver and antivirus (zonealarm). Skipped any other software updates/installs for now. installed game to my non-admin gaming account and ran game overnight. Another crash (same error). At this point, I am running another memtest86 to check memory again.
Will start to also procure new parts to start replacing one at a time and also get other pc diagnostic software to check CPU, MB, etc.
Looks like a temporary workaround is to change UAC settings to disabled. I also did this with admin privileges. No crash when i ran one overnight (afk) test. I would not recommend leaving this set though. You could end up with new software or software changes that were "uninvited".
I fully expect the issue to be the result of a mismatch between OS/Driver/Game(java) files or UAC/Windows security. Supposing this is correct, workarounds is only solution until a more permanent fix is made.
That being said, I am going to try a "workaround/solution". A previous test was on admin account with UAC disabled. Since this is a global setting, i don't not like this workaround. Trying to set up a shortcut to a scheduled task that is set to run at highest privileges for just the game. Was only able to set up by temporarily making account admin and then setting back to standard when done. If it works, I'll post how I set it up.
I created a shortcut on my desktop (standard user) to use a "runas" on the launcher executable with the built in administrator account (so that i only executed the game with the privileges and not be logged into the account). I had to update the security properties but otherwise it seems to have worked -- I ran the game all day/night without any crashes. This leads me to believe there is a security setting (or security update within Windows) that is causing. I've seen another post where one person reinstalled Windows and having the same exact issue as I am having. I believe any new installs (or reinstalls) could have this problem.
It appears this issue is too difficult for anyone to figure out (tried several different forums as well as Java, Microsoft and the IT organization I work for). Looks like it is time to rebuild my old PCs that have working OS and game.
I do not know if the image i downloaded for windows 10 is bad or otherwise -- it does not work.
To solve my problem, i used Rufus to download an older version of Windows 10 (went back to older version/build).
From here, i can update to current versions and should be fine.
It appears there is an "advantage" to starting from a previous version and then updating instead of starting with new versions.
I suspect there are permissions set on the older builds that do not get overridden during updates. However, downloading the new builds to start off those permissions are different and create the resource conflicts that cause the crash. I may not be saying this correctly but it is what i suspect.
I've been mostly crash free since last post -- had one after letting Windows do an update. I uninstalled what it would let me and haven't had a crash since then but i did have a random PC restart which is strange but maybe telling. I have an EVGA power supply that I reused from my old PC build and it is about 3 years old (purchased in Feb 2017). I researched and learned that the lifespan of EVGA PSU is about 2-4 years. Maybe it is dying. Have a new EVGA PSU being delivered in next day or two (difficult to find one during this "Human Malware" time). If that fixes issues for good then yay. And I will get a Corsair next time as they average about 3-8 years.