now this problem is happening with me when I run the game with optifine. but when I uninstalled the optifine the game runs fine without any crashes for a reason.
Most commonly, a problem with this code is caused by mods. In the logs, one can usually identify which mod caused the error. (1) Completely delete all mods and install 1-3 mods. If it works, add a few more mods.
@ethan emmanuel broomfield you have to type run in taskbar and you have type %appdata% after typing you will have to click on .minecraft folder after clicking on it at the end you will find your launcher.log.
now if you have installed the demo once and now you brought the and its still saying demo then your playing on your demo account what you gonna do is delete the demo account and enter your microsoft or mojang account (make sure that which microsoft or mojang you brought the game with that account only login) now after loging in enjoy the game!: )