Minecraft Crashes on Startup [duplicate]

I have tried reinstalling already. I also have allocated 7000MB of ram. It is also running fine on version 1.12

Here is my error log: https://paste.ubuntu.com/p/jnCXdDt89H/


Solution 1:

4 GB of RAM are the minimum hardware requirement of Minecraft: https://help.mojang.com/customer/en/portal/articles/325948-minecraft-java-edition-system-requirements (archive). The error you got was caused by not enough memory.