I go on the launcher and try to play Minecraft. I press the play button and loading completes, then the launcher closes then reopens with a text box saying that Minecraft crashed. I open the crash report and it says this: There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 268435456 bytes for Failed to commit pages from 196608 of length 65536
Possible reasons:
The system is out of physical RAM or swap space
In 32 bit mode, the process size limit was hit
Possible solutions:
Reduce memory load on the system
Increase physical memory or swap space
Check if swap backing store is full
Use 64 bit Java on a 64 bit OS
Decrease Java heap size (-Xmx/-Xms)
Decrease number of Java threads
Decrease Java thread stack sizes (-Xss)
Set larger code cache with -XX:ReservedCodeCacheSize=
This output file may be truncated or incomplete.
#Out of Memory Error (os_windows.cpp:3324), pid=9544, tid=812
#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)
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
Here is the crash log.
I've tried every solution that they gave me and it still doesn't work. I've even uninstalled and reinstalled minecraft and it's giving me the same stuff. I've tried playing on 1.8 after 1.15.2 didn't work and it doesn't crash instantly, but when I joined a multiplayer server like Hypixel, it crashes.
Can you attach a crash report or hs_err_pid log file that is generated when this happens? That would help with more specifically diagnosing the issue. If you are unable to do that, please attach a screenshot of your video settings. The error seems to indicate that Minecraft is running out of memory. Try reducing your video settings or allocating more memory to Minecraft.