I can't figure out why my game is crashing. It is sudden, happened after restarting my computer with no other influence. All plugins were fine, every asset was in place so I don't understand.
Problem is, it crashes before I am able to load the F8 area and read what happened. So I am testing various things for now. I suspect an actual virus, maybe? Or worse, corruption of a core js. Though the restart was unproblematic?
What would be very nice is the ability for the crash report to go to a text file so I am able to see what happened and correct.
Please, if a script like this exists, can I be pointed in its direction? Thank you very much.
Someone else might correct me, but I believe if your game is entirely crashing with the window closing, such that you can't read any error messages, that's not within your game.
That would be something external in your operating system, such as crashing from insufficient memory, getting shut down by anti-virus software, or crashing from new incompatible graphics drivers.
There are a lot of threads going back over time where the drivers installed by Microsoft during an update have caused problems, so check that and make sure you don't have generic drivers installed. Same for anti-virus settings.
Thank you for the reply. I see. I have tried many things, though. Making sure all 8gb of memory are able to be used, running a virus and malware scan (found none), turning off antivirus. The graphics driver is the same one its always been to my knowledge and test in device manager.
The reason I was hoping for an external error log is because the crash seems to behave the way it does when it can't locate an asset. I checked what could be missing (straight up the title screen), though all title screen assets seem to be in place. A test project with no scripts starts okay. Yet, I cast doubt on it being a script because it worked fine multiple sessions before my last computer boot. There weren't any updates or anything either.
I have also tried migrating files, believing it to be corrupted jsons. But that didn't cut it either (replacing, actors, main, etc.). It still behaves more as if something is missing but it crashes before I can see what that missing thing is.
So I believe it might be either something more technical, like...idk...something something javascript update I did last week...pixi files corrupted....idk....Or again, something easily fixed like a missing file. I just cannot find out what that is so thought an external log of the error could give me some clue to go off of.
I have a backup of my project luckily. So I won't have to start from scratch. But I'd still loathe doing so, it's kind of far back compared to my progress. ;-; From now on, I make more frequent backups. (I'm also crossing fingers that the backup works, it should ;=😉