So to give you the full story I've just recently bought a gaming laptop with a Geforce Gtx 1050 graphics card and Intel Core i7 7700 processor. And I've had some problems with it. First off my gpu was capping all my fullscreen games at 60 fps which was really hard to fix as there were so many things that could be the problem. That being said I've been VERY invested in fixing all the problems with my new pc, so I'm very confident based on the problems that I'm having with minecraft that this isn't my pc. So a few days ago I wanted to get optifine and shaders to run for my minecraft. I wasn't too sure on what i was doing but eventually i got the profile set up and i was able to launch my minecraft with the mods running. Before then the only problems I've had with minecraft was it was crashing on launch. Which all i had to do was run it as administrator and it was working perfectly. But when i launched with my mods, my singleplayer worlds were crashing, and when i joined any server I would instantly disconnect after 5 seconds. So i thought it had something to do with the mods so i was looking up the different versions of optifine and experimenting, but nothing was working. So at this point i was pretty discouraged getting this stuff to work so i took a break from it and just played vanilla minecraft, just to find out that my singleplayer worlds stopped working and started to crash the same way my worlds were crashing with the mods on. So i looked up a lot of solutions to the problem including changing the JVM arguments in advanced launch options from its default code to this: -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
And this sort of fixed the problem, because before when i was just using the standard JVM arguments and still running as administrator my minecraft was failing to launch. But once i used this line of code, I was able to launch, but my singleplayer worlds were still crashing. At that point it was 1 am and i was tired so i was happy that at least i had a consistent way to launch the game without problems so i turned off my computer and went to bed. When i woke up the next morning, the JVM argument stopped working, so i found out that switching -Xmx1G to Xmx2G would fix this problem. And it did fix the problem with the launch fails, but not the singleplayer worlds. And even better, the Xmx2G one only worked twice before crashing again. So i tried switching it to Xmx1g, and it worked, and then stopped working.... yes this doesn't make any freaking sense to me either. So i opened up the logs to see what was happening with minecraft when it was failing to launch, and it wasn't telling me anything, there were no warnings or anything. So at this point im pretty lost, I uninstalled minecraft through windows. Deleted all the mods that I've installed and everything. I went to reinstall minecraft again and it's doing the exact same thing.
This time I looked into .minecraft\logs and i found a log of my minecraft crashing and this is what it said:
Say something silly, Laugh 'til it hurts, Take a risk, Sing out loud, Rock the boat, Shake things up, Flirt with disaster, Buy something frivolous, Color outside the lines, Cause a scene, Order dessert, Make waves, Get carried away, Have a great day!